aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-12-19 13:42:05 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-02-10 14:16:45 -0500
commit25cfc3c27e84dc7c83227bae05558b7d35991412 (patch)
treed12a3b456d3dd883a04d7f002e5552b6fc2d2d6c /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent36409d122cb84fa8f25a42b95a32c6090790e571 (diff)
drm/amdgpu: group VM mapping tree with its lock (v2)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index eaff96afe540..af2981190ae0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -932,6 +932,8 @@ struct amdgpu_vm_id {
932}; 932};
933 933
934struct amdgpu_vm { 934struct amdgpu_vm {
935 /* tree of virtual addresses mapped */
936 spinlock_t it_lock;
935 struct rb_root va; 937 struct rb_root va;
936 938
937 /* protecting invalidated */ 939 /* protecting invalidated */
@@ -956,8 +958,7 @@ struct amdgpu_vm {
956 958
957 /* for id and flush management per ring */ 959 /* for id and flush management per ring */
958 struct amdgpu_vm_id ids[AMDGPU_MAX_RINGS]; 960 struct amdgpu_vm_id ids[AMDGPU_MAX_RINGS];
959 /* for interval tree */ 961
960 spinlock_t it_lock;
961 /* protecting freed */ 962 /* protecting freed */
962 spinlock_t freed_lock; 963 spinlock_t freed_lock;
963}; 964};