From nobody Wed Dec 4 08:38:28 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 Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1731670866760387.2853541170608; Fri, 15 Nov 2024 03:41:06 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 97876E0F94; Fri, 15 Nov 2024 11:41:02 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 2F965E0EBE for ; Fri, 15 Nov 2024 11:40:19 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-251-GFEJiNHnNrS0OFgBtnAuPA-1; Fri, 15 Nov 2024 06:40:16 -0500 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 39AE61954B15 for ; Fri, 15 Nov 2024 11:40:16 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EED9B1953882; Fri, 15 Nov 2024 11:40:15 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) id 069311800DFE; Fri, 15 Nov 2024 12:40:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731670818; 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: in-reply-to:in-reply-to:references:references; bh=jsGd4IMrCBc2wERjTIhz/d1WCaETHod/IwLG6pYhuIM=; b=Q7hXiLCFlZbELPMrkYJG4PcWSdQ07Kv8gBKnxfIBk9TfwNVsASCq9QE7DOHLhdq4DvP1jt fF5PCxvUfNqL3SD+BPjs+CpOGUXtOGvGVCxSr3GplBasf7JGJuZNpmdqNvyxyq8yEQkrLO NdfISHCwkCJ/rFSnN6D4nQB4DcAp+7k= X-MC-Unique: GFEJiNHnNrS0OFgBtnAuPA-1 X-Mimecast-MFC-AGG-ID: GFEJiNHnNrS0OFgBtnAuPA From: Gerd Hoffmann To: seabios@seabios.org Date: Fri, 15 Nov 2024 12:40:08 +0100 Message-ID: <20241115114010.51342-3-kraxel@redhat.com> In-Reply-To: <20241115114010.51342-1-kraxel@redhat.com> References: <20241115114010.51342-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: x6Ii2OdDO4lRqpAGcwzBh7I_CxsHHRxEWVkdTkj2_EA_1731670816 X-Mimecast-Originator: redhat.com Message-ID-Hash: NTJZ6JEUC6JWE55IX2DWAF3XLMCTSYY2 X-Message-ID-Hash: NTJZ6JEUC6JWE55IX2DWAF3XLMCTSYY2 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.6b1 Precedence: list Subject: [SeaBIOS] [PATCH 2/4] use guest hint as additional condition 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) X-ZM-MESSAGEID: 1731670868428116600 Content-Type: text/plain; charset="utf-8"; x-default="true" check guest hint as additional condition to enable the 64-bit guest friendly memory layout. With '32' seabios will use traditional pci configuration for best compatibility: all PCI bars will be mapped into the 32-bit PCI MMIO window below 4G if they fit there. With '64' seabios will use the new pci configuration introduced by commit 96a8d130a8c2 ("be less conservative with the 64bit pci io window"): the 64-bit MMIO window will be used unconditionally and PCI bridges will get larger bridge windows. Signed-off-by: Gerd Hoffmann --- src/fw/pciinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c index b3e359d7fe62..ab28286e7018 100644 --- a/src/fw/pciinit.c +++ b/src/fw/pciinit.c @@ -1202,7 +1202,7 @@ pci_setup(void) } } =20 - if (CPUPhysBits >=3D 36 && CPULongMode && RamSizeOver4G) + if (CPUPhysBits >=3D 36 && CPULongMode && RamSizeOver4G && GuestHint = =3D=3D 64) pci_pad_mem64 =3D 1; =20 dprintf(1, "=3D=3D=3D PCI bus & bridge init =3D=3D=3D\n"); --=20 2.47.0 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org