linux_dsm_epyc7002/drivers/gpu/drm/virtio
John Bates fbb30168c7 drm/virtio: fix resource id creation race
The previous code was not thread safe and caused
undefined behavior from spurious duplicate resource IDs.
In this patch, an atomic_t is used instead. We no longer
see any duplicate IDs in tests with this change.

Fixes: 16065fcdd1 ("drm/virtio: do NOT reuse resource ids")
Signed-off-by: John Bates <jbates@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200220225319.45621-1-jbates@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2020-02-24 15:45:34 +01:00
..
Kconfig drm/virtio: switch from ttm to gem shmem helpers 2019-09-04 06:54:11 +02:00
Makefile drm/virtio: switch from ttm to gem shmem helpers 2019-09-04 06:54:11 +02:00
virtgpu_debugfs.c drm/virtgpu: drop use of drmP.h 2019-07-15 18:11:31 +02:00
virtgpu_display.c drm/virtio: move drm_connector_to_virtio_gpu_output to virtgpu_display 2019-12-19 07:13:46 +01:00
virtgpu_drv.c drm/virtgpu: fix double unregistration 2019-11-12 19:13:18 +01:00
virtgpu_drv.h drm/virtio: move drm_connector_to_virtio_gpu_output to virtgpu_display 2019-12-19 07:13:46 +01:00
virtgpu_fence.c drm/virtio: move to_virtio_fence inside virtgpu_fence 2019-12-19 07:13:46 +01:00
virtgpu_gem.c drm/virtio: simplify getting fake offset 2019-12-19 07:13:45 +01:00
virtgpu_ioctl.c drm/virtio: fix byteorder handling in virtio_gpu_cmd_transfer_{from, to}_host_3d functions 2019-11-20 09:22:26 +01:00
virtgpu_kms.c drm/virtio: print a single line with device features 2019-10-22 11:34:03 +02:00
virtgpu_object.c drm/virtio: fix resource id creation race 2020-02-24 15:45:34 +01:00
virtgpu_plane.c Linux 5.5-rc7 2020-01-20 11:42:57 +10:00
virtgpu_prime.c drm/virtio: switch from ttm to gem shmem helpers 2019-09-04 06:54:11 +02:00
virtgpu_trace_points.c drm/virtio: add trace events for commands 2019-05-06 10:52:58 +02:00
virtgpu_trace.h drm/virtio: add trace events for commands 2019-05-06 10:52:58 +02:00
virtgpu_vq.c drm/virtio: batch display update commands. 2019-12-16 12:39:50 +01:00