]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: trigger GPU recovery when userq destroy fails to unmap a hung queue
authorJesse Zhang <Jesse.Zhang@amd.com>
Wed, 1 Jul 2026 10:17:03 +0000 (18:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2026 20:29:11 +0000 (16:29 -0400)
commit614e8a989d462876c4f6a659f56e1075e72ad515
tree489badaa8de7923be6d47e437c4d48a676848d3c
parent18a7826aea6fd09f2d371c02cec70c7234fc4879
drm/amdgpu: trigger GPU recovery when userq destroy fails to unmap a hung queue

Destroying a hung user queue issues a MES REMOVE_QUEUE that times out,
The destroy path only logged the error and freed the queue, so the
next userq submission failed and forced a GPU reset attributed to an innocent workload.

Kick the userq reset work when unmap fails so the GPU is recovered at
destroy time.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 8396b9de4198a54ec4760a94a179347540a9764d)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c