Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 5ee17c5418bd4e0b26686bff14b71b3d83438a30
      
https://github.com/tianocore/edk2/commit/5ee17c5418bd4e0b26686bff14b71b3d83438a30
  Author: Ard Biesheuvel <a...@kernel.org>
  Date:   2023-01-10 (Tue, 10 Jan 2023)

  Changed paths:
    M ArmVirtPkg/Library/ArmPlatformLibQemu/AArch64/ArmPlatformHelper.S

  Log Message:
  -----------
  ArmVirtPkg/ArmPlatformLibQemu: Ensure that VFP is on before running C code

Now that we build the early code without strict alignment and without
suppressing the use of SIMD registers, ensure that the VFP unit is on
before entering C code.

While at it, simplyify the mov_i macro, which is only used for 32-bit
quantities.

Signed-off-by: Ard Biesheuvel <a...@kernel.org>
Tested-by: dann frazier <dann.fraz...@canonical.com>


  Commit: ec54ce1f1ab41b92782b37ae59e752fff0ef9c41
      
https://github.com/tianocore/edk2/commit/ec54ce1f1ab41b92782b37ae59e752fff0ef9c41
  Author: Ard Biesheuvel <a...@kernel.org>
  Date:   2023-01-10 (Tue, 10 Jan 2023)

  Changed paths:
    M ArmVirtPkg/ArmVirtQemu.dsc
    M ArmVirtPkg/Library/ArmPlatformLibQemu/AArch64/ArmPlatformHelper.S

  Log Message:
  -----------
  ArmVirtPkg/ArmVirtQemu: Avoid early ID map on ThunderX

The early ID map used by ArmVirtQemu uses ASID scoped non-global
mappings, as this allows us to switch to the permanent ID map seamlessly
without the need for explicit TLB maintenance.

However, this triggers a known erratum on ThunderX, which does not
tolerate non-global mappings that are executable at EL1, as this appears
to result in I-cache corruption. (Linux disables the KPTI based Meltdown
mitigation on ThunderX for the same reason)

So work around this, by detecting the CPU implementor and part number,
and proceeding without the early ID map if a ThunderX CPU is detected.

Note that this requires the C code to be built with strict alignment
again, as we may end up executing it with the MMU and caches off.

Signed-off-by: Ard Biesheuvel <a...@kernel.org>
Acked-by: Laszlo Ersek <ler...@redhat.com>
Tested-by: dann frazier <dann.fraz...@canonical.com>


Compare: https://github.com/tianocore/edk2/compare/717f35a9f2d8...ec54ce1f1ab4


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to