drm/amdgpu: rework userq reset work handling
authorChristian König <christian.koenig@amd.com>
Tue, 21 Apr 2026 10:39:54 +0000 (12:39 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 May 2026 22:07:26 +0000 (18:07 -0400)
commitfd9200ccefab94f27877d1943761d6b0ccbd89c8
tree5f7be12991b0a829392cdeff093469fef0980f31
parenta3bbf32a336939a1d21b9561f8e53333b684b7ef
drm/amdgpu: rework userq reset work handling

It is illegal to schedule reset work from another reset work!

Fix this by scheduling the userq reset work directly on the work queue
of the reset domain.

Not fully tested, I leave that to the IGT test cases.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h