]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit943c519d7d08230883379ae54745406ed44586bd
treefd998d5b0e921d3d7aa3e60ea4046e9660ab2574
parenta531a2db99f23d439536c4cdc042bb49cb809c55
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