Skip to content

arm64: Assorted MMU-on fixes

Marc Zyngier linux-arm-kernel 1 version Applied

Status from this message: Applied to arm64 (for-next/fixes), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: VHE: Enable EL2 MMU from the idmaparch/arm64/kernel/hyp-stub.S+26 -130 replies
2/3arm64: Add missing ISB after invalidating TLB in __primary_switcharch/arm64/kernel/head.S+1 -04 replies
3/3arm64: Add missing ISB after invalidating TLB in enter_vhearch/arm64/kernel/hyp-stub.S+1 -01 reply

Reviews trailers per patch

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

PatchGuillaume TuckerMark Rutland
1/3T-b
2/3A-b
3/3A-b

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

Read the v1 thread

Cover letter [PATCH 0/3] arm64: Assorted MMU-on fixes

Guillaume (and his mate the KernelCI bot) recently reported that the new VHE enablement code lamentably fails when 64k pages are enabled. And fair enough, the code was broken to the point that it really should have never booted the first place...

The first patch fixes what amounts to a total brain fart.

The next two patches address a potential issue noted by Will, where we may be missing some ISBs when invalidating TLBs, right before enabling the MMU (I've decided the have separate patches for the two instances so that the first one can be easily backported if required).

I've tested this on my local VHE-capable machine as well as on the FVP model (with both 4k and 64k pages).

Marc Zyngier (3):
arm64: VHE: Enable EL2 MMU from the idmap
arm64: Add missing ISB after invalidating TLB in __primary_switch
arm64: Add missing ISB after invalidating TLB in enter_vhe

 arch/arm64/kernel/head.S     |  1 +
 arch/arm64/kernel/hyp-stub.S | 40 ++++++++++++++++++++++++------------
 2 files changed, 28 insertions(+), 13 deletions(-)
Signature · 7 lines
2.29.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel