mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* remove unnecessary BIOS reserved resources
@ 2003-10-17 17:40 Thayne Harbaugh
  0 siblings, 0 replies; only message in thread
From: Thayne Harbaugh @ 2003-10-17 17:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: Eric Biederman

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-17 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17 17:40 remove unnecessary BIOS reserved resources Thayne Harbaugh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®