patch-2.4.21 linux-2.4.21/drivers/video/radeonfb.c
Next file: linux-2.4.21/drivers/video/riva/accel.c
Previous file: linux-2.4.21/drivers/video/pmagb-b-fb.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
2003-06-13 07:51:37.000000000 -0700
- Orig file:
linux-2.4.20/drivers/video/radeonfb.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/drivers/video/radeonfb.c linux-2.4.21/drivers/video/radeonfb.c
@@ -871,6 +871,14 @@
/* mem size is bits [28:0], mask off the rest */
rinfo->video_ram = tmp & CONFIG_MEMSIZE_MASK;
+ /* According to XFree86 4.2.0, some production M6's return 0
+ for 8MB. */
+ if (rinfo->video_ram == 0 &&
+ (pdev->device == PCI_DEVICE_ID_RADEON_LY ||
+ pdev->device == PCI_DEVICE_ID_RADEON_LZ)) {
+ rinfo->video_ram = 8192 * 1024;
+ }
+
/* ram type */
tmp = INREG(MEM_SDRAM_MODE_REG);
switch ((MEM_CFG_TYPE & tmp) >> 30) {
@@ -2778,7 +2786,7 @@
lvds_gen_cntl |= (LVDS_BL_MOD_EN | LVDS_BLON);
if (on && (level > BACKLIGHT_OFF)) {
lvds_gen_cntl |= LVDS_DIGON;
- if (!lvds_gen_cntl & LVDS_ON) {
+ if ((lvds_gen_cntl & LVDS_ON) == 0) {
lvds_gen_cntl &= ~LVDS_BLON;
OUTREG(LVDS_GEN_CNTL, lvds_gen_cntl);
(void)INREG(LVDS_GEN_CNTL);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)