diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/5617-drm-amdgpu-make-gfx9-enter-into-rlc-safe-mode-when-s.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/5617-drm-amdgpu-make-gfx9-enter-into-rlc-safe-mode-when-s.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/5617-drm-amdgpu-make-gfx9-enter-into-rlc-safe-mode-when-s.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/5617-drm-amdgpu-make-gfx9-enter-into-rlc-safe-mode-when-s.patch new file mode 100644 index 00000000..bdf144a2 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/5617-drm-amdgpu-make-gfx9-enter-into-rlc-safe-mode-when-s.patch @@ -0,0 +1,39 @@ +From 823211258f318d331f52028f04a1238b7a2ba400 Mon Sep 17 00:00:00 2001 +From: Likun Gao <Likun.Gao@amd.com> +Date: Wed, 2 Jan 2019 12:20:12 +0800 +Subject: [PATCH 5617/5725] drm/amdgpu: make gfx9 enter into rlc safe mode when + set MGCG + +MGCG should RLC enter into safe mode first. + +Signed-off-by: Likun Gao <Likun.Gao@amd.com> +Reviewed-by: Huang Rui <ray.huang@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +index ac2a843..ce4bb14 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +@@ -3605,6 +3605,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 */ +@@ -3669,6 +3671,8 @@ static void gfx_v9_0_update_medium_grain_clock_gating(struct amdgpu_device *adev + WREG32_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, +-- +2.7.4 + |