aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3331-drm-amdgpu-enable-mmhub-clock-gating-for-Arcturus.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3331-drm-amdgpu-enable-mmhub-clock-gating-for-Arcturus.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3331-drm-amdgpu-enable-mmhub-clock-gating-for-Arcturus.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3331-drm-amdgpu-enable-mmhub-clock-gating-for-Arcturus.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3331-drm-amdgpu-enable-mmhub-clock-gating-for-Arcturus.patch
new file mode 100644
index 00000000..d6886c00
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3331-drm-amdgpu-enable-mmhub-clock-gating-for-Arcturus.patch
@@ -0,0 +1,45 @@
+From ebeb541f2501c232fa3492daab032207a3f27f84 Mon Sep 17 00:00:00 2001
+From: Le Ma <le.ma@amd.com>
+Date: Fri, 9 Aug 2019 18:58:42 +0800
+Subject: [PATCH 3331/4256] drm/amdgpu: enable mmhub clock gating for Arcturus
+
+Init MC_MGCG/LS flag. Also apply to athub CG.
+
+Change-Id: Ic00cb8e6d69eb75dd32f34f778352cee93063ee0
+Signed-off-by: Le Ma <le.ma@amd.com>
+Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 1 -
+ drivers/gpu/drm/amd/amdgpu/soc15.c | 4 +++-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
+index e52e4d1860f5..0cf7ef44b4b5 100644
+--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
++++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
+@@ -615,7 +615,6 @@ int mmhub_v9_4_set_clockgating(struct amdgpu_device *adev,
+ return 0;
+ }
+
+-/* TODO: get 2 mmhub instances CG state */
+ void mmhub_v9_4_get_clockgating(struct amdgpu_device *adev, u32 *flags)
+ {
+ int data, data1;
+diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
+index aecba1cff555..235cb5b156b9 100644
+--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
++++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
+@@ -1126,7 +1126,9 @@ static int soc15_common_early_init(void *handle)
+ AMD_CG_SUPPORT_HDP_MGCG |
+ AMD_CG_SUPPORT_HDP_LS |
+ AMD_CG_SUPPORT_SDMA_MGCG |
+- AMD_CG_SUPPORT_SDMA_LS;
++ AMD_CG_SUPPORT_SDMA_LS |
++ AMD_CG_SUPPORT_MC_MGCG |
++ AMD_CG_SUPPORT_MC_LS;
+ adev->pg_flags = 0;
+ adev->external_rev_id = adev->rev_id + 0x32;
+ break;
+--
+2.17.1
+