From nobody Wed Apr 24 03:22:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622105577; cv=none; d=zohomail.com; s=zohoarc; b=b0ieXkQxc4WZxu1+b5WCMUypKoUdcRZ9M79Zgnw8jsEP6LgkV3e6K1B2OZ4hAelR9qhM8MYJMEn/20CHYrXr+7J4Q6TFL3vRQPgmx8UQvEcXfX13TVk0ySfEy6x0Mt/oxsrvOezicONvKazCNtIn7ypCyliYEjjjpdm0ekYeSmo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622105577; 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=cBshMej+wplfssugOy0gB+n/gDJ2rNZgMGRpNa7r1Hg=; b=HXoG3K6PvTs2fmVzG3NsQN/6JuYio/bA5aqmsN10gc2mWt5tC9Ay52ZhEe9KF5ogbNWEsjMVWPiF0WgZsn2m+z63ceU0VWnsNvP9hXhElXC3zFnlV1zkoDC/RlexOSCXq5mBABkE0BVyiqeuo5LCYUPC3Wfx1Z2Z+ubFXb4D7Mw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) 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 1622105577072449.16794781993076; Thu, 27 May 2021 01:52:57 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id B4C1E10619DB; Thu, 27 May 2021 08:52:52 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id DB80610619D9 for ; Thu, 27 May 2021 08:52:37 +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-443-BbgLDtYiPKOU5WpvsuPO-w-1; Thu, 27 May 2021 04:52:33 -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 0F204501E0 for ; Thu, 27 May 2021 08:52:33 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BDA4F1349A; Thu, 27 May 2021 08:52:29 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) id 41F57180038E; Thu, 27 May 2021 10:52:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622105556; 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=nBlyVO8US5fAPIsNjmXPQ6Z58RnP8t1F0Pjw6tFWmbo=; b=PJ5U+x562VTlmKKBT7c3EO8FDyAvojgTyCskNyipb1NWoRA5/M325TOK0clEtDwpZZwQtk eVG3ihl6doSSwVt/+8cXzLMZ4YXdNZxh0E3hmN106Rz4mcMICbG0X6+Qg4QaT8ZSkXEpbU Z1bllEvIcfugvKxuHbu2gQZubotxKqY= X-MC-Unique: BbgLDtYiPKOU5WpvsuPO-w-1 From: Gerd Hoffmann To: seabios@seabios.org Date: Thu, 27 May 2021 10:52:27 +0200 Message-Id: <20210527085227.1029147-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: 7XCQGAMMD5VQPTMOJ2HX7AULX5H3LS6K X-Message-ID-Hash: 7XCQGAMMD5VQPTMOJ2HX7AULX5H3LS6K 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.4 Precedence: list Subject: [SeaBIOS] [PATCH v2] make BUILD_MIN_BIOSTABLE configurable 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" BUILD_MIN_BIOSTABLE reserves space in the f-segment. Some data structures -- for example disk drives known to seabios -- must be stored there, so the space available here limits the number of devices seabios is able to manage. This patch adds an config option for BUILD_MIN_BIOSTABLE so the size of the reservation can be configured at build time. Default is 8k for bios images being 256k or larger in size (32bit code is moved off then so we have more room in the f-segment), 2k (current value) otherwise. Signed-off-by: Gerd Hoffmann --- Makefile | 2 +- scripts/layoutrom.py | 3 ++- src/Kconfig | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3d8943ef5f25..ddcd1dff399d 100644 --- a/Makefile +++ b/Makefile @@ -172,7 +172,7 @@ $(OUT)romlayout16.lds: $(OUT)ccode32flat.o $(OUT)code32= seg.o $(OUT)ccode16.o $(O $(Q)$(OBJDUMP) -thr $(OUT)code32flat.o > $(OUT)code32flat.o.objdump $(Q)$(OBJDUMP) -thr $(OUT)code32seg.o > $(OUT)code32seg.o.objdump $(Q)$(OBJDUMP) -thr $(OUT)code16.o > $(OUT)code16.o.objdump - $(Q)$(PYTHON) ./scripts/layoutrom.py $(OUT)code16.o.objdump $(OUT)code32s= eg.o.objdump $(OUT)code32flat.o.objdump $(OUT)$(KCONFIG_AUTOHEADER) $(OUT)r= omlayout16.lds $(OUT)romlayout32seg.lds $(OUT)romlayout32flat.lds + $(Q)$(PYTHON) ./scripts/layoutrom.py $(OUT)code16.o.objdump $(OUT)code32s= eg.o.objdump $(OUT)code32flat.o.objdump $(OUT)$(KCONFIG_AUTOHEADER) $(OUT)r= omlayout16.lds $(OUT)romlayout32seg.lds $(OUT)romlayout32flat.lds $(CONFIG_= MIN_BIOSTABLE) =20 # These are actually built by scripts/layoutrom.py above, but by pulling t= hem # into an extra rule we prevent make -j from spawning layoutrom.py 4 times. diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py index 6616721d1b58..94deca9fcc85 100755 --- a/scripts/layoutrom.py +++ b/scripts/layoutrom.py @@ -636,7 +636,8 @@ def scanconfig(file): =20 def main(): # Get output name - in16, in32seg, in32flat, cfgfile, out16, out32seg, out32flat =3D sys.a= rgv[1:] + in16, in32seg, in32flat, cfgfile, out16, out32seg, out32flat, biostabl= e =3D sys.argv[1:] + BUILD_MIN_BIOSTABLE =3D biostable * 1024 =20 # Read in the objdump information infile16 =3D open(in16, 'r') diff --git a/src/Kconfig b/src/Kconfig index 3a8ffa15fded..95519fc50fa3 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -140,6 +140,13 @@ endchoice it into 128 KB (which was big enouth for a long time) you'll probably have to disable some featues such as xhci support. =20 + config MIN_BIOSTABLE + int "biostable size (in KB)" + default 8 if ROM_SIZE >=3D 256 + default 2 + help + Memory space for BIOS tables in f-segment. + endmenu =20 menu "Hardware support" --=20 2.31.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org