diff options
| author | [email protected] <[email protected]> | 2025-03-17 01:14:36 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-03-18 18:03:47 +0000 |
| commit | cc63bcfd14a664a7ea78fd3c9d0014116b7e4619 (patch) | |
| tree | 599c224629a2df43a6e2794f6de304b1550458ce /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | |
| parent | drm/amdgpu/pm: Handle SCLK offset correctly in overdrive for smu 14.0.2 (diff) | |
| download | kernel-cc63bcfd14a664a7ea78fd3c9d0014116b7e4619.tar.gz kernel-cc63bcfd14a664a7ea78fd3c9d0014116b7e4619.zip | |
drm/amdgpu: Fix SDMA engine reset logic
The scheduler should restart only if the reset operation
succeeds This ensures that new tasks are only submitted
to the queues after a successful reset.
Fixes: 4c02f7301657 ("drm/amdgpu: Introduce conditional user queue suspension for SDMA resets")
Suggested-by: Alex Deucher <[email protected]>
Signed-off-by: Jesse.Zhang <[email protected]>
Reviewed-by: Tim Huang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c index 3a4cef896018..1334c209201f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c @@ -609,7 +609,7 @@ exit: * if they were stopped by this function. This allows new tasks * to be submitted to the queues after the reset is complete. */ - if (ret) { + if (!ret) { if (gfx_sched_stopped && amdgpu_ring_sched_ready(gfx_ring)) { drm_sched_wqueue_start(&gfx_ring->sched); } |
