diff options
author | Jerome Glisse <jglisse@redhat.com> | 2012-07-02 16:45:19 (GMT) |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2012-07-17 08:32:02 (GMT) |
commit | dee53e7fb3ee01b83c75a8e8df8c444049d38058 (patch) | |
tree | f9f0a669b4949f9d215759bcbd8f79a08ca1bdfa /drivers/gpu/drm/radeon/radeon.h | |
parent | 93bf888c5c730605e3470f5d2381f296eda88d79 (diff) | |
download | linux-fsl-qoriq-dee53e7fb3ee01b83c75a8e8df8c444049d38058.tar.xz |
drm/radeon: add an exclusive lock for GPU reset v2
GPU reset need to be exclusive, one happening at a time. For this
add a rw semaphore so that any path that trigger GPU activities
have to take the semaphore as a reader thus allowing concurency.
The GPU reset path take the semaphore as a writer ensuring that
no concurrent reset take place.
v2: init rw semaphore
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 5861ec8..4487873 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -1446,6 +1446,7 @@ struct radeon_device { struct device *dev; struct drm_device *ddev; struct pci_dev *pdev; + struct rw_semaphore exclusive_lock; /* ASIC */ union radeon_asic_config config; enum radeon_family family; |