drm/amdgpu
David Rosca c8f327ce9c amdgpu: Make amdgpu_device_deinitialize thread-safe
Device will be removed from dev_list when refcount reaches 0, so the
dev_mutex must be locked before decreasing reference otherwise there's
a race where this device is still in dev_list with refcount 0 which will
assert or crash in amdgpu_device_initialize trying to use this device
instead of creating new one.

Fixes issue reported in https://gitlab.freedesktop.org/drm/amd/-/issues/2156#note_2268110

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2024-03-05 03:53:39 +00:00
..
.editorconfig Add meson build system 2018-01-12 09:40:48 -08:00
Android.mk amdgpu: Only remember the device's marketing name 2017-12-05 12:50:20 +01:00
Makefile.sources amdgpu: remove the hash table implementation 2018-08-07 13:27:33 +02:00
amdgpu-symbols.txt amdgpu: add amdgpu_va_get_start_addr 2023-12-21 06:49:34 -05:00
amdgpu.h amdgpu: add amdgpu_va_get_start_addr 2023-12-21 06:49:34 -05:00
amdgpu_asic_id.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
amdgpu_bo.c amdgpu: Fix pointer/integer mismatch warning 2023-09-04 09:31:36 +02:00
amdgpu_cs.c amdgpu: fix use-after-free 2024-01-04 11:00:37 +01:00
amdgpu_device.c amdgpu: Make amdgpu_device_deinitialize thread-safe 2024-03-05 03:53:39 +00:00
amdgpu_gpu_info.c amdgpu: add support for querying VM faults information 2023-10-10 10:25:07 +02:00
amdgpu_internal.h amdgpu: remove va::dev member 2023-03-24 11:25:10 +01:00
amdgpu_vamgr.c amdgpu: add amdgpu_va_get_start_addr 2023-12-21 06:49:34 -05:00
amdgpu_vm.c amdgpu: annotate public functions 2018-09-19 22:46:45 -07:00
handle_table.c amdgpu: fix off by one in handle_table_insert 2018-08-16 08:50:04 +02:00
handle_table.h amdgpu: add handle table implementation v2 2018-08-07 13:27:16 +02:00
libdrm_amdgpu.pc.in amdgpu: add libdrm as private requirement/dependency 2016-02-04 13:22:50 +00:00
meson.build meson: replace deprecated program.path -> program.full_path 2023-10-20 05:21:01 +00:00