[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] backport f4a570997e71b892805a1e71303d09c327af135f (was Re: [Xen-ia64-devel] [PATCH 4/5] kexec: fix /proc/iomem_machine)
[IA64] backport point saved_max_pfn to the max_pfn of the entire system backport Upstream Linux changeset f4a570997e71b892805a1e71303d09c327af135f Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -21,6 +21,7 @@ * Skip non-WB memory and ignore empty memory ranges. */ #include <linux/module.h> +#include <linux/bootmem.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/types.h> @@ -1015,6 +1016,11 @@ } else ae = efi_md_end(md); +#ifdef CONFIG_CRASH_DUMP + /* saved_max_pfn should ignore max_addr= command line arg */ + if (saved_max_pfn < (ae >> PAGE_SHIFT)) + saved_max_pfn = (ae >> PAGE_SHIFT); +#endif /* keep within max_addr= and min_addr= command line arg */ as = max(as, min_addr); ae = min(ae, max_addr); diff --git a/arch/ia64/mm/contig.c b/arch/ia64/mm/contig.c --- a/arch/ia64/mm/contig.c +++ b/arch/ia64/mm/contig.c @@ -181,11 +181,6 @@ 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 -- yamahata _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ia64-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |