From patchwork Fri Jan 19 12:26:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 10175171 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E52FD60386 for ; Fri, 19 Jan 2018 12:26:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D40FD2868B for ; Fri, 19 Jan 2018 12:26:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C450528696; Fri, 19 Jan 2018 12:26:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 394422868B for ; Fri, 19 Jan 2018 12:26:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=nhLT937I6ot2B8uxuHSg54YHhiO3wodpbHsf4j6oc7c=; b=OOS cGY+DfWXV2y1/kojIctcSp/eVeIZEhxDs7Pf1SNPZ+D/tVM2ZIrIXqe8ZEaOwb8o1JeFlfWZjUhte 8kuEPF5A707/aakZ93zip0Ivs4U0a2KkW/cxI84Fi46aMgOjsGxBQ3ycnqiVfZcqT5fVL/7j/FK5F K5X8C5d/p4wGacPwDvU1B4rC62YYQs3Rzpra4s/J/iOFwpRbOU5bgYCOLe9KGbAH6ARrmj7U35ro3 n/cX3SnMHZEKwLIhOyRnZhK0TnGJY4x+uiynACv/Ke+bHDLrFqJOrapJyI5jE6FVkPUTElO4CF3kp B9jtJlJUs2Y9K5EpyyHRLktMu3klkUw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ecVkq-0006fT-5v; Fri, 19 Jan 2018 12:26:44 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ecVkn-0006fD-4V for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2018 12:26:42 +0000 Received: by mail-wm0-x241.google.com with SMTP id t74so3082294wme.3 for ; Fri, 19 Jan 2018 04:26:30 -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; bh=csLh6Q+EXJr7kVv3HZ3hdMqN/W1sYiTvS9H1LGD6uMs=; b=aLvho6/V3Vy1DUP0XSveXCS6F5jwTYQlhcH2F+r38NCAwHQNpooKvjuaQ/rfOH3aN8 rwqUFHv4z8qzbPJ5TvsRtbO9G2uxRt7SXRH6FT0C9WLFvRSp4poPJ0pyIbCh8o0DeHyY b6Ta1+0xzA0sbH8hCC6dnMo4sCahnOkQ5E7Ac= 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; bh=csLh6Q+EXJr7kVv3HZ3hdMqN/W1sYiTvS9H1LGD6uMs=; b=Z06gRw0HCFByUdd4tqXGGDq2XM+C0eELE1mtMq/ABvTZAVJWMrimiz703BzXhs3n7/ R2CeFeWkoOrR2X/A+c62iHJIlFyhutmivTyqi9MWkWyHBKs+MTTK57oZcoycaOYEZfFS P2GcMZwZhb+6w5UTh8DuE16xZjtORNgoWSHz/CN/rUwOm0ktaMGL3QRIa/OG8ig0evdD 3N0SOiqdTT9S4D3ewF0vRVrciqok5mpAfaS0OtFS2XmR7kHPFULynJk8wV5S+tIOU2XD HjjD4fsfHvW0pKSOqE8Dgt/hcLihj33091I8VXUGLdqqciCX9CvHtJG23iFssc3t56bF pD2A== X-Gm-Message-State: AKwxytePGsxMmTM2pmuI+RUyMEBWMM/irkgymjpWwacwnJTV5U0EyqIS QzIsuXkoRoRDlbHfgxUmYyWLScDUUcM= X-Google-Smtp-Source: ACJfBovCpyRcXcZpk/gC+9/uGA8xt23h6XzkTUCMmT+0b2IB8uleKLRakO3QYKXoA6w4U4TFJWBm7Q== X-Received: by 10.28.111.90 with SMTP id k87mr7143183wmc.108.1516364789187; Fri, 19 Jan 2018 04:26:29 -0800 (PST) Received: from localhost.localdomain ([160.170.62.40]) by smtp.gmail.com with ESMTPSA id y62sm8685964wrb.48.2018.01.19.04.26.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jan 2018 04:26:28 -0800 (PST) From: Ard Biesheuvel To: linux-efi@vger.kernel.org Subject: [PATCH] efi: arm: stop printing addresses of virtual mappings Date: Fri, 19 Jan 2018 12:26:19 +0000 Message-Id: <20180119122619.16023-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, leif.lindholm@linaro.org, linux-arm-kernel@lists.infradead.org, Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With the recent %p -> %px changes, we now get something like this in the kernel boot log on ARM/arm64 EFI systems: Remapping and enabling EFI services. EFI remap 0x00000087fb830000 => (ptrval) EFI remap 0x00000087fbdb0000 => (ptrval) EFI remap 0x00000087fffc0000 => (ptrval) The physical addresses of the UEFI runtime regions will also be printed when booting with the efi=debug command line option, and the virtual addresses can be inspected via /sys/kernel/debug/efi_page_tables (if enabled). So let's just remove the lines above. Signed-off-by: Ard Biesheuvel Acked-by: Leif Lindholm --- drivers/firmware/efi/arm-runtime.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/firmware/efi/arm-runtime.c b/drivers/firmware/efi/arm-runtime.c index 1cc41c3d6315..5d4c8b661548 100644 --- a/drivers/firmware/efi/arm-runtime.c +++ b/drivers/firmware/efi/arm-runtime.c @@ -80,10 +80,7 @@ static bool __init efi_virtmap_init(void) return false; ret = efi_create_mapping(&efi_mm, md); - if (!ret) { - pr_info(" EFI remap %pa => %p\n", - &phys, (void *)(unsigned long)md->virt_addr); - } else { + if (ret) { pr_warn(" EFI remap %pa: failed to create mapping (%d)\n", &phys, ret); return false;