drm/radeon: Don't read from CP ring write pointer registers.
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 13 Sep 2011 09:27:35 +0000 (11:27 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 14 Sep 2011 12:35:35 +0000 (13:35 +0100)
commit87463ff83bcda210d8f0ae440bd64d1548f852e7
treefd998d5b0e921d3d7aa3e60ea4046e9660ab2574
parentff02b13f6867af72682d7a9bb9bd705f9af2bab0
drm/radeon: Don't read from CP ring write pointer registers.

Apparently this doesn't always work reliably, e.g. at resume time.

Just initialize to 0, so the ring is considered empty.

Tested with hibernation on Sumo and Cayman cards.

Should fix https://bugs.launchpad.net/ubuntu/+source/linux/+bug/820746/ .

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600.c