Return-path: Received: from mail200.messagelabs.com ([216.82.254.195]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1QFRjr-0007ZW-8F for kexec@lists.infradead.org; Thu, 28 Apr 2011 13:58:40 +0000 Subject: Re: [PATCH 2.0.2] use /proc/iomem for map with "add_efi_memmap" kernel option From: Ben Romer In-Reply-To: <20110427231136.GB14272@verge.net.au> References: <1303908969.20180.8.camel@ustr-romerbm> <20110427231136.GB14272@verge.net.au> Date: Thu, 28 Apr 2011 10:00:15 -0400 Message-ID: <1303999215.27930.0.camel@ustr-romerbm> MIME-Version: 1.0 Reply-To: benjamin.romer@unisys.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: Simon Horman Cc: kexec Great!! Thank you very much. I really appreciate it. :) On Wed, 2011-04-27 at 18:11 -0500, Simon Horman wrote: > On Wed, Apr 27, 2011 at 08:56:09AM -0400, Ben Romer wrote: > > This patch changes the behavior of the kexec loader when the > > "add_efi_memmap" option is present on the currently running kernel's > > command line, to read the kernel memory map from /proc/iomem instead > > of /sys/firmware/memmap. > > > > On EFI systems, sometimes the e820 table is missing or incomplete. > > Systems like these use the "add_efi_memmap" option to add EFI's memory > > table entries to the kernel's memory table to build a complete picture > > of the system's memory; however, using the option does not add these > > entries to the table used to populate /sys/firmware/memmap, which is > > meant to be a pristine original copy. > > > > The kexec loader uses the pristine memory map by default, which causes > > problems when the loader doesn't have a complete picture of the system > > and incorrectly loads the kernel or ramdisk in places that aren't > > actually usable. This change makes the kexec loader check the running > > kernel's command line for the "add_efi_memmap" option and if it finds > > it, will use the modified map instead of the original map. > > > > signed-off-by: Benjamin Romer > > Thanks, applied. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec