drm/radeon: record what is next valid wptr for each ring v4
authorChristian König <deathsimple@vodafone.de>
Fri, 6 Jul 2012 14:22:55 +0000 (16:22 +0200)
committerChristian König <deathsimple@vodafone.de>
Tue, 17 Jul 2012 08:33:09 +0000 (10:33 +0200)
Before emitting any indirect buffer, emit the offset of the next
valid ring content if any. This allow code that want to resume
ring to resume ring right after ib that caused GPU lockup.

v2: use scratch registers instead of storing it into memory
v3: skip over the surface sync for ni and si as well
v4: use SET_CONFIG_REG instead of PACKET0

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

No differences found