diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-07-01 13:18:28 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-07-01 17:09:08 -0400 |
commit | 8208441be21eb3df448e171c4e5cf92756f287da (patch) | |
tree | b3b0d4b1195fceca989beb48c5482daf411d7cea /drivers/gpu/drm/radeon/evergreen.c | |
parent | daf54f1f363a61c618662ef66d4bf09d2b090941 (diff) |
drm/radeon/kms: use correct reg on fusion when reading back mem config
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 12d2fdc52414..e8a5ffb0124d 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c | |||
@@ -2248,7 +2248,10 @@ int evergreen_mc_init(struct radeon_device *rdev) | |||
2248 | 2248 | ||
2249 | /* Get VRAM informations */ | 2249 | /* Get VRAM informations */ |
2250 | rdev->mc.vram_is_ddr = true; | 2250 | rdev->mc.vram_is_ddr = true; |
2251 | tmp = RREG32(MC_ARB_RAMCFG); | 2251 | if (rdev->flags & RADEON_IS_IGP) |
2252 | tmp = RREG32(FUS_MC_ARB_RAMCFG); | ||
2253 | else | ||
2254 | tmp = RREG32(MC_ARB_RAMCFG); | ||
2252 | if (tmp & CHANSIZE_OVERRIDE) { | 2255 | if (tmp & CHANSIZE_OVERRIDE) { |
2253 | chansize = 16; | 2256 | chansize = 16; |
2254 | } else if (tmp & CHANSIZE_MASK) { | 2257 | } else if (tmp & CHANSIZE_MASK) { |