diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1674-drm-amdgpu-Record-gfx7-gfx8-VM-range-fault-as-not-pr.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1674-drm-amdgpu-Record-gfx7-gfx8-VM-range-fault-as-not-pr.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1674-drm-amdgpu-Record-gfx7-gfx8-VM-range-fault-as-not-pr.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1674-drm-amdgpu-Record-gfx7-gfx8-VM-range-fault-as-not-pr.patch new file mode 100644 index 00000000..a186e2ba --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1674-drm-amdgpu-Record-gfx7-gfx8-VM-range-fault-as-not-pr.patch @@ -0,0 +1,47 @@ +From eb0d49b40a0ce0caf01f906d36e23419643f0da7 Mon Sep 17 00:00:00 2001 +From: Jay Cornwall <Jay.Cornwall@amd.com> +Date: Tue, 2 May 2017 20:02:49 -0500 +Subject: [PATCH 1674/4131] drm/amdgpu: Record gfx7/gfx8 VM range fault as + not-present + +A range fault (address outside VMID start/end range) should be +reported to the KFD as a not-present fault. + +Fixes KFD memory event trigger on range faults. + +Change-Id: I6fe281617ed36441213fad2a599e6c2760a2e40f +Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 +- + drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +index 9595023..3bc2537 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +@@ -776,7 +776,7 @@ static void gmc_v7_0_vm_decode_fault(struct amdgpu_device *adev, + info->vmid = vmid; + info->mc_id = mc_id; + info->page_addr = addr; +- info->prot_valid = protections & 0x6 ? true : false; ++ info->prot_valid = protections & 0x7 ? true : false; + info->prot_read = protections & 0x8 ? true : false; + info->prot_write = protections & 0x10 ? true : false; + info->prot_exec = protections & 0x20 ? true : false; +diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +index cb3fe87..2a4dac6 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +@@ -996,7 +996,7 @@ static void gmc_v8_0_vm_decode_fault(struct amdgpu_device *adev, + info->vmid = vmid; + info->mc_id = mc_id; + info->page_addr = addr; +- info->prot_valid = protections & 0x6 ? true : false; ++ info->prot_valid = protections & 0x7 ? true : false; + info->prot_read = protections & 0x8 ? true : false; + info->prot_write = protections & 0x10 ? true : false; + info->prot_exec = protections & 0x20 ? true : false; +-- +2.7.4 + |