Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 85fd05ab975f76567caf9383d76f6808363f6b47 https://github.com/tianocore/edk2/commit/85fd05ab975f76567caf9383d76f6808363f6b47 Author: Laszlo Ersek <ler...@redhat.com> Date: 2023-01-12 (Thu, 12 Jan 2023)
Changed paths: M OvmfPkg/Library/PlatformInitLib/MemDetect.c Log Message: ----------- OvmfPkg/PlatformInitLib: fix comment about uncacheable MTRRs In commit 49edde15230a ("OvmfPkg/PlatformPei: set 32-bit UC area at PciBase / PciExBarBase (pc/q35)", 2019-06-03), I forgot to update the comment. Do it now. Fixes: 49edde15230a5bfd6746225eb95535eaa2ec1ba4 Signed-off-by: Laszlo Ersek <ler...@redhat.com> Reviewed-by: Ard Biesheuvel <a...@kernel.org> Commit: e5ec3ba409b5baa9cf429cc25fdf3c8d1b8dcef0 https://github.com/tianocore/edk2/commit/e5ec3ba409b5baa9cf429cc25fdf3c8d1b8dcef0 Author: Gerd Hoffmann <kra...@redhat.com> Date: 2023-01-12 (Thu, 12 Jan 2023) Changed paths: M OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.c Log Message: ----------- OvmfPkg/VirtNorFlashDxe: map flash memory as uncacheable Switching from the ArmPlatformPkg/NorFlashDxe driver to the OvmfPkg/VirtNorFlashDxe driver had the side effect that flash address space got registered as EFI_MEMORY_WC instead of EFI_MEMORY_UC. That confuses the linux kernel's numa code, seems this makes kernel consider the flash being node memory. "lsmem" changes from ... RANGE SIZE STATE REMOVABLE BLOCK 0x0000000040000000-0x000000013fffffff 4G online yes 8-39 ... to ... RANGE SIZE STATE REMOVABLE BLOCK 0x0000000000000000-0x0000000007ffffff 128M online yes 0 0x0000000040000000-0x000000013fffffff 4G online yes 8-39 ... and in the kernel log got new error lines: NUMA: Warning: invalid memblk node 512 [mem 0x0000000004000000-0x0000000007ffffff] NUMA: Faking a node at [mem 0x0000000004000000-0x000000013fffffff] Changing the attributes back to EFI_MEMORY_UC fixes this. Fixes: b92298af8218 ("ArmVirtPkg/ArmVirtQemu: migrate to OVMF's VirtNorFlashDxe") Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Reviewed-by: Ard Biesheuvel <a...@kernel.org> Compare: https://github.com/tianocore/edk2/compare/fe405f08a09e...e5ec3ba409b5 _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits