FAILED: patch "[PATCH] drm/amdgpu/gfx8: fix CGCG_CGLS handling" failed to apply to 4.8-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.8-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
6ae81452f9278ba1accdd4152d75061a8349a0f3Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Fri, 7 Oct 2016 16:00:47 -0400
Subject: [PATCH] drm/amdgpu/gfx8: fix CGCG_CGLS handling
When setting up the RLC, only disable the CGCG and CGLS bits rather than clearing the entire register to avoid losing the golden settings.
Signed-off-by Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +10 -3
@@ -4087,14 +4087,21 @@ static int gfx_v8_0_rlc_load_microcode(struct amdgpu_device *adev)static int gfx_v8_0_rlc_resume (struct amdgpu_device *adev) {int r; +u32 tmp;gfx_v8_0_rlc_stop (adev);/* disable CG */ -WREG32 (mmRLC_CGCG_CGLS_CTRL,0 ); + tmp =RREG32 (mmRLC_CGCG_CGLS_CTRL); + tmp &= ~(RLC_CGCG_CGLS_CTRL__CGCG_EN_MASK | +RLC_CGCG_CGLS_CTRL__CGLS_EN_MASK ); +WREG32 (mmRLC_CGCG_CGLS_CTRL, tmp);if (adev->asic_type ==CHIP_POLARIS11 || - adev->asic_type ==CHIP_POLARIS10 ) -WREG32 (mmRLC_CGCG_CGLS_CTRL_3D,0 ); + adev->asic_type ==CHIP_POLARIS10 ) { + tmp =RREG32 (mmRLC_CGCG_CGLS_CTRL_3D); + tmp &= ~0x3 ; +WREG32 (mmRLC_CGCG_CGLS_CTRL_3D, tmp); + }/* disable PG */ WREG32 (mmRLC_PG_CNTL,0 );