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: 125161 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp267613ljf; Fri, 19 Jan 2018 04:26:32 -0800 (PST) X-Google-Smtp-Source: ACJfBovPhSFzBmvXNSSYDU9sgOCk/drkO7y8JxGbwASN102P/X9xiQvw8JvxmxDNkwIdA1T8XeIe X-Received: by 10.99.171.78 with SMTP id k14mr6274186pgp.287.1516364791965; Fri, 19 Jan 2018 04:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516364791; cv=none; d=google.com; s=arc-20160816; b=ljfg0BIskPiYjXsOntd9j6B0j63z3qyMT/QHxjYUQUOJ5La9M6xBdEvN9FTCAKqRJr 38N4N3I38PHthhP7AbL8o6srVr+oIODNWAnjuyfMxSX/wquEro3WWplDXls/MhFlqGti 5mIKyDcceX/X/tgGFL3qo2ZOyL8XP3Z8pDAFjj1K2If1qMDAUFvZTTzilZ7ezHPMAoeZ mUj9e4cGpZ7lrg8XCeP3zZNCLWdb2/vXKeRH2xy483n/ZQQdjaTxR/uhRn/1XZpMPP9U KMLmEdOsQCjXN7F+PEQRIV1Ls7IidWr0mUANhseEirSc2q+GhQJ0G7L3slH4SCAA946W QKvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=KoOPNSWXTkkQ/OXbe/yHVDJDZ96KbP0+s+3z07+fXyU=; b=v2C/3gUuJoP/ednd5XARQY2wwzJEPeNC56nuDNrdwiPaKR0TCz5kG69IGSRH1V9fXw LOBTpZ4F1aEgFeAJb4RET/daqsDs6TRdK+JPFrIyPxajd87AvXBIa8ouYaH4+i+sC1OK Tus2B0TSt5+eu6Tml6iYJGXa232jxinntiaC18MvkMzmy3812k7foR3Y9xVXm8EDAoTe CKYuGBIrHY6cS9lHYp2c00BODkDdMOtkiWBDphdFQMhJexDUoqdYPQpvM4cAvRhFR9IJ T9bUOQPqAZSR42Hefou1D/v8HiO9nZMzWt8RoTjkWjNInpWO1iio+eI3AUW6+z13zCw7 Mkpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aLvho6/V; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c16-v6si796244pli.305.2018.01.19.04.26.31; Fri, 19 Jan 2018 04:26:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aLvho6/V; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755274AbeASM0b (ORCPT + 2 others); Fri, 19 Jan 2018 07:26:31 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:45688 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755197AbeASM0a (ORCPT ); Fri, 19 Jan 2018 07:26:30 -0500 Received: by mail-wm0-f68.google.com with SMTP id i186so3057073wmi.4 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=XBkkM2OhyIByEEP0OyQFfgrahM6yYKadxKAfQ0fmaQCCx5b+qRlqli69lRqaLeAR7V AlOHUpuTBtuulus88OzLJkA2fFNKqn23kfB4y81xfMhQE5p4xA1pXxAlPHu04MCezUxX IBkfzeL6Anu7gnRTg87IrDHuAEf81WdkwP4VupD6++7FtLdEUzSwsvZtOKQypDSTbm7K Ih4fTzQSKv4MMd9L6vn7u8kfIcNxao6OdJoc6hrO3PdKO6TW+RCSl5S8VA5KBSj611D5 12lU8jXg6FNeWJF0YauQlaJIfzPvn/6/h8p1/TJG1iJl7vhrGKWNiAJLT5391D6RQ6Nm 1swg== X-Gm-Message-State: AKwxytdD8tDk9Jo41Nhl619pJ/6N86y+kn1M26gIdD1jXXmVDGCotW/+ iP9IsteJFWI7SJiRRsGMZxaYyibgrY8= 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 Cc: linux-arm-kernel@lists.infradead.org, leif.lindholm@linaro.org, mark.rutland@arm.com, Ard Biesheuvel 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 Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org 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 --- drivers/firmware/efi/arm-runtime.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Leif Lindholm 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;