diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-02-19 20:12:33 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-02-19 20:12:33 -0500 |
commit | f3933ed200dbf61b05a114f7697f2bb68d92abe7 (patch) | |
tree | 39c2e2c229b4e3dd54c71dd959fb9ac4bf71808e /src/radeon_driver.c | |
parent | 7f6801abb4bbd79830999d99ccdbd672a9984df6 (diff) |
Don't write new HDP location until we've written the new FB location
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 7b151ea2..28db063f 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -1347,21 +1347,15 @@ static void RADEONInitMemoryMap(ScrnInfoPtr pScrn) if (info->ChipFamily >= CHIP_FAMILY_R600) { info->fbLocation = (info->mc_fb_location & 0xffff) << 24; } else { - info->fbLocation = (info->mc_fb_location & 0xffff) << 16; + info->fbLocation = (info->mc_fb_location & 0xffff) << 16; } /* Just disable the damn AGP apertures for now, it may be * re-enabled later by the DRM */ - - if (IS_AVIVO_VARIANT) { - if (info->ChipFamily >= CHIP_FAMILY_R600) { - OUTREG(R600_HDP_NONSURFACE_BASE, (info->mc_fb_location << 16) & 0xff0000); - } else { - OUTREG(AVIVO_HDP_FB_LOCATION, info->mc_fb_location); - } - info->mc_agp_location = 0x003f0000; - } else - info->mc_agp_location = 0xffffffc0; + if (IS_AVIVO_VARIANT) + info->mc_agp_location = 0x003f0000; + else + info->mc_agp_location = 0xffffffc0; xf86DrvMsg(pScrn->scrnIndex, X_INFO, "RADEONInitMemoryMap() : \n"); xf86DrvMsg(pScrn->scrnIndex, X_INFO, @@ -3780,7 +3774,7 @@ void RADEONRestoreMemMapRegisters(ScrnInfoPtr pScrn, } else { OUTREG(R600_HDP_NONSURFACE_BASE, (restore->mc_fb_location << 16) & 0xff0000); } - + /* Reset the engine and HDP */ RADEONEngineReset(pScrn); } |