Skip to content

arm64: Workaround for Cortex-A55 erratum 1530923

Steven Price kvmarm linux-arm-kernel lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 3 repliesIn review
  2. v43 patches 0 repliesSuperseded
  3. v33 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches4 repliesSuperseded
v12 patches3 repliesSuperseded

Changes in v5 from the cover letter

* Rebased to v5.5-rc1

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm64: Rename WORKAROUND_1165522 to SPECULATIVE_AT_VHEarch/arm64/Kconfig arch/arm64/include/asm/cpucaps.h arch/arm64/include/asm/kvm_host.h +4 more+23 -100 replies
2/3arm64: Rename WORKAROUND_1319367 to SPECULATIVE_AT_NVHEarch/arm64/Kconfig arch/arm64/include/asm/cpucaps.h arch/arm64/kernel/cpu_errata.c +3 more+12 -80 replies
3/3arm64: Workaround for Cortex-A55 erratum 1530923Documentation/arm64/silicon-errata.rst arch/arm64/Kconfig arch/arm64/include/asm/kvm_hyp.h +3 more+26 -70 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchSuzuki K Poulose
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] arm64: Workaround for Cortex-A55 erratum 1530923

Version 5 is a rebasing of version 4 (no changes).

This series enables a workaround for Cortex-A55 erratum 1530923. The erratum potentially allows TLB entries to be allocated as a result of a speculative AT instruction. This may happen in the middle of a guest world switch while the relevant VMSA configuration is in an inconsistent state, leading to erroneous content being allocated into TLBs.

There are existing workarounds for similar issues, 1165522 is effectively the same, and 1319367/1319537 is similar but without VHE support. Rather than add to the selection of errata, the first patch renames 1165522 to WORKAROUND_SPECULATIVE_AT which can be reused (in the final patch) for 1530923.

The workaround for errata 1319367 and 1319537 although similar cannot use VHE (not available on those CPUs) so cannot share the workaround. However, to keep some sense of symmetry the workaround is renamed to SPECULATIVE_AT_NVHE.

Changes since v4:
* Rebased to v5.5-rc1

Changes since v3:
* Added Suzuki's reviewed-bys - thanks!
* Corrected ARM64_WORKAROUND_SPECULATIVE_AT to ARM64_WORKAROUND_SPECULATIVE_AT_VHE in the final patch

Changes since v2:
* Split 1319367/1319537 back into their own workaround, but rename it for symmetry with the VHE workaround.

Changes since v1:
* Combine 1319367/1319537 into the same 'SPECULATIVE_AT' workaround.

Steven Price (3):
arm64: Rename WORKAROUND_1165522 to SPECULATIVE_AT_VHE
arm64: Rename WORKAROUND_1319367 to SPECULATIVE_AT_NVHE
arm64: Workaround for Cortex-A55 erratum 1530923

 Documentation/arm64/silicon-errata.rst |  2 ++
 arch/arm64/Kconfig                     | 21 +++++++++++++++++++++
 arch/arm64/include/asm/cpucaps.h       |  4 ++--
 arch/arm64/include/asm/kvm_host.h      |  2 +-
 arch/arm64/include/asm/kvm_hyp.h       |  6 +++---
 arch/arm64/kernel/cpu_errata.c         | 25 +++++++++++++++++++------
 arch/arm64/kvm/hyp/switch.c            | 10 +++++-----
 arch/arm64/kvm/hyp/sysreg-sr.c         |  4 ++--
 arch/arm64/kvm/hyp/tlb.c               | 12 ++++++------
 9 files changed, 61 insertions(+), 25 deletions(-)
Signature · 1 line
2.20.1