changeset 10895:275ef2b47915

6881268 Fujitsu-Siemens Amilo D8820 hangs during boot when wifi card present in cardbus slot
author Guoli Shu<Kerry.Shu@Sun.COM>
date Wed, 28 Oct 2009 08:26:01 -0700
parents c29c209e317e
children 007ca67ca400
files usr/src/uts/intel/io/pci/pci_boot.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/intel/io/pci/pci_boot.c	Tue Oct 27 21:42:53 2009 -0700
+++ b/usr/src/uts/intel/io/pci/pci_boot.c	Wed Oct 28 08:26:01 2009 -0700
@@ -1333,6 +1333,19 @@
 		    isa_res.io_used);
 		memlist_remove_list(&pci_bus_res[bus].mem_avail,
 		    isa_res.mem_used);
+
+		/*
+		 * 3. Exclude <1M address range here in case below reserved
+		 * ranges for BIOS data area, ROM area etc are wrongly reported
+		 * in ACPI resource producer entries for PCI root bus.
+		 * 	00000000 - 000003FF	RAM
+		 * 	00000400 - 000004FF	BIOS data area
+		 * 	00000500 - 0009FFFF	RAM
+		 * 	000A0000 - 000BFFFF	VGA RAM
+		 * 	000C0000 - 000FFFFF	ROM area
+		 */
+		memlist_remove(&pci_bus_res[bus].mem_avail, 0, 0x100000);
+		memlist_remove(&pci_bus_res[bus].pmem_avail, 0, 0x100000);
 	}
 
 	memlist_free_all(&isa_res.io_used);