Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2856549pxb; Sun, 29 Aug 2021 05:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsOhBe1+3M3lK5JunTF1FiyMheJ4Spc9tCop14v4vnQEqt2O8vXQagiEnvC6wDMWk4FmHv X-Received: by 2002:a17:907:384:: with SMTP id ss4mr19718458ejb.478.1630241656870; Sun, 29 Aug 2021 05:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630241656; cv=none; d=google.com; s=arc-20160816; b=U7bXBHC4zUh38g3CA4sjt1FM6Jx6oMYZO5bxTt2iXzgGWA32rsidT+JVVx6Zqd4bJE 96NRDFbH2F7ywHhMwSMcn+dvGoiCj0+a+8brzJ82OhimIBl9mjgngk2HtHW5EXBHLWh6 bDPGvJ6wxU3WMeRvffAMEPK7pH7nD2WUaQaQqh+S2SEwY1pR/mCnzchW4p17qE7/M0Yi hRP4MllbQ8v5JYH6kPKhViMbR0zu0ZMiaEfDPWfqFz11TO/RAnlhEb6TX8iB4UU1C+2D ESKMk3/D2uatqPV8WiP8pia8hQNyMomZUGYRzV98iTzbPzuysNfFmF7uhbXsaWJwqizj 4Czw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ec9ejvL3UxKr94M+EKJMH+mi9gqyGvaor8NJmZDmCrM=; b=YofNjeAtg6OFKTjqz4fhyWbBjVLRxnWxashHZtIdINirk8D5U0wyxmNGOSxCQko/Oe AezuEV2F/PgpNLlzfcBxuudyOS2kW2ETEA6Sa5Swtify06zatce/sf2CNIZUJFd4BLV4 V2zu5YHl1IXPqQLGztaIaasmyH7iTAskxdsoSZNdOAnTKGI7xhMyzKN0ia/+meDG4zAw 3+qPK8S7YAWC/EfXCU2T100TGRT6nLEG41EmnKNeE/HIlneHqkgT511CbImvlGPoePn0 LBtQJKancj83dh5PLKQjoMOJ8iZhaU3WLnFWHD9Avk9oc/33Fz+t3YNY4/JI6Csd05Qs bZCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=hqwjzK8P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si13836873edu.205.2021.08.29.05.53.54; Sun, 29 Aug 2021 05:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=hqwjzK8P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235335AbhH2Muz (ORCPT + 99 others); Sun, 29 Aug 2021 08:50:55 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:42262 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235124AbhH2Muy (ORCPT ); Sun, 29 Aug 2021 08:50:54 -0400 Received: from workstation5.fritz.box (ip-88-152-144-157.hsi03.unitymediagroup.de [88.152.144.157]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id A486C3F232; Sun, 29 Aug 2021 12:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1630241400; bh=ec9ejvL3UxKr94M+EKJMH+mi9gqyGvaor8NJmZDmCrM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=hqwjzK8Pk1HHHiiCbqdMmZ8ZXDheXoRjjaaTRZtkgyVIy2p325O1Rn+SuMGUT4hFn ht+Yn4+NM1xBjPsrvE5sa36FPsya60mvtva9nCp70rABOaCyVdSfrCUumtQZYDYYjD aQ6YcqbC0O6Dnxr1CgutUBJ/JxiMeJ5aFhL0NBaczTU2WsZFMMeLhrdVU6n8DvXSMW j8Jdw2OB4SicG0S1/TGVi4iWX0fTLFX4HP+5QpkiCfb8wLtke4qvBx8WB/2yBT5ytM BgORcTIiAyZFdPBA7FIqcjL3bTGoOrzMGhEmE12NOYzaugRTHxOod4IkTpx1WCTy6q dmSWBc3ZCJjnQ== From: Heinrich Schuchardt To: Ard Biesheuvel Cc: Atish Patra , Heinrich Schuchardt , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Heinrich Schuchardt Subject: [PATCH] efi/libstub: "Exiting bootservices" message Date: Sun, 29 Aug 2021 14:49:55 +0200 Message-Id: <20210829124955.74429-1-heinrich.schuchardt@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The message "Exiting boot services and installing virtual address map...\n" is even shown if we have efi=novamap on the command line or the firmware does not provide EFI_RT_SUPPORTED_SET_VIRTUAL_ADDRESS_MAP. To avoid confusion we should print "Exiting boot services...\n" in this case. Signed-off-by: Heinrich Schuchardt --- drivers/firmware/efi/libstub/fdt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/efi/libstub/fdt.c b/drivers/firmware/efi/libstub/fdt.c index 365c3a43a198..d871b1ac4d8b 100644 --- a/drivers/firmware/efi/libstub/fdt.c +++ b/drivers/firmware/efi/libstub/fdt.c @@ -271,7 +271,10 @@ efi_status_t allocate_new_fdt_and_exit_boot(void *handle, return status; } - efi_info("Exiting boot services and installing virtual address map...\n"); + if (efi_novamap) + efi_info("Exiting boot services...\n"); + else + efi_info("Exiting boot services and installing virtual address map...\n"); map.map = &memory_map; status = efi_allocate_pages(MAX_FDT_SIZE, new_fdt_addr, ULONG_MAX); -- 2.30.2