drm/radeon: adding synchronization for GRBM GFX
authorOded Gabbay <oded.gabbay@amd.com>
Mon, 14 Jul 2014 12:36:08 +0000 (15:36 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 14 Jul 2014 12:36:08 +0000 (15:36 +0300)
commit1c0a46255f8d7daf5b601668836e185fd1294e94
treefb2202ab1d15f7cfab295e4c9a00de0e566e9867
parentebff8453d3a57a2405c4d96d9f9c4f4acc7d4d79
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>
drivers/gpu/drm/radeon/cik.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c