From nobody Thu May 16 06:19:24 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1616509157; cv=none; d=zohomail.com; s=zohoarc; b=beMRJ+0AjaPo2FzstgTh9fKyD68tkWppah+Tf9Y+VOf0D0gfxc/oHkbOR639mIuB+nNhocEvbVArVXg1TUQJ4YnYoQjAp1el4q0+7mx4Zk9Uc+GZWG4ltfehx8iz30e5fLSD9sVZ/mgNb7xLpzUpezZJGgqQn5ZydgwsnmEy16c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616509157; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Subject:To; bh=w7u0/KGzZqCkHE1TndDYy7pUKLCHmouDu++Ml4jhx8M=; b=SJCdJa3uEz7blrVI+roeo6XXb/StZMO4JVJ1yGpF4d2SrY40TJmE/m+JQtQf2TkJ9/WYefCCjTKKBuGWay4+xAfzn9szRxUlR0g/O/G7H6OOXyXxYqn2tlnII2e8ptO0Ylnjw+TjvkyuPTsaRg3V2VEkGRC/VRwBL+IZJAY29nE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1616509157475289.48357206877677; Tue, 23 Mar 2021 07:19:17 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id A0A0816A09B1; Tue, 23 Mar 2021 14:19:09 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 6A00916A09A2 for ; Tue, 23 Mar 2021 14:18:51 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-544-6O7g2dO_NyiOjB0lHAQIVw-1; Tue, 23 Mar 2021 10:18:48 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4FC4E84B9A0 for ; Tue, 23 Mar 2021 14:18:47 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 050945C1C5; Tue, 23 Mar 2021 14:18:44 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) id CBE2F18000A7; Tue, 23 Mar 2021 15:18:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616509130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6aH/sWjv51ygrjCvoQqwmxXMUa88jhVskViu3yWOu1E=; b=Ph4KpoJcTeM5ywmb6St0r6G2B9BiypgbgIGo219/1yxDdBomZ4Qel2qfPV93NYP5RD7x2s jXIVQhHd64ezKXjzM9ThAJrIF9Lff1juAsgrbU094Nk0i45cb9MoaDs7Y4h+wkqiRGzWIs +sFC1IyX2zGp59+iLgLVsRUUWJMWBHY= X-MC-Unique: 6O7g2dO_NyiOjB0lHAQIVw-1 From: Gerd Hoffmann To: seabios@seabios.org Date: Tue, 23 Mar 2021 15:18:36 +0100 Message-Id: <20210323141836.865691-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: I3DNRMYL5EOZR5K62A5Y3LESUGEOGOSM X-Message-ID-Hash: I3DNRMYL5EOZR5K62A5Y3LESUGEOGOSM X-MailFrom: kraxel@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Gerd Hoffmann X-Mailman-Version: 3.3.4b1 Precedence: list Subject: [SeaBIOS] [PATCH] boot: add config option for fast device init List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: -- X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Add a config option for fast device init (i.e. skip non-bootable devices). This optimization breaks boot in some rare configurations, specifically in case the boot loader needs access to secondary disks. Signed-off-by: Gerd Hoffmann --- src/boot.c | 2 ++ src/Kconfig | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/boot.c b/src/boot.c index 1effd802ce06..771d2382e38f 100644 --- a/src/boot.c +++ b/src/boot.c @@ -299,6 +299,8 @@ u8 is_bootprio_strict(void) { static int prio_halt =3D -2; =20 + if (!CONFIG_BOOT_FAST_INIT) + return 0; if (prio_halt =3D=3D -2) prio_halt =3D find_prio("HALT"); return prio_halt >=3D 0; diff --git a/src/Kconfig b/src/Kconfig index 3a8ffa15fded..6b750a41b42c 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -72,6 +72,16 @@ endchoice help Support controlling of the boot order via the fw_cfg/CBFS "bootorder" file. + config BOOT_FAST_INIT + depends on BOOTORDER + bool "Fast boot device init" + default y + help + Skip initialization for devices without bootindex. Speeds + up boot and reduced memory footprint, but may cause boot + problems in case the bootloader needs access to secondary + disks. + config HOST_BIOS_GEOMETRY depends on BOOT bool "Boot device bios geometry override" --=20 2.30.2 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org