summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.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/jpeg_v3_0.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/jpeg_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
index de5dfcfb3859..94be35357f7d 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
@@ -166,8 +166,6 @@ static int jpeg_v3_0_hw_fini(void *handle)
RREG32_SOC15(JPEG, 0, mmUVD_JRBC_STATUS))
jpeg_v3_0_set_powergating_state(adev, AMD_PG_STATE_GATE);
- ring->sched.ready = false;
-
return 0;
}