drm/radeon/kms: Fix chremap setup on RV770 CE
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 30 Jun 2011 12:59:55 +0000 (08:59 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 30 Jun 2011 21:29:46 +0000 (07:29 +1000)
CE variant requires a different chremap setup.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=35472

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/rv770.c

index 6f508ffd1035c0814d7096af09d718e9b040ec9a..8bb347d23ca6bb3c757fb00a820a448e3be34457 100644 (file)
@@ -575,6 +575,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);
 }