aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3816-drm-amdgpu-drop-double-HDP-flush-in-the-VM-code.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3816-drm-amdgpu-drop-double-HDP-flush-in-the-VM-code.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3816-drm-amdgpu-drop-double-HDP-flush-in-the-VM-code.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3816-drm-amdgpu-drop-double-HDP-flush-in-the-VM-code.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3816-drm-amdgpu-drop-double-HDP-flush-in-the-VM-code.patch
new file mode 100644
index 00000000..1f9053ac
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3816-drm-amdgpu-drop-double-HDP-flush-in-the-VM-code.patch
@@ -0,0 +1,36 @@
+From 86618a1575348c674992b1180960e4316988c3bd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Wed, 3 Apr 2019 14:11:53 +0200
+Subject: [PATCH 3816/4256] drm/amdgpu: drop double HDP flush in the VM code
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Already done in the CPU based backend code.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+index 6cda76591973..db1fe417fc95 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+@@ -1746,12 +1746,6 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va,
+ return r;
+ }
+
+- if (vm->use_cpu_for_update) {
+- /* Flush HDP */
+- mb();
+- amdgpu_asic_flush_hdp(adev, NULL);
+- }
+-
+ /* If the BO is not in its preferred location add it back to
+ * the evicted list so that it gets validated again on the
+ * next command submission.
+--
+2.17.1
+