aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-05-27 21:27:01 -0400
committerDave Airlie <airlied@redhat.com>2008-06-18 21:27:39 -0400
commitfa0d71b967506031f7cb08ced6095d1c4f988594 (patch)
treecff727e9449a79384062fcc846c446df6793c4fe /drivers/char/drm
parent9f18409ea3d778a171a9505c0a849d846f352bd0 (diff)
drm/rs690: set all of gart base address.
Docs state bits 4-11 maps to bits 32-39 of the 40-bit range Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r--drivers/char/drm/radeon_cp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/drm/radeon_cp.c b/drivers/char/drm/radeon_cp.c
index d8ede40de0b0..1e434ba15564 100644
--- a/drivers/char/drm/radeon_cp.c
+++ b/drivers/char/drm/radeon_cp.c
@@ -659,8 +659,9 @@ static void radeon_set_rs690gart(drm_radeon_private_t *dev_priv, int on)
659 temp = RS690_READ_MCIND(dev_priv, RS690_MC_GART_FEATURE_ID); 659 temp = RS690_READ_MCIND(dev_priv, RS690_MC_GART_FEATURE_ID);
660 RS690_WRITE_MCIND(RS690_MC_GART_FEATURE_ID, 0x42040800); 660 RS690_WRITE_MCIND(RS690_MC_GART_FEATURE_ID, 0x42040800);
661 661
662 RS690_WRITE_MCIND(RS690_MC_GART_BASE, 662 temp = dev_priv->gart_info.bus_addr & 0xfffff000;
663 dev_priv->gart_info.bus_addr); 663 temp |= (upper_32_bits(dev_priv->gart_info.bus_addr) & 0xff) << 4;
664 RS690_WRITE_MCIND(RS690_MC_GART_BASE, temp);
664 665
665 temp = RS690_READ_MCIND(dev_priv, RS690_MC_AGP_MODE_CONTROL); 666 temp = RS690_READ_MCIND(dev_priv, RS690_MC_AGP_MODE_CONTROL);
666 RS690_WRITE_MCIND(RS690_MC_AGP_MODE_CONTROL, 0x01400000); 667 RS690_WRITE_MCIND(RS690_MC_AGP_MODE_CONTROL, 0x01400000);