aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/1710-drm-amdgpu-Use-mutex-on-invalidate-tlb-with-MMIO-cod.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1710-drm-amdgpu-Use-mutex-on-invalidate-tlb-with-MMIO-cod.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/1710-drm-amdgpu-Use-mutex-on-invalidate-tlb-with-MMIO-cod.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1710-drm-amdgpu-Use-mutex-on-invalidate-tlb-with-MMIO-cod.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1710-drm-amdgpu-Use-mutex-on-invalidate-tlb-with-MMIO-cod.patch
new file mode 100644
index 00000000..07ab294d
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1710-drm-amdgpu-Use-mutex-on-invalidate-tlb-with-MMIO-cod.patch
@@ -0,0 +1,28 @@
+From 5ae60bbbc0ca9b9583d582a6901807dabf23e8e4 Mon Sep 17 00:00:00 2001
+From: Shaoyun Liu <Shaoyun.Liu@amd.com>
+Date: Thu, 25 May 2017 18:24:00 -0400
+Subject: [PATCH 1710/4131] drm/amdgpu: Use mutex on invalidate tlb with MMIO
+ code path for Vega10
+
+Change-Id: I60819c65229d1fe2412e273be0d0951ebed2d815
+Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
+index 99abdf3..33b4077 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
+@@ -920,6 +920,8 @@ static void write_vmid_invalidate_request(struct kgd_dev *kgd, uint8_t vmid)
+ VM_INVALIDATE_ENG16_REQ__INVALIDATE_L2_PDE2_MASK |
+ VM_INVALIDATE_ENG16_REQ__INVALIDATE_L1_PTES_MASK;
+
++ mutex_lock(&adev->srbm_mutex);
++
+ /* Use light weight invalidation.
+ *
+ * TODO 1: agree on the right set of invalidation registers for
+--
+2.7.4
+