aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0218-drm-amdgpu-group-VM-mapping-tree-with-its-lock-v2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0218-drm-amdgpu-group-VM-mapping-tree-with-its-lock-v2.patch')
-rw-r--r--common/recipes-kernel/linux/files/0218-drm-amdgpu-group-VM-mapping-tree-with-its-lock-v2.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0218-drm-amdgpu-group-VM-mapping-tree-with-its-lock-v2.patch b/common/recipes-kernel/linux/files/0218-drm-amdgpu-group-VM-mapping-tree-with-its-lock-v2.patch
new file mode 100644
index 00000000..ac4909dc
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0218-drm-amdgpu-group-VM-mapping-tree-with-its-lock-v2.patch
@@ -0,0 +1,46 @@
+From 9d3616c9cb4ed48b4929f3d214997f97da1208b3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Sat, 19 Dec 2015 19:42:05 +0100
+Subject: [PATCH 0218/1110] drm/amdgpu: group VM mapping tree with its lock
+ (v2)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+And also update the comment.
+
+v2: agd: rebase on usptream.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+index 501fd23..35d5221 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+@@ -892,6 +892,8 @@ struct amdgpu_vm_id {
+ };
+
+ struct amdgpu_vm {
++ /* tree of virtual addresses mapped */
++ spinlock_t it_lock;
+ struct rb_root va;
+
+ /* protecting invalidated */
+@@ -916,8 +918,7 @@ struct amdgpu_vm {
+
+ /* for id and flush management per ring */
+ struct amdgpu_vm_id ids[AMDGPU_MAX_RINGS];
+- /* for interval tree */
+- spinlock_t it_lock;
++
+ /* protecting freed */
+ spinlock_t freed_lock;
+ };
+--
+2.7.4
+