[PATCH] kexec: Unusable memory range type

Cliff Wickman cpw at sgi.com
Thu Jun 17 12:37:06 EDT 2010


On SGI UV (x86_64) kexec grumbles about 'Unusable memory' ranges:
   Unknown type (%s) while parsing %s. Please "
   "report this as bug. Using RANGE_RESERVED now.

uv44-sys:~ # cat /proc/iomem
00000000-00000fff : System RAM
00001000-00005fff : reserved
00006000-0008efff : System RAM
0008f000-0008ffff : ACPI Non-volatile Storage
00090000-0009ffff : System RAM
00100000-75ffcfff : System RAM
  01000000-0139dcaf : Kernel code
  0139dcb0-0192c12f : Kernel data
  01a28000-01cd7777 : Kernel bss
  02000000-09ffffff : Crash kernel
75ffd000-76013fff : Unusable memory
76014000-766a6fff : System RAM
766a7000-766d6fff : Unusable memory
...

This patch keeps Unusable memory as another RANGE_RESERVED area, but
without the warning message.

Diffed against git.kernel.org/pub/scm/linux/kernel/git/horms/kexec-tools.git

Signed-off-by: Cliff Wickman <cpw at sgi.com>
---
 kexec/firmware_memmap.c |    2 ++
 1 file changed, 2 insertions(+)

Index: kexec-tools/kexec/firmware_memmap.c
===================================================================
--- kexec-tools.orig/kexec/firmware_memmap.c
+++ kexec-tools/kexec/firmware_memmap.c
@@ -161,6 +161,8 @@ static int parse_memmap_entry(const char
 		range->type = RANGE_RAM;
 	else if (strcmp(type, "ACPI Tables") == 0)
 		range->type = RANGE_ACPI;
+	else if (strcmp(type, "Unusable memory") == 0)
+		range->type = RANGE_RESERVED;
 	else if (strcmp(type, "reserved") == 0)
 		range->type = RANGE_RESERVED;
 	else if (strcmp(type, "Unusable memory") == 0)



More information about the kexec mailing list