From: "mitchell.augustin via groups.io" <mitchell.augustin=canonical.com@groups.io>
To: "Gerd Hoffmann" <kraxel@redhat.com>, devel@edk2.groups.io
Subject: Re: [edk2-devel] [BUG] Extremely slow boot times with CPU and GPU passthrough and host phys-bits > 40
Date: Thu, 21 Nov 2024 16:23:32 -0800 [thread overview]
Message-ID: <24555.1732235012902185669@groups.io> (raw)
In-Reply-To: <zx37co4i6ikq7jfnimk7ndldzbe5pzzcrdgt5lobuox5qr7467@4t6fk3lnuqyr>
[-- Attachment #1: Type: text/plain, Size: 2099 bytes --]
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)
NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
**
*This is the same thing I see when trying to load the driver on OVMF versions without the DynamicMMIOWindowSize patch as well, but with those versions, I don't get the errors and everything works if I boot with `pci=realloc pci=nocrs`. That is not the case here, when I just override the physbits.*
*Two possible workarounds come to mind:*
* *Is there some command line option that would allow me to override the MMIO window size? (basically bypassing the DynamicMMIOWindowSize heuristic without having to switch OVMF versions)*
* *Alternatively, is there a way to override the virtual address bits in the same way as we can for the physical bits, via some command line option?*
* *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.)*
* *(context: we do need CPU host passthrough for our use case)*
Thanks,
Mitchell Augustin
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120814): https://edk2.groups.io/g/devel/message/120814
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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: text/html, Size: 3887 bytes --]
next prev parent reply other threads:[~2024-11-22 0:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 16:46 [edk2-devel] [BUG] Extremely slow boot times with CPU and GPU passthrough and host phys-bits > 40 mitchell.augustin via groups.io
2024-11-18 21:14 ` xpahos via groups.io
2024-11-19 22:25 ` mitchell.augustin via groups.io
2024-11-20 9:35 ` xpahos via groups.io
2024-11-20 11:26 ` Gerd Hoffmann via groups.io
2024-11-20 15:20 ` mitchell.augustin via groups.io
2024-11-20 20:00 ` mitchell.augustin via groups.io
2024-11-21 12:32 ` Gerd Hoffmann via groups.io
2024-11-22 0:23 ` mitchell.augustin via groups.io [this message]
2024-11-22 10:35 ` Gerd Hoffmann via groups.io
2024-11-22 17:38 ` Brian J. Johnson via groups.io
2024-11-22 22:32 ` mitchell.augustin via groups.io
2024-11-24 2:05 ` mitchell.augustin via groups.io
2024-11-25 11:47 ` Gerd Hoffmann via groups.io
2024-11-25 19:58 ` mitchell.augustin via groups.io
2024-11-26 8:09 ` Gerd Hoffmann via groups.io
2024-11-26 22:27 ` mitchell.augustin via groups.io
2024-12-04 14:56 ` mitchell.augustin via groups.io
2024-11-25 11:18 ` Gerd Hoffmann via groups.io
2024-11-18 21:32 ` Ard Biesheuvel via groups.io
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24555.1732235012902185669@groups.io \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox