Files
linux/drivers/gpu/drm
Sunil Khatri cf4aafdcce drm/amdgpu/userq: make sure queue is valid in the hang_detect_work
Thread 1: Running amdgpu_userq_destroy which eventually remove
the queue from door bell and set userq_mgr = NULL.

Thread2: An interrupt might have scheduled the hang_detect_work
which still need userq_mgr to be valid but could get an NULL
ptrs.

To fix that make sure we cancel the hang_detect_work again before
setting userq_mgr to NULL.

Along with that we also need all the queue va to remain valid till
we could be running anything on the queue and hence moving the
userq_va post hang_detect handler is cancelled.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 1a66ceb98b137d18d303b9889f0e7d8c4db73943)
2026-05-27 11:58:31 -04:00
..
2025-10-31 10:34:52 +02:00
2026-03-10 09:42:09 +08:00
2026-05-04 14:54:44 +02:00
2026-03-11 11:18:31 +01:00
2026-03-17 17:50:49 +01:00
2026-04-28 10:50:41 +02:00
2026-04-07 12:36:31 +02:00
2025-10-31 10:34:52 +02:00
2026-04-07 12:36:31 +02:00
2026-03-12 07:23:23 -07:00