aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2952-drm-amdgpu-fix-huge-page-setting-for-ATS-case.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2952-drm-amdgpu-fix-huge-page-setting-for-ATS-case.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2952-drm-amdgpu-fix-huge-page-setting-for-ATS-case.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2952-drm-amdgpu-fix-huge-page-setting-for-ATS-case.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2952-drm-amdgpu-fix-huge-page-setting-for-ATS-case.patch
new file mode 100644
index 00000000..578d15eb
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2952-drm-amdgpu-fix-huge-page-setting-for-ATS-case.patch
@@ -0,0 +1,31 @@
+From 8b4f736520adef2b2b4671390f8167e97c2a0483 Mon Sep 17 00:00:00 2001
+From: Chunming Zhou <david1.zhou@amd.com>
+Date: Mon, 11 Dec 2017 15:55:03 +0800
+Subject: [PATCH 2952/4131] drm/amdgpu: fix huge page setting for ATS case
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Change-Id: I35a35ed2956fc76cef7c31d45502ccb614040dee
+Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
+Reviewed-by: Christian König <christian.koenig@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+index 2e2cdbe..079d458 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+@@ -352,7 +352,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev,
+
+ if (vm->pte_support_ats) {
+ init_value = AMDGPU_PTE_DEFAULT_ATC;
+- if (level != adev->vm_manager.num_level - 1)
++ if (level != adev->vm_manager.num_level)
+ init_value |= AMDGPU_PDE_PTE;
+
+ }
+--
+2.7.4
+