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 | lwn-f61d5b46771a352fad1ac7f99008ef52a7ffcb72.tar.gz lwn-f61d5b46771a352fad1ac7f99008ef52a7ffcb72.zip |
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 84dd2dcbcf69..63398ae1dbf5 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); |