diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1564-drm-amdgpu-allow-huge-invalid-mappings-on-GMC8.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1564-drm-amdgpu-allow-huge-invalid-mappings-on-GMC8.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1564-drm-amdgpu-allow-huge-invalid-mappings-on-GMC8.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1564-drm-amdgpu-allow-huge-invalid-mappings-on-GMC8.patch new file mode 100644 index 00000000..bf67c581 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1564-drm-amdgpu-allow-huge-invalid-mappings-on-GMC8.patch @@ -0,0 +1,35 @@ +From 47a4b1e864e2c28d64b7e153ed929e588406ac19 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Mon, 4 Feb 2019 15:00:34 +0100 +Subject: [PATCH 1564/2940] drm/amdgpu: allow huge invalid mappings on GMC8 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Only GMC9 supports true huge pages, but we can still free invalid mappings +on GMC8. + +Signed-off-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> +Acked-by: Huang Rui <ray.huang@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +index 371f3e07a67e..e3c71d15f8bc 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +@@ -1602,7 +1602,8 @@ static int amdgpu_vm_update_ptes(struct amdgpu_pte_update_params *params, + + shift = amdgpu_vm_level_shift(adev, cursor.level); + parent_shift = amdgpu_vm_level_shift(adev, cursor.level - 1); +- if (adev->asic_type < CHIP_VEGA10) { ++ if (adev->asic_type < CHIP_VEGA10 && ++ (flags & AMDGPU_PTE_VALID)) { + /* No huge page support before GMC v9 */ + if (cursor.level != AMDGPU_VM_PTB) { + if (!amdgpu_vm_pt_descendant(adev, &cursor)) +-- +2.17.1 + |