drm/radeon: implement ring saving on reset v4
authorChristian König <deathsimple@vodafone.de>
Mon, 9 Jul 2012 09:52:44 +0000 (11:52 +0200)
committerChristian König <deathsimple@vodafone.de>
Tue, 17 Jul 2012 08:33:15 +0000 (10:33 +0200)
commit55d7c22192becd0ec827a6901899ff56fa985658
tree2876d95b10e9bac71ef168dd998537c731d3222f
parent45df68035c4964d42ea3850980708ce8674f75b3
drm/radeon: implement ring saving on reset v4

Try to save whatever is on the rings when
we encounter an lockup.

v2: Fix spelling error. Free saved ring data if reset fails.
    Add documentation for the new functions.
v3: Some more spelling fixes
v4: It doesn't make sense to save anything if all fences
    are signaled

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_ring.c