linux-stable/drivers/gpu/drm/ttm
Karolina Stolarek 3b401e30c2 drm/ttm: Reorder sys manager cleanup step
With the current cleanup flow, we could trigger a NULL pointer
dereference if there is a delayed destruction of a BO with a
system resource that gets executed on drain_workqueue() call,
as we attempt to free a resource using an already released
resource manager.

Remove the device from the device list and drain its workqueue
before releasing the system domain manager in ttm_device_fini().

Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231016121525.2237838-1-karolina.stolarek@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
2023-10-16 14:27:27 +02:00
..
tests drm/ttm/tests: Fix type conversion in ttm_pool_test 2023-08-22 13:56:11 +02:00
Makefile drm/ttm: Introduce KUnit test 2023-08-09 18:04:22 +02:00
ttm_agp_backend.c
ttm_bo_util.c
ttm_bo_vm.c
ttm_bo.c Linux 6.5-rc7 2023-08-24 07:26:06 +10:00
ttm_device.c drm/ttm: Reorder sys manager cleanup step 2023-10-16 14:27:27 +02:00
ttm_execbuf_util.c
ttm_module.c
ttm_module.h
ttm_pool.c
ttm_range_manager.c
ttm_resource.c drm/ttm: fix warning that we shouldn't mix && and || 2023-06-23 17:21:02 +02:00
ttm_sys_manager.c
ttm_tt.c