diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-03-16 21:55:37 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-03-16 21:55:37 +0000 |
commit | 9ee312e500abbb5ec513ae401c4b36b96bb36c79 (patch) | |
tree | 38ca8244b39c6cab38426034043e672c2b165ca0 | |
parent | c7faeb55883e5ae47a9695c24b1ffcefa7f2f129 (diff) |
Add missing return statement (the driver would not start randomly), add
RV410 to the list of new generation cards for the memory map setup and
fix a bogus message.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/radeon_driver.c | 10 |
2 files changed, 15 insertions, 3 deletions
@@ -1,3 +1,11 @@ +2006-03-17 Benjamin Herrenschmidt <benh@kernel.crashing.org> + + * src/radeon_driver.c: (RADEONGetAccessibleVRAM), + (RADEONPreInitVRAM): + Add missing return statement (the driver would not start randomly), + add RV410 to the list of new generation cards for the memory map + setup and fix a bogus message. + 2006-03-16 Benjamin Herrenschmidt <benh@kernel.crashing.org> * src/radeon_driver.c: (RADEONInitCrtcRegisters), diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 91f3563..30e73ec 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -1,5 +1,5 @@ /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c,v 1.117 2004/02/19 22:38:12 tsi Exp $ */ -/* $XdotOrg: driver/xf86-video-ati/src/radeon_driver.c,v 1.92.2.8 2006/03/16 03:14:11 benh Exp $ */ +/* $XdotOrg: driver/xf86-video-ati/src/radeon_driver.c,v 1.92.2.9 2006/03/16 04:35:53 benh Exp $ */ /* * Copyright 2000 ATI Technologies Inc., Markham, Ontario, and * VA Linux Systems Inc., Fremont, California. @@ -2428,7 +2428,8 @@ static CARD32 RADEONGetAccessibleVRAM(ScrnInfoPtr pScrn) if (info->directRenderingEnabled && info->pKernelDRMVersion->version_minor < 23) { xf86DrvMsg(pScrn->scrnIndex, X_WARNING, - "[dri] limiting video memory to one aperture of %dK\n"); + "[dri] limiting video memory to one aperture of %dK\n", + aper_size); xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "[dri] use radeon.o kernel module version 1.23.0 for" " full memory mapping.\n", @@ -2448,7 +2449,8 @@ static CARD32 RADEONGetAccessibleVRAM(ScrnInfoPtr pScrn) if (info->ChipFamily == CHIP_FAMILY_RV280 || info->ChipFamily == CHIP_FAMILY_RV350 || info->ChipFamily == CHIP_FAMILY_RV380 || - info->ChipFamily == CHIP_FAMILY_R420) { + info->ChipFamily == CHIP_FAMILY_R420 || + info->ChipFamily == CHIP_FAMILY_RV410) { OUTREGP (RADEON_HOST_PATH_CNTL, RADEON_HDP_APER_CNTL, ~RADEON_HDP_APER_CNTL); xf86DrvMsg(pScrn->scrnIndex, X_INFO, @@ -2572,6 +2574,8 @@ static Bool RADEONPreInitVRAM(ScrnInfoPtr pScrn) else #endif info->FbSecureSize = 0; + + return TRUE; } |