summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-11-27 14:48:44 +0100
committerAlex Deucher <alexander.deucher@amd.com>2014-12-03 14:26:48 -0500
commitf7a3db75a6aaaf7bcc186dde0cf37f1627492af6 (patch)
tree535ac5a394ff1d4adc055737c899ff6c59ace0bf /drivers/gpu/drm/radeon/radeon.h
parent44c4bd21bdc88683724faa598c4a63bde7628b11 (diff)
downloadop-kernel-dev-f7a3db75a6aaaf7bcc186dde0cf37f1627492af6.zip
op-kernel-dev-f7a3db75a6aaaf7bcc186dde0cf37f1627492af6.tar.gz
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 da1c549..b59a4de 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;
OpenPOWER on IntegriCloud