drm/radeon: write AGP_BASE_2 on chips that support it.
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 28 May 2008 01:46:36 +0000 (11:46 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 19 Jun 2008 01:27:39 +0000 (11:27 +1000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/drm/radeon_cp.c

index 3a424986e85eb106e40c9a08403e887078fcf612..fc0820c2b4b4b1dbcfa1d7d875204b8f26a92eef 100644 (file)
@@ -472,6 +472,8 @@ static void radeon_cp_init_ring_buffer(struct drm_device * dev,
 #if __OS_HAS_AGP
        if (dev_priv->flags & RADEON_IS_AGP) {
                RADEON_WRITE(RADEON_AGP_BASE, (unsigned int)dev->agp->base);
+               if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R200)
+                       RADEON_WRITE(RADEON_AGP_BASE_2, 0);
                radeon_write_agp_location(dev_priv,
                             (((dev_priv->gart_vm_start - 1 +
                                dev_priv->gart_size) & 0xffff0000) |