From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 94F65AC0E6F for ; Fri, 22 Nov 2024 10:35:45 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=kyP4Epc5F+TITme7WkvcaHSrva4lkFNIg3ZlPurumwg=; c=relaxed/simple; d=groups.io; h=Date:From:To:Subject:Message-ID:References:MIME-Version:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition:Content-Transfer-Encoding; s=20240830; t=1732271745; v=1; x=1732530943; b=ZP6Vu3G9kxLcTgRYH0tvNJpimAe1axbXgQS9TJPRYqJTEGseIipBjOsO/9siUFBRWCKWwIQu gmiMaDoOM70ECTpaXGnv09eocVJbK+lMAPpxQcUByoeWFEOZlOC7mTRTLhIIAuVMbXtKS2sa6H/ Kow3y1G/O6Tk8psCIPKzemjh1OmSY/TctZo3cmXuMSII1OpFz4ewhIMuBmivZs/uvNg8TYZFY+u 4Kn8JaketkmZE2pUFGTjFPmSyAZgN6a7UJJbZXU1IAYdSTb7xJr7x1K9s0foWR/zPJn+q7vnDuq x4ltEkAHJLjOqE2Y2fRX01k/FOLa6lzZ5IGltgcZtUgLQ== X-Received: by 127.0.0.2 with SMTP id DbOwYY7687511xmgC2vHbn2j; Fri, 22 Nov 2024 02:35:43 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.21487.1732271742992222829 for ; Fri, 22 Nov 2024 02:35:43 -0800 X-Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (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-66-Z7xKQCJtPc6p9esighOjtQ-1; Fri, 22 Nov 2024 05:35:40 -0500 X-MC-Unique: Z7xKQCJtPc6p9esighOjtQ-1 X-Mimecast-MFC-AGG-ID: Z7xKQCJtPc6p9esighOjtQ X-Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 70DC519540F0; Fri, 22 Nov 2024 10:35:39 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.164]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1C58D30000DF; Fri, 22 Nov 2024 10:35:38 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id AD5091800987; Fri, 22 Nov 2024 11:35:36 +0100 (CET) Date: Fri, 22 Nov 2024 11:35:36 +0100 From: "Gerd Hoffmann via groups.io" To: devel@edk2.groups.io, mitchell.augustin@canonical.com Subject: Re: [edk2-devel] [BUG] Extremely slow boot times with CPU and GPU passthrough and host phys-bits > 40 Message-ID: References: <24555.1732235012902185669@groups.io> MIME-Version: 1.0 In-Reply-To: <24555.1732235012902185669@groups.io> X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 4WdGC2jo4UsHRNf6lYYzVUuX1u6SHufjOso6OPgHPVs_1732271739 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Fri, 22 Nov 2024 02:35:43 -0800 Resent-From: kraxel@redhat.com Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Hx7x6ChLSsIprm5XQJNNP2tbx7686176AA= Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=ZP6Vu3G9; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io On Thu, Nov 21, 2024 at 04:23:32PM -0800, mitchell.augustin via groups.io wrote: > Thanks for the suggestions, Gerd. > > > '-global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off' > > Unfortunatly, this did not result in any change in boot time. > > > '-cpu $name,host-phys-bits=on,host-phys-bits-limit=$bits' > > -cpu host,host-phys-bits=on,host-phys-bits-limit=40 does result in the desired very fast boot time, but I get errors when I try to load the GPU driver: > > NVRM: BAR0 is 0M @ 0x0 (PCI:0000:06:00.0) OVMF scales the pcie root port bridge windows with the address space. So you can try increase host-phys-bits-limit. Values between 40 and 46 should have an effect. The opt/ovmf/X-PciMmio64Mb setting already mentioned elsewhere in this thread should also work with the dynamic mmio window. > * *I ask this because I notice that when I disable host passthrough *(which works with my GPUs and results in a fast boot if `pci=realloc pci=nocrs` are used)* , my VM shows "Address sizes: 40 bits physical, 48 bits virtual", but when I use host passthrough and only override the physbits (which fails as described above), my VM shows "Address sizes: 40 bits physical, 57 bits virtual". (so I'm wondering if that could be a factor here.)* It's 5-level paging support, and the qemu option name for that is la57 (-cpu $name,la57={on|off}) take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120816): https://edk2.groups.io/g/devel/message/120816 Mute This Topic: https://groups.io/mt/109651206/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-