aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3061-drm-amdgpu-loosen-the-criteria-for-huge-pages-a-bit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3061-drm-amdgpu-loosen-the-criteria-for-huge-pages-a-bit.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3061-drm-amdgpu-loosen-the-criteria-for-huge-pages-a-bit.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3061-drm-amdgpu-loosen-the-criteria-for-huge-pages-a-bit.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3061-drm-amdgpu-loosen-the-criteria-for-huge-pages-a-bit.patch
new file mode 100644
index 00000000..5a4366e5
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3061-drm-amdgpu-loosen-the-criteria-for-huge-pages-a-bit.patch
@@ -0,0 +1,39 @@
+From 856d29ef6a3fac445613857dc5f9d415437bbcbd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Thu, 21 Dec 2017 13:30:50 +0100
+Subject: [PATCH 3061/4131] drm/amdgpu: loosen the criteria for huge pages a
+ bit
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We can actually handle invalid huge pages perfectly fine now.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
+Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 7 ++-----
+ 1 file changed, 2 insertions(+), 5 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+index 7b6eb28..cccfbc9 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+@@ -955,11 +955,8 @@ static void amdgpu_vm_handle_huge_pages(struct amdgpu_pte_update_params *p,
+ uint64_t pd_addr, pde;
+
+ /* In the case of a mixed PT the PDE must point to it*/
+- if (p->adev->asic_type < CHIP_VEGA10 ||
+- nptes != AMDGPU_VM_PTE_COUNT(p->adev) ||
+- p->src ||
+- !(flags & AMDGPU_PTE_VALID)) {
+-
++ if (p->adev->asic_type < CHIP_VEGA10 || p->src ||
++ nptes != AMDGPU_VM_PTE_COUNT(p->adev)) {
+ dst = amdgpu_bo_gpu_offset(entry->base.bo);
+ flags = AMDGPU_PTE_VALID;
+ } else {
+--
+2.7.4
+