diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-08-06 12:40:16 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-08-07 17:37:18 -0400 |
commit | f61d5b46771a352fad1ac7f99008ef52a7ffcb72 (patch) | |
tree | b305a6940a4b04980f54e30a0807ada45eed6d1f /drivers/gpu/drm/radeon/radeon_device.c | |
parent | 3744b248f9c617295f1fd015d67281a67e592ecb (diff) | |
download | op-kernel-dev-f61d5b46771a352fad1ac7f99008ef52a7ffcb72.zip op-kernel-dev-f61d5b46771a352fad1ac7f99008ef52a7ffcb72.tar.gz |
drm/radeon/cik: use a mutex to properly lock srbm instanced registers
We need proper locking in the driver when accessing instanced
registers on CIK.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 84dd2dcb..63398ae 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -1163,6 +1163,7 @@ int radeon_device_init(struct radeon_device *rdev, mutex_init(&rdev->gem.mutex); mutex_init(&rdev->pm.mutex); mutex_init(&rdev->gpu_clock_mutex); + mutex_init(&rdev->srbm_mutex); init_rwsem(&rdev->pm.mclk_lock); init_rwsem(&rdev->exclusive_lock); init_waitqueue_head(&rdev->irq.vblank_queue); |