projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36409d1
)
drm/amdgpu: group VM mapping tree with its lock (v2)
author
Christian König
<
[email protected]
>
Sat, 19 Dec 2015 18:42:05 +0000
(19:42 +0100)
committer
Alex Deucher
<
[email protected]
>
Wed, 10 Feb 2016 19:16:45 +0000
(14:16 -0500)
And also update the comment.
v2: agd: rebase on usptream.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index eaff96afe540760712dfbf3d0ba81719fb9eb9ef..af2981190ae08b95132eb3321776648a642390bc 100644
(file)
--- 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;
};