]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu/userq: add a detect and reset callback
authorJesse.Zhang <Jesse.Zhang@amd.com>
Thu, 4 Sep 2025 01:54:36 +0000 (09:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 21:38:39 +0000 (17:38 -0400)
commit54d18bc6003fad33eb901aa5fa3425449e53d5aa
tree16bc87b395a4994edf4344a02a0d8cbdf51644a7
parentcbda64f3f58027f68211dda8ea94d52d7e493995
drm/amdgpu/userq: add a detect and reset callback

Add a detect and reset callback and add the implementation
for mes.  The callback will detect all hung queues of a
particular ip type (e.g., GFX or compute or SDMA) and
reset them.

v2: increase reset counter and set fence force completion
v3: Removed userq_mutex in mes_userq_detect_and_reset since the driver holds it when calling

Reviewed-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>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c