From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 8DEEDD80056 for ; Thu, 7 Dec 2023 07:41:08 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=mmlH6nDXJT5Lc/012xM5aypQXEV+SqkM5ukmtqIp0o0=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1701934867; v=1; b=jB7+yBbMqT658Rlm5l1hNwFqP80TutxqAhzO362tsEmzb4BEahaocC8xuoriGEq1aRQh0AoN UsXRQEx7Dz1PeTKkueUksA7LADw+MBRwyTyc6MawoVROipdBJFhTyh6WawO+GgzVbyqBAZ8hFu7 Vbsr3Mv8ppSctHAebATece8A= X-Received: by 127.0.0.2 with SMTP id RiycYY7687511xPcH4o17zS0; Wed, 06 Dec 2023 23:41:07 -0800 X-Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mx.groups.io with SMTP id smtpd.web11.78426.1701934866213906667 for ; Wed, 06 Dec 2023 23:41:06 -0800 X-Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 2756DB82661 for ; Thu, 7 Dec 2023 07:41:04 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80B61C433C8 for ; Thu, 7 Dec 2023 07:41:03 +0000 (UTC) X-Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2c9c18e7990so5077971fa.2 for ; Wed, 06 Dec 2023 23:41:03 -0800 (PST) X-Gm-Message-State: OhHKO2nUMc0lNcHVKSG9KlHOx7686176AA= X-Google-Smtp-Source: AGHT+IHQcQ0mKYulGKZaiOcT7iZl/fh/4YUe3N0AWsg9mx7/1+hR7QC+7kylXcYMF3lHeM5VXxINjdbUnzx6ZPmlkX4= X-Received: by 2002:a2e:9958:0:b0:2c9:f776:e291 with SMTP id r24-20020a2e9958000000b002c9f776e291mr1176353ljj.68.1701934861717; Wed, 06 Dec 2023 23:41:01 -0800 (PST) MIME-Version: 1.0 References: <20231031173700.647004-1-ngompa@fedoraproject.org> <58ec87dc-ce03-6ad8-681a-d815bc5c39f9@arm.com> In-Reply-To: From: "Ard Biesheuvel" Date: Thu, 7 Dec 2023 08:40:50 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [edk2-devel] [PATCH v2] MdeModulePkg/UefiBootManagerLib: Signal ReadyToBoot on platform recovery To: devel@edk2.groups.io, ngompa13@gmail.com, "Liming Gao (Byosoft address)" Cc: Laszlo Ersek , Jeremy Linton , Pete Batard , =?UTF-8?Q?Daniel_P_=2E_Berrang=C3=A9?= , Gerd Hoffmann , Samer El-Haj-Mahmoud Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=jB7+yBbM; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=kernel.org (policy=none) (cc Liming) On Thu, 7 Dec 2023 at 05:48, Neal Gompa wrote: > > On Fri, Nov 24, 2023 at 6:36=E2=80=AFPM Neal Gompa w= rote: > > > > On Thu, Nov 2, 2023 at 6:35=E2=80=AFAM Laszlo Ersek = wrote: > > > > > > On 10/31/23 23:27, Jeremy Linton wrote: > > > > On 10/31/23 12:37, Neal Gompa via groups.io wrote: > > > >> From: Neal Gompa > > > >> > > > >> Currently, the ReadyToBoot event is only signaled when a formal Bo= ot > > > >> Manager option is executed (in BmBoot.c -> EfiBootManagerBoot ()). > > > >> > > > >> However, the introduction of Platform Recovery in UEFI 2.5 makes i= t > > > >> necessary to signal ReadyToBoot when a Platform Recovery boot load= er > > > >> runs because otherwise it may lead to the execution of a boot load= er > > > >> that has similar requirements to a regular one that is not launche= d > > > >> as a Boot Manager option. > > > >> > > > >> This is especially critical to ensuring that the graphical console > > > >> is actually usable during platform recovery, as some platforms do > > > >> rely on the ConsolePrefDxe driver, which only performs console > > > >> initialization after ReadyToBoot is triggered. > > > >> > > > >> This patch fixes that behavior by calling EfiSignalEventReadyToBoo= t () > > > >> in EfiBootManagerProcessLoadOption () when invoking platform recov= ery, > > > >> which is the function that sets up the platform recovery boot proc= ess. > > > >> > > > >> The expected behavior has been clarified in the UEFI 2.10 specific= ation > > > >> to explicitly indicate this behavior is required for correct opera= tion. > > > >> > > > >> This is a rebased version of the patch originally written by Pete = Batard. > > > > > > > > Took me a bit to swap in that whole conversation again, and recheck= the > > > > spec's and code paths, but this all looks fine to me and should all= ow > > > > the PFTF build to drop the similar patch from Pete that has been ca= rried > > > > downstream for the past couple years. > > > > > > > > As for testing the previous patch has been in the field for a coupl= e > > > > years now and i'm not aware of it causing any issues. The additiona= l > > > > restriction of limiting it to platform recovery logically makes sen= se, > > > > and as far as I can see shouldn't cause any problems. > > > > > > > > So, > > > > > > > > Reviewed-by: Jeremy Linton > > > > > > > > > > > > As a PS: I also went to check the ready to boot behavior for OsReco= very > > > > and realized that apparently none of that support was ever merged? > > > > > > What else is there, outside of this patch, in need of upstreaming? > > > > > > > That seems a bit of an oversight since its been in the spec for a f= ew years now. > > > > > > "ready-to-boot for OsRecovery" is new in UEFI 2.10 (according to the > > > commit message), which is quite recent ("Aug 29, 2022"). > > > > > > I couldn't find the Mantis ticket in the Revision History (for 2.10) = though. > > > > > > > Is there anything else holding up committing this patch? Jeremy and > > you reviewed it earlier in the month... > > > > Friendly ping again? It's been a month now... > Apologies for the delay - Liming, can we progress with this? -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112165): https://edk2.groups.io/g/devel/message/112165 Mute This Topic: https://groups.io/mt/102302654/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-