remove unnecessary BIOS reserved resources
e820 BIOS reserved memory ranges can be incorrect. Even when the ranges are correct, once they are entered into iomem_resource with request_resorce() the ranges prevent drivers from registering the same ranges.
Not registering the ranges shouldn't break anything - some BIOSes don't even report _any_ reserved ranges and the kernel works just fine. This patch drops registration of e820 BIOS reserved ranges. The patch should apply to 2.4.x and 2.6.
--- linux-2.4.20/arch/i386/kernel/setup.c 2002-11-28 16:53:09.000000000
-0700
+++ linux-2.4.20-bs/arch/i386/kernel/setup.c 2003-10-17
12:01:12.000000000 -0600
@@ -1047,7 +1047,6 @@
case E820_RAM: res->name = "System RAM"; break;
case E820_ACPI: res->name = "ACPI Tables"; break;
case E820_NVS: res->name = "ACPI Non-volatile Storage"; break;
- default: res->name = "reserved";
}
res->start = e820.map[i].addr; res->end = res->start + e820.map[i].size - 1;
Anyone have reasons why this shouldn't be applied?
Signature · 2 lines
Thayne Harbaugh Linux Networx