aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0866-drm-amdgpu-fix-new-PD-update-code-for-Vega10-v2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0866-drm-amdgpu-fix-new-PD-update-code-for-Vega10-v2.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0866-drm-amdgpu-fix-new-PD-update-code-for-Vega10-v2.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0866-drm-amdgpu-fix-new-PD-update-code-for-Vega10-v2.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0866-drm-amdgpu-fix-new-PD-update-code-for-Vega10-v2.patch
new file mode 100644
index 00000000..daa58974
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0866-drm-amdgpu-fix-new-PD-update-code-for-Vega10-v2.patch
@@ -0,0 +1,44 @@
+From a51655bd5a643981744642dcd586afda4a6eadb9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Thu, 31 Aug 2017 10:46:20 +0200
+Subject: [PATCH 0866/4131] drm/amdgpu: fix new PD update code for Vega10 v2
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We need to refer to the parent instead of the root BO for multi
+level page tables on Vega10. Also don't set the PDE_PTE bit.
+
+v2: Don't set the PDE_PTE bit either.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-and-Tested-by: Roger He <Hongbo.He@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+index 40f3703..64d0123 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+@@ -309,7 +309,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev,
+ /* Keep a reference to the root directory to avoid
+ * freeing them up in the wrong order.
+ */
+- pt->parent = amdgpu_bo_ref(vm->root.base.bo);
++ pt->parent = amdgpu_bo_ref(parent->base.bo);
+
+ entry->base.vm = vm;
+ entry->base.bo = pt;
+@@ -317,7 +317,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev,
+ spin_lock(&vm->status_lock);
+ list_add(&entry->base.vm_status, &vm->relocated);
+ spin_unlock(&vm->status_lock);
+- entry->addr = ~0ULL;
++ entry->addr = 0;
+ }
+
+ if (level < adev->vm_manager.num_level) {
+--
+2.7.4
+