diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-05-20 18:35:22 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-05-24 00:59:33 +0200 |
commit | 5bfa487955016dc99f83195921f74287743f0033 (patch) | |
tree | c86a182869c84bdf6236e050d1af11bc76a39ffb /drivers | |
parent | drm/radeon/kms/atom: move dig phy init out of modesetting (diff) | |
download | linux-5bfa487955016dc99f83195921f74287743f0033.tar.xz linux-5bfa487955016dc99f83195921f74287743f0033.zip |
drm/radeon/kms: properly set num banks for fusion asics
Needed by userspace for 2D tiled buffer alignment
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 864e853cc0ec..34cd5a878088 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -1933,8 +1933,12 @@ static void evergreen_gpu_init(struct radeon_device *rdev) rdev->config.evergreen.tile_config |= (3 << 0); break; } - rdev->config.evergreen.tile_config |= - ((mc_arb_ramcfg & NOOFBANK_MASK) >> NOOFBANK_SHIFT) << 4; + /* num banks is 8 on all fusion asics */ + if (rdev->flags & RADEON_IS_IGP) + rdev->config.evergreen.tile_config |= 8 << 4; + else + rdev->config.evergreen.tile_config |= + ((mc_arb_ramcfg & NOOFBANK_MASK) >> NOOFBANK_SHIFT) << 4; rdev->config.evergreen.tile_config |= ((mc_arb_ramcfg & BURSTLENGTH_MASK) >> BURSTLENGTH_SHIFT) << 8; rdev->config.evergreen.tile_config |= |