summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-07-18 13:48:10 +0200
committerAlex Deucher <alexander.deucher@amd.com>2014-07-21 13:17:38 -0400
commitcc9e67e3d7000c1efbaf929c6bdaf78707407b3b (patch)
tree821067ec1bd97e60b1ff140b0f5227c436fa3808 /drivers/gpu/drm/radeon/radeon.h
parent036bf46a3962c87fc6ab5e6dbc65f469730b4cf0 (diff)
downloadop-kernel-dev-cc9e67e3d7000c1efbaf929c6bdaf78707407b3b.zip
op-kernel-dev-cc9e67e3d7000c1efbaf929c6bdaf78707407b3b.tar.gz
drm/radeon: fix VM IB handling
Calling radeon_vm_bo_find on the IB BO during CS is illegal and can lead to an crash. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 3d5e1a9..60c47f8 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -879,6 +879,8 @@ struct radeon_vm {
/* array of page tables, one for each page directory entry */
struct radeon_vm_pt *page_tables;
+ struct radeon_bo_va *ib_bo_va;
+
struct mutex mutex;
/* last fence for cs using this vm */
struct radeon_fence *fence;
OpenPOWER on IntegriCloud