summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-11-27 16:48:44 +0300
committerAlex Deucher <alexander.deucher@amd.com>2014-12-03 22:26:48 +0300
commitf7a3db75a6aaaf7bcc186dde0cf37f1627492af6 (patch)
tree535ac5a394ff1d4adc055737c899ff6c59ace0bf /drivers/gpu/drm/radeon/radeon.h
parent44c4bd21bdc88683724faa598c4a63bde7628b11 (diff)
downloadlinux-f7a3db75a6aaaf7bcc186dde0cf37f1627492af6.tar.xz
drm/radeon: add spinlock for BO_VA status protection (v2)
Stop using the VM mutex for this v2: fix typo in comment Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index da1c549fc732..b59a4de76174 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -929,6 +929,9 @@ struct radeon_vm {
struct rb_root va;
+ /* protecting invalidated and freed */
+ spinlock_t status_lock;
+
/* BOs moved, but not yet updated in the PT */
struct list_head invalidated;