]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/sdma: fix engine reset handling
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Mar 2025 23:23:46 +0000 (19:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Mar 2025 16:16:34 +0000 (12:16 -0400)
commite02fcf73081b7fc941aa6de007b0239e67688e15
tree10d92c98375cbdfc710ba0d0192bad5c420e1619
parentfc70d1ea1bb168b5d80fba6caf504416ceb9a566
drm/amdgpu/sdma: fix engine reset handling

Move the kfd suspend/resume code into the caller.  That
is where the KFD is likely to detect a reset so on the KFD
side there is no need to call them.  Also add a mutex to
lock the actual reset sequence.

v2: make the locking per instance

Fixes: bac38ca8c475 ("drm/amdkfd: implement per queue sdma reset for gfx 9.4+")
Reviewed-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c