aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-07-31 11:01:10 -0400
committerAlex Deucher <alexander.deucher@amd.com>2012-08-13 10:50:51 -0400
commitc8d15edc17d836686d1f071e564800e1a2724fa6 (patch)
treec8524ecef79d585aab26861b9b9edd12136d474e
parentdca571a6a4edda1f61ba7ecb47431a22245490a3 (diff)
drm/radeon: fix bank tiling parameters on evergreen
Handle the 16 bank case. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/radeon/evergreen.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index e585a3b947eb..f4ef24f11419 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -1986,10 +1986,18 @@ static void evergreen_gpu_init(struct radeon_device *rdev)
1986 if (rdev->flags & RADEON_IS_IGP) 1986 if (rdev->flags & RADEON_IS_IGP)
1987 rdev->config.evergreen.tile_config |= 1 << 4; 1987 rdev->config.evergreen.tile_config |= 1 << 4;
1988 else { 1988 else {
1989 if ((mc_arb_ramcfg & NOOFBANK_MASK) >> NOOFBANK_SHIFT) 1989 switch ((mc_arb_ramcfg & NOOFBANK_MASK) >> NOOFBANK_SHIFT) {
1990 rdev->config.evergreen.tile_config |= 1 << 4; 1990 case 0: /* four banks */
1991 else
1992 rdev->config.evergreen.tile_config |= 0 << 4; 1991 rdev->config.evergreen.tile_config |= 0 << 4;
1992 break;
1993 case 1: /* eight banks */
1994 rdev->config.evergreen.tile_config |= 1 << 4;
1995 break;
1996 case 2: /* sixteen banks */
1997 default:
1998 rdev->config.evergreen.tile_config |= 2 << 4;
1999 break;
2000 }
1993 } 2001 }
1994 rdev->config.evergreen.tile_config |= 0 << 8; 2002 rdev->config.evergreen.tile_config |= 0 << 8;
1995 rdev->config.evergreen.tile_config |= 2003 rdev->config.evergreen.tile_config |=