summaryrefslogtreecommitdiff
path: root/BaseTools/Source
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2022-09-22 07:55:30 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-09-28 10:46:29 +0000
commit2a0bd3bffc80d1982cf85cdad066f79a2f60c769 (patch)
treea49f217004772fc219460c172779ab9bbd226c54 /BaseTools/Source
parent3c0d567c3719675b9d8ecf07c31706d96467e31b (diff)
downloadedk2-2a0bd3bffc80d1982cf85cdad066f79a2f60c769.zip
edk2-2a0bd3bffc80d1982cf85cdad066f79a2f60c769.tar.gz
edk2-2a0bd3bffc80d1982cf85cdad066f79a2f60c769.tar.bz2
OvmfPkg/PlatformInitLib: q35 mtrr setup fix
Traditional q35 memory layout is 2.75 GB of low memory, leaving room for the pcie mmconfig at 0xb0000000 and the 32-bit pci mmio window at 0xc0000000. Because of that OVMF tags the memory range above 0xb0000000 as uncachable via mtrr. A while ago qemu started to gigabyte-align memory by default (to make huge pages more effective) and q35 uses only 2G of low memory in that case. Which effectively makes the 32-bit pci mmio window start at 0x80000000. This patch updates the mtrr setup code accordingly. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'BaseTools/Source')
0 files changed, 0 insertions, 0 deletions