drm/radeon: improve ring lockup detection code v2
Use atomics and jiffies_64, so that we don't need to have the ring mutex locked any more and avoid wrap arounds. v2: fix some checkpatch warnings Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -805,8 +805,8 @@ struct radeon_ring {
|
||||
unsigned ring_size;
|
||||
unsigned ring_free_dw;
|
||||
int count_dw;
|
||||
unsigned long last_activity;
|
||||
unsigned last_rptr;
|
||||
atomic_t last_rptr;
|
||||
atomic64_t last_activity;
|
||||
uint64_t gpu_addr;
|
||||
uint32_t align_mask;
|
||||
uint32_t ptr_mask;
|
||||
|
Reference in New Issue
Block a user