drm/radeon/kms: use correct reg on fusion when reading back mem config
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 1 Jul 2011 17:18:28 +0000 (13:18 -0400)
committerDave Airlie <airlied@redhat.com>
Fri, 1 Jul 2011 21:09:08 +0000 (07:09 +1000)
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c

index 12d2fdc52414463d42cdc0ecb2a66f0b7e1e76e2..e8a5ffb0124d2256d821f2adc899f659351040a8 100644 (file)
@@ -2248,7 +2248,10 @@ int evergreen_mc_init(struct radeon_device *rdev)
 
        /* Get VRAM informations */
        rdev->mc.vram_is_ddr = true;
-       tmp = RREG32(MC_ARB_RAMCFG);
+       if (rdev->flags & RADEON_IS_IGP)
+               tmp = RREG32(FUS_MC_ARB_RAMCFG);
+       else
+               tmp = RREG32(MC_ARB_RAMCFG);
        if (tmp & CHANSIZE_OVERRIDE) {
                chansize = 16;
        } else if (tmp & CHANSIZE_MASK) {