aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1768-drm-amdgpu-gmc9-fix-VM_L2_CNTL3-programming.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1768-drm-amdgpu-gmc9-fix-VM_L2_CNTL3-programming.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1768-drm-amdgpu-gmc9-fix-VM_L2_CNTL3-programming.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1768-drm-amdgpu-gmc9-fix-VM_L2_CNTL3-programming.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1768-drm-amdgpu-gmc9-fix-VM_L2_CNTL3-programming.patch
new file mode 100644
index 00000000..4f38a7f1
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1768-drm-amdgpu-gmc9-fix-VM_L2_CNTL3-programming.patch
@@ -0,0 +1,33 @@
+From 90f400165f57ce0c51ffe44fee0904b7ac04de2e Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Thu, 11 Apr 2019 14:54:40 -0500
+Subject: [PATCH 1768/2940] drm/amdgpu/gmc9: fix VM_L2_CNTL3 programming
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Got accidently dropped when 2+1 level support was added.
+
+Fixes: 6a42fd6fbf534096 ("drm/amdgpu: implement 2+1 PD support for Raven v3")
+Reviewed-by: Christian König <christian.koenig@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Cc: stable@vger.kernel.org
+---
+ drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
+index 020be5484fe0..95cffc8fddb4 100644
+--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
+@@ -177,6 +177,7 @@ static void mmhub_v1_0_init_cache_regs(struct amdgpu_device *adev)
+ tmp = REG_SET_FIELD(tmp, VM_L2_CNTL3,
+ L2_CACHE_BIGK_FRAGMENT_SIZE, 6);
+ }
++ WREG32_SOC15(MMHUB, 0, mmVM_L2_CNTL3, tmp);
+
+ tmp = mmVM_L2_CNTL4_DEFAULT;
+ tmp = REG_SET_FIELD(tmp, VM_L2_CNTL4, VMC_TAP_PDE_REQUEST_PHYSICAL, 0);
+--
+2.17.1
+