drm/radeon: fix fence value access
authorChristian König <deathsimple@vodafone.de>
Mon, 9 Jul 2012 08:52:39 +0000 (10:52 +0200)
committerChristian König <deathsimple@vodafone.de>
Tue, 17 Jul 2012 08:32:15 +0000 (10:32 +0200)
commitbf66625e02ac8e4535627394bcfb237bbf8a157f
treee1d10c50e0a3c803a3e00af4c7f99d8ed454a80a
parent07a713305a2b55d6ec424000f2c5bed1268ac56b
drm/radeon: fix fence value access

It is possible that radeon_fence_process is called
after writeback is disabled for suspend, leading
to an invalid read of register 0x0.

This fixes a problem for me where the fence value
is temporary incremented by 0x100000000 on
suspend/resume.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_fence.c