diff options
| author | Vishnu Pajjuri <vishnu@os.amperecomputing.com> | 2025-12-30 11:36:16 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-01-07 09:37:47 +0300 |
| commit | 1a4c4fb5a76fb15a5a50706685dc4ba36f1c2260 (patch) | |
| tree | 1079a96f843fc1efc2342e2496dad5c74aa913f7 /MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h | |
| parent | d97d93bba8a89566065437e6cd9b7771dfda7b98 (diff) | |
| download | edk2-1a4c4fb5a76fb15a5a50706685dc4ba36f1c2260.tar.xz | |
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 <gankulkarni@os.amperecomputing.com>
Signed-off-by: Vishnu Pajjuri <vishnu@os.amperecomputing.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h')
0 files changed, 0 insertions, 0 deletions
