From patchwork Tue Jan 31 13:21:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 92984 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1923822qgi; Tue, 31 Jan 2017 05:27:49 -0800 (PST) X-Received: by 10.99.108.74 with SMTP id h71mr29715201pgc.99.1485869269115; Tue, 31 Jan 2017 05:27:49 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x66si11218392pgb.260.2017.01.31.05.27.48; Tue, 31 Jan 2017 05:27:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522AbdAaN1d (ORCPT + 25 others); Tue, 31 Jan 2017 08:27:33 -0500 Received: from mail-wj0-f171.google.com ([209.85.210.171]:34712 "EHLO mail-wj0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752280AbdAaN0M (ORCPT ); Tue, 31 Jan 2017 08:26:12 -0500 Received: by mail-wj0-f171.google.com with SMTP id uo9so13935308wjc.1 for ; Tue, 31 Jan 2017 05:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Xd1UQfBvzCizBSuX2dfpkIoaHDvYy2vXKPHNcDn/Jmg=; b=UPwtZmukEicWP1Q6jA3WDbpXxWsF0YZWYPKmelmw4Y6Z+0cYDw5yDUt3d19N+fGsMW 7nwtPkpOyEclIs7Aaz2/L+ZJLobPi4rjfeXPI2qzAsYKu7v6fUnEZdkl215WyXkydwI1 hYfOqCpEqppm/QStGzl7Ow8MADyUS00NWQAV0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Xd1UQfBvzCizBSuX2dfpkIoaHDvYy2vXKPHNcDn/Jmg=; b=tP4GojmwvQksWn2fIdm0p56L6H8YftuaCMkmcx4pOQDSncyJFa1Bp/Oa2vJEWa+NQx jAkQYifDRzM3Kzmvm88gi19oxzGq6svgIewCY3su7IwiQqGK7jQFNmZeLcTPSv2LO46w Mrk9SKq8SFuK1p5ZUgYhsRD+vZ012dsHnU5R13QMzo2S7r7TXdI3qv81VBoUPwXP/p5m Ybb4hV6Gtf30unLuY16qYH9HSqaZZbI58qIygkYpMgUmSA/x0F65oaUKFGgGdsSKrsv6 QdRFqrmyY3gLIXKaU2MsWqkh3cNdSPeVixdWyvmL086APCo4yXIXdCDkphlNjOZ+arVG fQ7Q== X-Gm-Message-State: AIkVDXIKWVpO0KetJjwF4eV2qA47NzQY8PmbPFGzTW33pp1xggWKb78cl9FgZBCE5ZGsqeMs X-Received: by 10.223.142.1 with SMTP id n1mr23652465wrb.185.1485869170132; Tue, 31 Jan 2017 05:26:10 -0800 (PST) Received: from localhost.localdomain ([105.130.17.13]) by smtp.gmail.com with ESMTPSA id i73sm23961714wmd.11.2017.01.31.05.26.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Jan 2017 05:26:09 -0800 (PST) From: Ard Biesheuvel To: linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner , "H . Peter Anvin" Cc: Dave Young , Ard Biesheuvel , linux-efi@vger.kernel.org, Matt Fleming Subject: [PATCH 09/10] efi/x86: Add debug code to print cooked memmap Date: Tue, 31 Jan 2017 13:21:41 +0000 Message-Id: <1485868902-20401-10-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485868902-20401-1-git-send-email-ard.biesheuvel@linaro.org> References: <1485868902-20401-1-git-send-email-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Young 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 Cc: Matt Fleming Reviewed-by: Nicolai Stange Tested-by: Nicolai Stange Signed-off-by: Ard Biesheuvel --- arch/x86/platform/efi/efi.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.4 diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 0d4becfc5145..565dff3c9a12 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)) {