From: Alex Deucher Date: Thu, 30 Jun 2011 12:59:55 +0000 (-0400) Subject: drm/radeon/kms: Fix chremap setup on RV770 CE X-Git-Tag: v2.6.39.3~85 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6f6d3321d249bbf8bd3a04d3f04281441c8012fa;p=karo-tx-linux.git drm/radeon/kms: Fix chremap setup on RV770 CE commit daf54f1f363a61c618662ef66d4bf09d2b090941 upstream. CE variant requires a different chremap setup. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=35472 Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index ef8a5babe9f7..05aa6749802c 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c @@ -572,6 +572,12 @@ static void rv770_program_channel_remap(struct radeon_device *rdev) else tcp_chan_steer = 0x00fac688; + /* RV770 CE has special chremap setup */ + if (rdev->pdev->device == 0x944e) { + tcp_chan_steer = 0x00b08b08; + mc_shared_chremap = 0x00b08b08; + } + WREG32(TCP_CHAN_STEER, tcp_chan_steer); WREG32(MC_SHARED_CHREMAP, mc_shared_chremap); }