summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2006-03-16 21:53:58 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2006-03-16 21:53:58 +0000
commitdc552edf191e14249421f8b27146874f16b80c1a (patch)
treeed6465811d21075285576653b5f3e4c639c8b4f6
parent901409f47cc990721c1648b1c08e23450e6a4452 (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--ChangeLog8
-rw-r--r--src/radeon_driver.c10
2 files changed, 15 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 59c2704..99a7485 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 3288fdf..3498289 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.102 2006/03/16 03:09:34 benh Exp $ */
+/* $XdotOrg: driver/xf86-video-ati/src/radeon_driver.c,v 1.103 2006/03/16 04:32:22 benh Exp $ */
/*
* Copyright 2000 ATI Technologies Inc., Markham, Ontario, and
* VA Linux Systems Inc., Fremont, California.
@@ -2429,7 +2429,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",
@@ -2449,7 +2450,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,
@@ -2573,6 +2575,8 @@ static Bool RADEONPreInitVRAM(ScrnInfoPtr pScrn)
else
#endif
info->FbSecureSize = 0;
+
+ return TRUE;
}