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: bac38ca8 ("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>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c 3 additions, 12 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h 2 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c 7 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
Loading
Please register or sign in to comment