From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751449AbdBAJtY (ORCPT ); Wed, 1 Feb 2017 04:49:24 -0500 Received: from terminus.zytor.com ([65.50.211.136]:53684 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbdBAJtW (ORCPT ); Wed, 1 Feb 2017 04:49:22 -0500 Date: Wed, 1 Feb 2017 01:48:43 -0800 From: tip-bot for Dave Young Message-ID: Cc: mingo@kernel.org, tglx@linutronix.de, matt@codeblueprint.co.uk, peterz@infradead.org, hpa@zytor.com, dyoung@redhat.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, ard.biesheuvel@linaro.org, nicstange@gmail.com Reply-To: ard.biesheuvel@linaro.org, nicstange@gmail.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, dyoung@redhat.com, hpa@zytor.com, peterz@infradead.org, matt@codeblueprint.co.uk, tglx@linutronix.de, mingo@kernel.org In-Reply-To: <1485868902-20401-10-git-send-email-ard.biesheuvel@linaro.org> References: <1485868902-20401-10-git-send-email-ard.biesheuvel@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] efi/x86: Add debug code to print cooked memmap Git-Commit-ID: 22c091d02a5422d2825a4fb1af71e5a62f9e4d0f X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 22c091d02a5422d2825a4fb1af71e5a62f9e4d0f Gitweb: http://git.kernel.org/tip/22c091d02a5422d2825a4fb1af71e5a62f9e4d0f Author: Dave Young AuthorDate: Tue, 31 Jan 2017 13:21:41 +0000 Committer: Ingo Molnar CommitDate: Wed, 1 Feb 2017 08:45:46 +0100 efi/x86: Add debug code to print cooked memmap It is not obvious if the reserved boot area are added correctly, add a efi_print_memmap() call to print the new memmap. Tested-by: Nicolai Stange Signed-off-by: Dave Young Signed-off-by: Ard Biesheuvel Reviewed-by: Nicolai Stange Cc: Linus Torvalds Cc: Matt Fleming Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1485868902-20401-10-git-send-email-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar --- arch/x86/platform/efi/efi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 0d4becf..565dff3 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c @@ -955,6 +955,11 @@ static void __init __efi_enter_virtual_mode(void) 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)) {