Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2856627pxb; Sun, 29 Aug 2021 05:54:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1NMAUdP2UozFEBsqFy12ZnBCJS5VRdVkcN4IVoFdQn9dAKDf0E7jVid4uXu1Iq0Yj3H2h X-Received: by 2002:a05:6602:584:: with SMTP id v4mr14699754iox.85.1630241668450; Sun, 29 Aug 2021 05:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630241668; cv=none; d=google.com; s=arc-20160816; b=JX4b1dNKcXfZJFizY6n7Wuy2RnWgfQGMRhbf2/FGQJiRKYlVIDsnxYhZ1VxCTN1dds PSzM+o4KrBDrBtuwTJymKW4pNApVLA3Id2XOWChdz6ZjnsEQWzVc7U8+IrCkGFzKu4BC /8lEeG6DGlzM9fJpDWe8ENId7DyUPCS/XTFIvtK81vCn+aJ7i6Hb75TUwbOJUu/WeLgQ uNYVsRM2LGPe0ZXg9krWbCo/DtogB/4IE3y1b8OFxMeAFurVXtBTEGEMBUyk1+Hru6Sa 07dc26UNeewnyHeadf965i5ishdafw2TgB4jos9PJvYl8IYahEV9eACxTdgrPt/4Apwi KoLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/wswN5UcmErbjxa2Y39+YTfM6e4s9qIVf9Aml1g4w5U=; b=OIUxY07vakoBrChHOT0hAdMIZFtxEaVJEZEcsVDloOJus9XzT1bB9of3ZsYzqxeIuS fIazMWFb4bhH6uGuiTR49iV1VUvgU/yRGy0yt66G1znR0bQWjDMA/i1fSP29P/HcEh37 +Zf6uP22koieqeLfFr4XFH8IqXcTB3XWuGxe3sl0mQrceUPW8RoQg0maOhy8iEXYJheW i85SrYEp6fuRrZN2MKcUjTFvOWBIyulJs75adQ3/a+hdkXyG0FJeZsznxMgzN5nQ1fDy vYVcngJwv98Vu2e2NCZQcaO1RVj30LoTw3b/qyNxLZNTN6H3+QMYVBt1LkboB6HQJ2OG 0nFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u10XVH9l; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si11954065jao.24.2021.08.29.05.54.17; Sun, 29 Aug 2021 05:54:28 -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=@kernel.org header.s=k20201202 header.b=u10XVH9l; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235377AbhH2MyZ (ORCPT + 99 others); Sun, 29 Aug 2021 08:54:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:54424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235372AbhH2MyX (ORCPT ); Sun, 29 Aug 2021 08:54:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D250D60F35; Sun, 29 Aug 2021 12:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630241611; bh=Ic5ZHECdsknHEfSrciqjEtVP3Tg1eHs6eteJ9awSWzM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=u10XVH9l/Fa/oSFbbvdwyJYcnMMM2ANoc7EJ2Up+VXVrEIIHYp4OE50itX6owz6TR aT+V73gP8Viu6qQMu6G72dL6mMzdYtpYV9+aUzG2eFXlAi6SGGIiffJUWAu1KS07Bg HCFRE/ogbFlYNrmAHXbmzQP5MsB22HbthTJTYXdZtXFmwFdOYQE5kfyir/+es4S5hh OGSPxlGYnlIcESCiOCsLnGTiOxeBTRoajdT6H7P3KPDK/vEfLjKUflWybg0hx/LhKy Ox8pI5QsQg8idI3pc+zwoTnI9DbqQyWA/99SIXSbWvw8OX0pfwqAR+7j9cQbM9n+pl 8z9B7B0Gn9N9A== Received: by mail-ot1-f50.google.com with SMTP id x10-20020a056830408a00b004f26cead745so14652474ott.10; Sun, 29 Aug 2021 05:53:31 -0700 (PDT) X-Gm-Message-State: AOAM533q1zjF8aKTu7GKQVWmSElz6i2cRvNkc0G8rxl/jug41w0JLl7Y w3C5neWkaa+qZMqC37EwMSCsY9XL9CN4XQDlJ0Q= X-Received: by 2002:a05:6830:719:: with SMTP id y25mr9497930ots.77.1630241611165; Sun, 29 Aug 2021 05:53:31 -0700 (PDT) MIME-Version: 1.0 References: <20210829124955.74429-1-heinrich.schuchardt@canonical.com> In-Reply-To: <20210829124955.74429-1-heinrich.schuchardt@canonical.com> From: Ard Biesheuvel Date: Sun, 29 Aug 2021 14:53:20 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] efi/libstub: "Exiting bootservices" message To: Heinrich Schuchardt Cc: Atish Patra , Heinrich Schuchardt , linux-efi , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 29 Aug 2021 at 14:50, Heinrich Schuchardt wrote: > > 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 Hello Heinrich, I agree with the analysis but I'd prefer to simply go with the shorter string in all cases. Thanks, Ard. > - > 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 >