drm/amdgpu: make gfx9 enter into rlc safe mode when set MGCG
Subsystems (2)
PATCH 1/1 drm/amdgpu: make gfx9 enter into rlc safe mode when set MGCG
From: Likun Gao <[email protected]>
MGCG should RLC enter into safe mode first.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +4 -0
@@ -3587,6 +3587,8 @@ static void gfx_v9_0_update_medium_grain_clock_gating(struct amdgpu_device *adev {uint32_t data, def; +amdgpu_gfx_rlc_enter_safe_mode (adev); +/* It is disabled by HW by default */ if (enable && (adev->cg_flags &AMD_CG_SUPPORT_GFX_MGCG )) {/* 1 - RLC_CGTT_MGCG_OVERRIDE */
@@ -3651,6 +3653,8 @@ static void gfx_v9_0_update_medium_grain_clock_gating(struct amdgpu_device *adevWREG32_SOC15 (GC ,0 , mmCP_MEM_SLP_CNTL, data); } } + +amdgpu_gfx_rlc_exit_safe_mode (adev); } static void gfx_v9_0_update_3d_clock_gating(struct amdgpu_device *adev,
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1546419410-27976-1-git-send-email-likun.gao-5C7GfCeVMHo@public.gmane.org
Huang, Ray
Reviewed-by Huang RuiQuoted 9 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of likun Gao
Sent: Wednesday, January 02, 2019 4:57 PM
To: [email protected]
Cc: Gao, Likun <[email protected]>
Subject: [PATCH] drm/amdgpu: make gfx9 enter into rlc safe mode when set MGCG
Quoted 5 lines
From: Likun Gao <[email protected]>
MGCG should RLC enter into safe mode first.
Signed-off-by Likun Gao <[email protected]>
Quoted 33 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0
-0@@ -3587,6 +3587,8 @@ static voidgfx_v9_0_update_medium_grain_clock_gating(struct
amdgpu_device*adev {drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +2
-0uint32_t data, def; +amdgpu_gfx_rlc_enter_safe_mode (adev); +/* It is disabled by HW by default */ if (enable && (adev->cg_flags &AMD_CG_SUPPORT_GFX_MGCG )) {/* 1 - RLC_CGTT_MGCG_OVERRIDE */ @@ -3651,6 +3653,8 @@ static voidgfx_v9_0_update_medium_grain_clock_gating(struct
amdgpu_device*adev
WREG32_SOC15(GC, 0,mmCP_MEM_SLP_CNTL,
data);drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +2
-1} } + +amdgpu_gfx_rlc_exit_safe_mode (adev); } static void gfx_v9_0_update_3d_clock_gating(struct amdgpu_device *adev, --2.7.4
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx