Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 1a4c4fb5a76fb15a5a50706685dc4ba36f1c2260
      
https://github.com/tianocore/edk2/commit/1a4c4fb5a76fb15a5a50706685dc4ba36f1c2260
  Author: Vishnu Pajjuri <[email protected]>
  Date:   2026-01-07 (Wed, 07 Jan 2026)

  Changed paths:
    M UefiCpuPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c

  Log Message:
  -----------
  ArmPkg, UefiCpuPkg: Fix boot failure on FEAT_LPA-only systems without LPA2

Commit 9077163 added support for 52-bit PA/VA (LPA2) in EDK2. The previous
change treated the presence of FEAT_LPA as sufficient to enable 52-bit
VA for 4K page granularity. Some platforms advertise FEAT_LPA but do not
implement full LPA2 support for 4K PAGE_SIZE; enabling 52-bit VA on
those platforms produced an invalid MMU configuration and caused boot
failures.

This patch tightens the detection logic so 52-bit PA/VA (LPA2) is enabled
only when the platform explicitly advertises LPA2 support. When LPA2 is
not present we fall back to the previous 48-bit address limit for 4K
pages, preserving correct behavior on non-LPA2 systems.

Fixes: 9077163 ("UefiCpuPkg/ArmMmuLib: Add support for LPA2")

Co-authored-by: Ganapatrao Kulkarni <[email protected]>
Signed-off-by: Vishnu Pajjuri <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to