summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@amd.com>2014-07-14 16:36:08 +0400
committerOded Gabbay <oded.gabbay@amd.com>2014-07-14 16:36:08 +0400
commit1c0a46255f8d7daf5b601668836e185fd1294e94 (patch)
treefb2202ab1d15f7cfab295e4c9a00de0e566e9867 /drivers/gpu/drm/radeon/radeon.h
parentebff8453d3a57a2405c4d96d9f9c4f4acc7d4d79 (diff)
downloadlinux-1c0a46255f8d7daf5b601668836e185fd1294e94.tar.xz
drm/radeon: adding synchronization for GRBM GFX
Implementing a lock for selecting and accessing shader engines and arrays. This lock will make sure that radeon and amdkfd are not colliding when accessing shader engines and arrays with GRBM_GFX_INDEX register. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@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 f6cb42ea43a6..e95718f02de3 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -2397,6 +2397,8 @@ struct radeon_device {
struct radeon_atcs atcs;
/* srbm instance registers */
struct mutex srbm_mutex;
+ /* GRBM index mutex. Protects concurrents access to GRBM index */
+ struct mutex grbm_idx_mutex;
/* clock, powergating flags */
u32 cg_flags;
u32 pg_flags;