lkml.org 
[lkml]   [2003]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectremove unnecessary BIOS reserved resources
From
Date
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?

--
Thayne Harbaugh
Linux Networx
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:58    [W:1.350 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site