mbox series

[0/2] arm64 head.S fixes

Message ID 20240415075412.2347624-4-ardb+git@google.com (mailing list archive)
Headers show
Series arm64 head.S fixes | expand

Message

Ard Biesheuvel April 15, 2024, 7:54 a.m. UTC
From: Ard Biesheuvel <ardb@kernel.org>

Ensure the MMU is off before changing HCR_EL2.E2H when entering at EL2.
Drop MMU disable workarounds where they are not needed.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>

Ard Biesheuvel (2):
  arm64/head: Drop unnecessary pre-disable-MMU workaround
  arm64/head: Disable MMU at EL2 before clearing HCR_EL2.E2H

 arch/arm64/kernel/head.S | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Comments

Catalin Marinas April 18, 2024, 5:02 p.m. UTC | #1
On Mon, 15 Apr 2024 09:54:13 +0200, Ard Biesheuvel wrote:
> Ensure the MMU is off before changing HCR_EL2.E2H when entering at EL2.
> Drop MMU disable workarounds where they are not needed.
> 
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will@kernel.org>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/2] arm64/head: Drop unnecessary pre-disable-MMU workaround
      https://git.kernel.org/arm64/c/2b504e162037
[2/2] arm64/head: Disable MMU at EL2 before clearing HCR_EL2.E2H
      https://git.kernel.org/arm64/c/34e526cb7d46

I added a Fixes tag and cc stable on the second patch, it goes all the
way to 6.3 (this should actually be 6.6 LTS).