]> Git Repo - linux.git/commit
arm64/mm: Fix __enable_mmu() for new TGRAN range values
authorJames Morse <[email protected]>
Wed, 10 Mar 2021 05:53:10 +0000 (11:23 +0530)
committerWill Deacon <[email protected]>
Wed, 10 Mar 2021 11:01:57 +0000 (11:01 +0000)
commit26f55386f964cefa92ab7ccbed68f1a313074215
tree305b4508e1f8f36c5d87c69cba3d9a979869c4d0
parent07e644885bf6727a48db109fad053cb43f3c9859
arm64/mm: Fix __enable_mmu() for new TGRAN range values

As per ARM ARM DDI 0487G.a, when FEAT_LPA2 is implemented, ID_AA64MMFR0_EL1
might contain a range of values to describe supported translation granules
(4K and 16K pages sizes in particular) instead of just enabled or disabled
values. This changes __enable_mmu() function to handle complete acceptable
range of values (depending on whether the field is signed or unsigned) now
represented with ID_AA64MMFR0_TGRAN_SUPPORTED_[MIN..MAX] pair. While here,
also fix similar situations in EFI stub and KVM as well.

Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: James Morse <[email protected]>
Cc: Suzuki K Poulose <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Acked-by: Marc Zyngier <[email protected]>
Signed-off-by: James Morse <[email protected]>
Signed-off-by: Anshuman Khandual <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/head.S
arch/arm64/kvm/reset.c
drivers/firmware/efi/libstub/arm64-stub.c
This page took 0.060183 seconds and 4 git commands to generate.