11 messages in com.xensource.lists.xen-ia64-devel[Xen-ia64-devel] [PATCH 4/5] kexec: f...
FromSent OnAttachments
Isaku Yamahata23 Jul 2008 22:59.patch
Simon Horman24 Jul 2008 01:03 
Isaku Yamahata24 Jul 2008 01:15 
Simon Horman24 Jul 2008 01:25 
Simon Horman24 Jul 2008 02:55 
Isaku Yamahata24 Jul 2008 21:45 
Isaku Yamahata24 Jul 2008 21:46 
Isaku Yamahata24 Jul 2008 21:47 
Simon Horman27 Jul 2008 20:47 
Simon Horman27 Jul 2008 20:47 
Simon Horman27 Jul 2008 20:48 
Subject:[Xen-ia64-devel] [PATCH 4/5] kexec: fix /proc/iomem_machine
From:Isaku Yamahata (yama@valinux.co.jp)
Date:07/23/2008 10:59:36 PM
List:com.xensource.lists.xen-ia64-devel
Attachments:

[IA64] initialize /proc/iomem_machine properly when discontig mem.

With CONFIG_DISCONTIGMEM enabled /proc/iomem_machine isn't initialized properly so that kexec failes because kexec-tools wrongly tries to use ia64 boot mem (or efi memmap area). This patch fixes /proc/iomem_machine.

Signed-off-by: Isaku Yamahata <yama@valinux.co.jp>

diff -r 75235538851a arch/ia64/mm/discontig.c --- a/arch/ia64/mm/discontig.c Thu Jul 24 14:31:08 2008 +0900 +++ b/arch/ia64/mm/discontig.c Thu Jul 24 14:31:27 2008 +0900 @@ -21,6 +21,9 @@ #include <linux/acpi.h> #include <linux/efi.h> #include <linux/nodemask.h> +#if defined(CONFIG_XEN) && defined(CONFIG_KEXEC) +#include <linux/kexec.h> +#endif #include <asm/pgalloc.h> #include <asm/tlb.h> #include <asm/meminit.h> @@ -502,10 +505,18 @@ reserve_pernode_space(); memory_less_nodes(); initialize_pernode_data(); +#if defined(CONFIG_XEN) && defined(CONFIG_KEXEC) + xen_machine_kexec_setup_resources(); +#endif

max_pfn = max_low_pfn;

find_initrd(); +#ifdef CONFIG_CRASH_DUMP + /* If we are doing a crash dump, we still need to know the real mem + * size before original memory map is * reset. */ + saved_max_pfn = max_pfn; +#endif }

#ifdef CONFIG_SMP