aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/5340-drm-amdgpu-add-GMC9-support-for-PDs-PTs-in-system-me.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/5340-drm-amdgpu-add-GMC9-support-for-PDs-PTs-in-system-me.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/5340-drm-amdgpu-add-GMC9-support-for-PDs-PTs-in-system-me.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/5340-drm-amdgpu-add-GMC9-support-for-PDs-PTs-in-system-me.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/5340-drm-amdgpu-add-GMC9-support-for-PDs-PTs-in-system-me.patch
new file mode 100644
index 00000000..e7cc54ea
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/5340-drm-amdgpu-add-GMC9-support-for-PDs-PTs-in-system-me.patch
@@ -0,0 +1,36 @@
+From 0a5b80924446d912f99d5d4e48cb28adac775a6d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Wed, 22 Aug 2018 12:27:05 +0200
+Subject: [PATCH 5340/5725] drm/amdgpu: add GMC9 support for PDs/PTs in system
+ memory
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Add the necessary handling.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Reviewed-by: Huang Rui <ray.huang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+index 7362ac1..b5d849b 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+@@ -559,7 +559,7 @@ static uint64_t gmc_v9_0_get_vm_pte_flags(struct amdgpu_device *adev,
+ static void gmc_v9_0_get_vm_pde(struct amdgpu_device *adev, int level,
+ uint64_t *addr, uint64_t *flags)
+ {
+- if (!(*flags & AMDGPU_PDE_PTE))
++ if (!(*flags & AMDGPU_PDE_PTE) && !(*flags & AMDGPU_PTE_SYSTEM))
+ *addr = adev->vm_manager.vram_base_offset + *addr -
+ adev->gmc.vram_start;
+ BUG_ON(*addr & 0xFFFF00000000003FULL);
+--
+2.7.4
+