From nobody Fri Mar 29 12:39:04 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=1622440557; cv=none; d=zohomail.com; s=zohoarc; b=g0dytqhcpwb42OhPZ8tLpgezXchNqHzFjMk+9lB9+NZOACYUpUcw1nwu6DVbbrRbXG9rBxcy5mC+g63yXCtZNlZ8YzmWv/i+9dk+rb28w7o7u6Wna2OvGClQCwqzYiyV5S+E5wVto5dc01ZN7ENH86+Av9YQx+ibaoYAH1eQsjA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622440557; 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=MJx8UnOCYky1KOX6BKnU9KwfE0jjI29oQ3dd0mDs4/Q=; b=YrX6KVDudqG2W7TTsE+Z326lcegKI4WhSxp9dd+gzMSRd3FpruxkRb6ISa5YnQm4p+SrU79MSySN2d3BrK8i4Amgj7vKDi9I9fx7rIqR5VJVjcCMTpofznKN9iSlJkMqDjbXiUyEmu7O8IFFWvGcMO9RU87eRJshucjphIaJ2Rg= 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 1622440557177325.9864459367426; Sun, 30 May 2021 22:55:57 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 6E3F710619E3; Mon, 31 May 2021 05:55:53 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id B62C110619D9 for ; Mon, 31 May 2021 05:55:38 +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-541-MR3gD05KNfahS2i79G39ng-1; Mon, 31 May 2021 01:55:34 -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 D7F8E100747D for ; Mon, 31 May 2021 05:55:33 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9924C2DE6B; Mon, 31 May 2021 05:55:30 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) id F2B1118000A0; Mon, 31 May 2021 07:55:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622440537; 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=MnPEFgGRwbfUnDxiGFve1kgKOMJfSXqvq93uWA+KllI=; b=MmrNBJei+lJVsFY3roE0Hnn3N9/Kvl2vC/LQmbOoXv9y4wiSlkZrzAPr/ttekouJy85xY2 uYkv3XLIQwue0ZfcLOba+IMJgUQxKgDokRskXBTrFRnWGJqcZ0oRLx9nR1X53zXzPCQx4k rSqQkuK4RnaLO8wT938fltzCG9QAHAQ= X-MC-Unique: MR3gD05KNfahS2i79G39ng-1 From: Gerd Hoffmann To: seabios@seabios.org Date: Mon, 31 May 2021 07:55:28 +0200 Message-Id: <20210531055528.2607485-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: KE5ZU7NWJEL6PL56RYOULPIIYOAR67TW X-Message-ID-Hash: KE5ZU7NWJEL6PL56RYOULPIIYOAR67TW 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 v3] Increate BUILD_MIN_BIOSTABLE for large roms 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 sets BUILD_MIN_BIOSTABLE to 8k for bios images being 256k or larger in size. 32bit code is moved off in that case, so we have more room in the f-segment then. Signed-off-by: Gerd Hoffmann --- scripts/layoutrom.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py index 6616721d1b58..abebf0211fa9 100755 --- a/scripts/layoutrom.py +++ b/scripts/layoutrom.py @@ -651,6 +651,10 @@ def main(): # Read kconfig config file config =3D scanconfig(cfgfile) =20 + # larger roms have more room in the f-segment due to moving out 32bit = code + if config.get('CONFIG_ROM_SIZE') >=3D 256: + BUILD_MIN_BIOSTABLE =3D 8192 + # Figure out which sections to keep. allsections =3D info16[0] + info32seg[0] + info32flat[0] symbols =3D {'16': info16[1], '32seg': info32seg[1], '32flat': info32f= lat[1]} --=20 2.31.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org