]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:29 +0000 (11:40 -0700)
commita4f5172f4f84d22889d97c527cd8fe7430f075ae
treee4408c8dd0f03cf19dd2096875d1331c9e7b0a47
parent90199f79ba3111426070b3e04d774c25024ea1a6
drm/radeon: Don't read from CP ring write pointer registers.

commit 87463ff83bcda210d8f0ae440bd64d1548f852e7 upstream.

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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600.c