[PATCH 04/16] drm/radeon: add an exclusive lock for GPU reset v2

2012-07-09 Thread Christian König
From: Jerome Glisse 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

[PATCH 04/16] drm/radeon: add an exclusive lock for GPU reset v2

2012-07-09 Thread Christian König
From: Jerome Glisse jgli...@redhat.com 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