Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WiEmi-000373-VM for kexec@lists.infradead.org; Thu, 08 May 2014 03:14:14 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s483DpGf023013 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 7 May 2014 23:13:52 -0400 Date: Thu, 8 May 2014 10:24:50 +0800 From: Dave Young Subject: Re: Why do we pass memory map both in e820 and efi_info Message-ID: <20140508022450.GA3320@darkstar.nay.redhat.com> References: <20140507175858.GD21048@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140507175858.GD21048@redhat.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" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Vivek Goyal Cc: Kexec Mailing List , WANG Chao On 05/07/14 at 01:58pm, Vivek Goyal wrote: > Hi Dave/Chao, > > I am going through kexec-tools code and it looks like that for EFI > systems, we pass memory map entries both in bootparams e820 memory map > as well as efi_info. I am wondering why that's the case? Most UEFI firmware have a CSM (Compatibility Support Module) that could have provided a suitable E820-style memory map to the kernel. Linux kernel use E820 always either for legacy bios boot or UEFI boot. For the machine firmware which does not provide E820 interface user can specify 'add_efi_memmap' kernel cmdline thus kernel can add efi memmaps to E820 array. For the efi memmap in efi_info, it's necessary for efi boot because efi initialization will use it. UEFI has a lot of mem types, E820 only have several RAM,RESERVED, ACPI, etc. efi_init need the special UEFI specific mem ranges ie. for boot services, runtime services etc. I believe the UEFI specific mem ranges could be contained in the RESERVED E820 ranges though I did not verify it. > > IOW, I am also trying to figure out as a bootloader, when should we > pass memmap in e820 and when should it be passed in efi_info. E820 is mandatory usually. efi_info only for UEFI boot. Thanks Dave _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec