summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2021-05-18 17:48:02 +0200
committerAlex Deucher <alexander.deucher@amd.com>2021-05-19 22:45:00 -0400
commit81db370c88196400972acd6ebbaa73a1d1e4145f (patch)
treed406e18f3b6b64f65497ce1e3a4e6fd1469ca764 /drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
parent6e8bcdd63a1e6569df114abbc58a5dbc02d7f822 (diff)
downloadlinux-stable-81db370c88196400972acd6ebbaa73a1d1e4145f.tar.gz
linux-stable-81db370c88196400972acd6ebbaa73a1d1e4145f.tar.bz2
linux-stable-81db370c88196400972acd6ebbaa73a1d1e4145f.zip
drm/amdgpu: stop touching sched.ready in the backend
This unfortunately comes up in regular intervals and breaks GPU reset for the engine in question. The sched.ready flag controls if an engine can't get working during hw_init, but should never be set to false during hw_fini. v2: squash in unused variable fix (Alex) Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
index 0c93361ac9c9..ecb82c39b106 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
@@ -502,11 +502,6 @@ static void sdma_v5_2_gfx_stop(struct amdgpu_device *adev)
ib_cntl = REG_SET_FIELD(ib_cntl, SDMA0_GFX_IB_CNTL, IB_ENABLE, 0);
WREG32(sdma_v5_2_get_reg_offset(adev, i, mmSDMA0_GFX_IB_CNTL), ib_cntl);
}
-
- sdma0->sched.ready = false;
- sdma1->sched.ready = false;
- sdma2->sched.ready = false;
- sdma3->sched.ready = false;
}
/**