Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 74467627321735a9d898aa261dccc3c83330d93a
      
https://github.com/tianocore/edk2/commit/74467627321735a9d898aa261dccc3c83330d93a
  Author: Levi Yun <[email protected]>
  Date:   2025-11-14 (Fri, 14 Nov 2025)

  Changed paths:
    M MdePkg/Include/AArch64/AArch64Mmu.h
    M UefiCpuPkg/Include/Library/ArmMmuLib.h
    M UefiCpuPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c

  Log Message:
  -----------
  MdePkg,UefiCpuPkg: fix wrong DS bit and add helper to check it

In FEAT_LPA2, the location of the DS bit in TCR_EL2
depending on the value of HCR_EL2.E2H:

  1. When HCR_EL2.E2H = 0, the DS bit is located at bit 32 in TCR_EL2.
  2. When HCR_EL2.E2H = 1 (EL0&2), the DS bit is located at
     bit 59 in TCR_EL2, which matches its position in TCR_EL1.

However, the current implementation checks only bit 59 to determine
whether LPA2 is enabled, even when HCR_EL2.E2H is not set.

To address this issue, this change adds the necessary definitions
and a helper function to correctly check whether LPA2 is enabled.

Continuous-integration-options: PatchCheck.ignore-multi-package
Signed-off-by: Yeoreum Yun <[email protected]>


  Commit: c624a06aa3a9931e7d1ce1a8f51646438b74e4d2
      
https://github.com/tianocore/edk2/commit/c624a06aa3a9931e7d1ce1a8f51646438b74e4d2
  Author: Levi Yun <[email protected]>
  Date:   2025-11-14 (Fri, 14 Nov 2025)

  Changed paths:
    M ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c
    M UefiCpuPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c

  Log Message:
  -----------
  ArmPkg,UefiCpuPkg: fix boot failure with LPA2

When FEAT_LPA2 is enabled:
  1. The DS bit is located at bit 32, not bit 59, when HCR_EL2.E2H = 0.
  2. The root level of the page table should be -1 when
     using a 52-bit address with a 4KB TxSZ and LPA2 feature is enabled.

However, the current implementation does not handle
these conditions correctly, causing EFI to fail
during boot when CPU is EL0&1 or EL0&2.

Fix this boot failure.

Fixes: 90771630bfe ("UefiCpuPkg/ArmMmuLib: Add support for LPA2")
Continuous-integration-options: PatchCheck.ignore-multi-package
Signed-off-by: Yeoreum Yun <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/1c74842bd07a...c624a06aa3a9

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