changeset 9240:4898cfdf582a

The patch enables the fix for rage128_vid as well as radeon_vid, and looks for the DEVICE_ATI_RAGE_MOBILITY device IDs in addition to the Radeon Mobility device IDs. Tom Wu <tom@arcot.com>
author arpi
date Mon, 03 Feb 2003 01:45:49 +0000
parents e5c2d780ee42
children 537ff3f9961d
files vidix/drivers/radeon_vid.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/radeon_vid.c	Mon Feb 03 01:41:39 2003 +0000
+++ b/vidix/drivers/radeon_vid.c	Mon Feb 03 01:45:49 2003 +0000
@@ -1036,6 +1036,15 @@
       printf(RADEON_MSG" Workarounding buggy Radeon Mobility M6 (0 vs. 8MB ram)\n");
       radeon_ram_size = 8192*1024;
   }
+#else
+  /* Rage Mobility (rage128) also has memsize bug */
+  if (radeon_ram_size == 0 &&
+      (def_cap.device_id == DEVICE_ATI_RAGE_MOBILITY_M3 ||
+       def_cap.device_id == DEVICE_ATI_RAGE_MOBILITY_M32))
+  {
+      printf(RADEON_MSG" Workarounding buggy Rage Mobility M3 (0 vs. 8MB ram)\n");
+      radeon_ram_size = 8192*1024;
+  }
 #endif
   if((radeon_mem_base = map_phys_mem(pci_info.base0,radeon_ram_size))==(void *)-1) return ENOMEM;
   memset(&besr,0,sizeof(bes_registers_t));