aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3090-drm-amdgpu-drop-extra-tlb-invalidation-in-gpuvm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3090-drm-amdgpu-drop-extra-tlb-invalidation-in-gpuvm.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3090-drm-amdgpu-drop-extra-tlb-invalidation-in-gpuvm.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3090-drm-amdgpu-drop-extra-tlb-invalidation-in-gpuvm.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3090-drm-amdgpu-drop-extra-tlb-invalidation-in-gpuvm.patch
new file mode 100644
index 00000000..520e1c0e
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3090-drm-amdgpu-drop-extra-tlb-invalidation-in-gpuvm.patch
@@ -0,0 +1,39 @@
+From ab4d27320c3b009e53c86c6abe548f324c25060f Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Fri, 5 Jan 2018 10:33:48 -0500
+Subject: [PATCH 3090/4131] drm/amdgpu: drop extra tlb invalidation in gpuvm
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We only need to flush the HDP here, not invalidate the TLB.
+
+Reviewed-by: Christian König <christian.koenig@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+index ea5f4e8..e1d56f6 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+@@ -862,7 +862,6 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev,
+ /* Flush HDP */
+ mb();
+ amdgpu_asic_flush_hdp(adev);
+- amdgpu_gart_flush_gpu_tlb(adev, 0);
+ } else if (params.ib->length_dw == 0) {
+ amdgpu_job_free(job);
+ } else {
+@@ -1486,7 +1485,6 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,
+ /* Flush HDP */
+ mb();
+ amdgpu_asic_flush_hdp(adev);
+- amdgpu_gart_flush_gpu_tlb(adev, 0);
+ }
+
+ spin_lock(&vm->status_lock);
+--
+2.7.4
+