From nobody Mon Feb 9 22:03:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+60290+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+60290+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1590509665; cv=none; d=zohomail.com; s=zohoarc; b=h1OwgOk3GwPq3cjNbondXgfZbqA4MrxW5GKXy7G4thTMpMpkvjFzpWdVVYM/AMMCG7kGoNVNcgdO8x/jgs5kkeY/oGbZ6ka6oD4ZVSLuAGls0nkQjTTbVb7EP3D6yi+K9LZop2t2qSp68tp51sTEnEqc4wvYytgpONnT4ZzV+mA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590509665; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=GqW38zvEaCjWPGckTeCIACkh9PQZrS1OygLaBkIBS+Q=; b=IDMvhiL9oeGulnewFBe76mNOlmQ5PujfGkZRSLzO5DXm5NCmzweeKl2wSwOAuJFxxFJW6uAqkSbLGb0pBeOUlzqbKb0ZhhHnHc1WKe5CxCCayQvCvP1S9BKaWsPPKvIEHTAo4QuKuDM6uytWqIE5wkASLr9qrXAoF+mBu9z+O0M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+60290+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 159050966524295.3613492701993; Tue, 26 May 2020 09:14:25 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id URPBYY1788612xy5IeANxFgW; Tue, 26 May 2020 09:14:24 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.53828.1590509663678771056 for ; Tue, 26 May 2020 09:14:23 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5316055D; Tue, 26 May 2020 09:14:23 -0700 (PDT) X-Received: from e123331-lin.nice.arm.com (unknown [10.37.8.89]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 30F403F52E; Tue, 26 May 2020 09:14:21 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: jon@solid-run.com, Ard Biesheuvel Subject: [edk2-devel] [PATCH 4/5] ArmPkg/PlatformBootManagerLib: don't connect all devices on each boot Date: Tue, 26 May 2020 18:13:58 +0200 Message-Id: <20200526161359.4810-5-ard.biesheuvel@arm.com> In-Reply-To: <20200526161359.4810-1-ard.biesheuvel@arm.com> References: <20200526161359.4810-1-ard.biesheuvel@arm.com> Precedence: Bulk List-Unsubscribe: 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,ard.biesheuvel@arm.com X-Gm-Message-State: 6G4d82OOm8ZLt6FHV6KAsGYAx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1590509664; bh=GvE8knaRuZCJgO+THwSSwdzEf3EP8m5a6WBomKGZaYs=; h=Cc:Date:From:Reply-To:Subject:To; b=tNkPmcPQU+G5TFLZyFqk39eXWMh9VYegM/LME7P2CS/UzdxmH767+GY8/eBATweU4n4 7WBy4NM1XAAKoWITGGmyG8GRt0Mmj1dwszg7OhBlHdcnzZ+f0X3yy6IxVthRpG8+O6cYo uqEIXt88ekcZtXRKSiJFbnPrIeqKHONlo9U= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" In order to avoid boot delays from devices such as network controllers that may not even be involved in booting at all, drop the call to EfiBootManagerConnectAll () from the boot path. It will be called by UiApp, so when going through the menu, all devices will be connected as usual, but for the default boot, it is really not necessary so let's get rid of this. Enumerating all possible boot options and creating Boot#### variables for them is equally unnecessary in the default case, and also happens automatically in UiApp, so drop that as well. Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c b/ArmPkg/Li= brary/PlatformBootManagerLib/PlatformBm.c index b465f9ff388f..618072405a50 100644 --- a/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c +++ b/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c @@ -753,11 +753,6 @@ PlatformBootManagerAfterConsole ( } } =20 - // - // Connect the rest of the devices. - // - EfiBootManagerConnectAll (); - // // On ARM, there is currently no reason to use the phased capsule // update approach where some capsules are dispatched before EndOfDxe @@ -767,11 +762,6 @@ PlatformBootManagerAfterConsole ( // HandleCapsules (); =20 - // - // Enumerate all possible boot options. - // - EfiBootManagerRefreshAllBootOption (); - // // Register UEFI Shell // --=20 2.17.1 -=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 (#60290): https://edk2.groups.io/g/devel/message/60290 Mute This Topic: https://groups.io/mt/74481039/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-