From: Christian König Date: Sat, 19 Dec 2015 18:42:05 +0000 (+0100) Subject: drm/amdgpu: group VM mapping tree with its lock (v2) X-Git-Tag: v4.6-rc1~12^2~34^2~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25cfc3c27e84dc7c83227bae05558b7d35991412;p=platform%2Fkernel%2Flinux-exynos.git 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 Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index eaff96a..af29811 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 { }; struct amdgpu_vm { + /* tree of virtual addresses mapped */ + spinlock_t it_lock; struct rb_root va; /* protecting invalidated */ @@ -956,8 +958,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; };