From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751187AbdALQSY (ORCPT ); Thu, 12 Jan 2017 11:18:24 -0500 Received: from mail-io0-f181.google.com ([209.85.223.181]:34759 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbdALQSX (ORCPT ); Thu, 12 Jan 2017 11:18:23 -0500 MIME-Version: 1.0 In-Reply-To: <20170112094215.016194745@redhat.com> References: <20170112094118.815108042@redhat.com> <20170112094215.016194745@redhat.com> From: Ard Biesheuvel Date: Thu, 12 Jan 2017 16:18:21 +0000 Message-ID: Subject: Re: [PATCH 4/4] efi/x86: add debug code to print cooked memmap To: Dave Young Cc: Matt Fleming , "linux-efi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , Nicolai Stange , Ingo Molnar , Thomas Gleixner , "hpa@zytor.com" , Dan Williams , =?UTF-8?Q?Mika_Penttil=C3=A4?= , bhsharma@redhat.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12 January 2017 at 09:41, Dave Young wrote: > It is not obvious if the reserved boot area are added correctly, add a > efi_print_memmap to print the new memmap. > > Signed-off-by: Dave Young This sounds useful regardless of the other patches in this series: Acked-by: Ard Biesheuvel Note that it is appropriate to keep this x86 specific, since we never modify the memory map on ARM (except for the sorting that occurs in the stub) > --- > arch/x86/platform/efi/efi.c | 5 +++++ > 1 file changed, 5 insertions(+) > > --- linux-x86.orig/arch/x86/platform/efi/efi.c > +++ linux-x86/arch/x86/platform/efi/efi.c > @@ -873,6 +873,11 @@ static void __init __efi_enter_virtual_m > return; > } > > + if (efi_enabled(EFI_DBG)) { > + pr_info("EFI runtime memory map:\n"); > + efi_print_memmap(); > + } > + > BUG_ON(!efi.systab); > > if (efi_setup_page_tables(pa, 1 << pg_shift)) { > >