]> xenbits.xensource.com Git - seabios.git/commit
be less conservative with the 64bit pci io window
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 9 Sep 2022 08:17:15 +0000 (10:17 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Aug 2023 08:56:21 +0000 (10:56 +0200)
commit96a8d130a8c2e908e357ce62cd713f2cc0b0a2eb
treee658e0c7f1b60a47250c08ee232943d22a1455e4
parentbcfed7e270776ab5595cafc6f1794bea0cae1c6c
be less conservative with the 64bit pci io window

Current seabios code will only enable and use the 64bit pci io window in
case it runs out of space in the 32bit pci mmio window below 4G.

This patch will also enable the 64bit pci io window when
  (a) RAM above 4G is present, and
  (b) the physical address space size is known, and
  (c) seabios is running on a 64bit capable processor.

This operates with the assumption that guests which are ok with memory
above 4G most likely can handle mmio above 4G too.

In case the 64bit pci io window is enabled also assign more memory to
prefetchable pci bridge windows and the complete 64bit pci io window.

The total mmio window size is 1/8 of the physical address space.
Minimum bridge windows size is 1/256 of the total mmio window size.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/fw/pciinit.c