diff options
| author | Prike Liang <Prike.Liang@amd.com> | 2026-10-16 09:35:55 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-11-04 12:25:38 -0500 |
| commit | 5b40c07c7ae9f80ec5277bc44c63f354ff581077 (patch) | |
| tree | f872067138f88eb6b56fceb2cb2fa3cd6a76c3aa /include/linux/debugobjects.h | |
| parent | 146b96974b33b8cca52755ffed3cd24a82836013 (diff) | |
drm/amdgpu: stop the schedulers before preparing the GPU reset
amdgpu_device_halt_activities() only stops the ring schedulers after
amdgpu_amdkfd_pre_reset() and amdgpu_userq_pre_reset(). With a hung MES
every REMOVE_QUEUE in amdgpu_userq_pre_reset() waits for its timeout, so
the schedulers keep pushing jobs to the hardware for seconds after the
reset has started:
GPU reset begin!. Source: 6
MES failed to respond to msg=REMOVE_QUEUE fence_wait_ret=528494 status=0x0
WARNING: amdgpu_device.c:928 at amdgpu_device_skip_hw_access+0x73/0x90 [amdgpu]
Workqueue: sdma0 drm_sched_run_job_work [gpu_sched]
Call Trace:
amdgpu_mm_wdoorbell64+0x20/0x70 [amdgpu]
sdma_v6_0_ring_set_wptr+0xa6/0x180 [amdgpu]
amdgpu_ring_commit+0x5b/0xa0 [amdgpu]
amdgpu_ib_schedule+0x64a/0x8f0 [amdgpu]
amdgpu_job_run+0xa2/0x220 [amdgpu]
drm_sched_run_job_work+0x10c/0x300 [gpu_sched]
Stop the schedulers of all devices in the reset list first. None of the
preparation steps needs them, and jobs submitted meanwhile simply wait
until amdgpu_device_sched_resume().
Fixes: 290f46cf5726 ("drm/amdgpu: Implement user queue reset functionality")
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit ea55250ab5594032541c455e1b84e8a7c15a2ba4)
Cc: stable@vger.kernel.org
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
