drm/radeon/kms: fix num_banks tiling config for fusion
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 23 Jun 2011 04:49:29 +0000 (00:49 -0400)
committerDave Airlie <airlied@redhat.com>
Fri, 24 Jun 2011 01:11:52 +0000 (11:11 +1000)
The field is encoded:
0 = 4 banks
1 = 8 banks
2 = 16 banks

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

index 445af7981637e8629de928f279b4dca6b3be1cd8..12d2fdc52414463d42cdc0ecb2a66f0b7e1e76e2 100644 (file)
@@ -2013,9 +2013,9 @@ static void evergreen_gpu_init(struct radeon_device *rdev)
                rdev->config.evergreen.tile_config |= (3 << 0);
                break;
        }
-       /* num banks is 8 on all fusion asics */
+       /* num banks is 8 on all fusion asics. 0 = 4, 1 = 8, 2 = 16 */
        if (rdev->flags & RADEON_IS_IGP)
-               rdev->config.evergreen.tile_config |= 8 << 4;
+               rdev->config.evergreen.tile_config |= 1 << 4;
        else
                rdev->config.evergreen.tile_config |=
                        ((mc_arb_ramcfg & NOOFBANK_MASK) >> NOOFBANK_SHIFT) << 4;