Files
linux/drivers
James Morse 3ef4a3d526 UPSTREAM: 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 <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: James Morse <james.morse@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: kvmarm@lists.cs.columbia.edu
Cc: linux-efi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Acked-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/1615355590-21102-1-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
(cherry picked from commit 26f55386f9)
Signed-off-by: Will Deacon <willdeacon@google.com>
Bug: 198418208
Change-Id: Ie282c9ea1bd00d744534bc21a11e0d3276a2c51d
2021-09-14 10:07:11 +01:00
..
2021-08-18 09:34:44 +02:00
2021-08-18 09:34:44 +02:00
2021-09-08 09:07:16 +02:00
2021-08-12 15:16:30 +02:00
2021-09-03 10:59:15 +02:00
2021-09-03 10:59:15 +02:00
2021-07-14 17:26:35 +02:00
2021-08-27 14:57:30 +02:00
2021-07-25 15:35:50 +02:00
2021-07-20 16:05:42 +02:00
2021-08-12 15:16:30 +02:00
2021-09-08 09:07:16 +02:00
2021-08-04 14:59:53 +02:00
2021-07-14 17:26:35 +02:00
2021-08-18 09:34:44 +02:00
2021-07-21 06:56:15 +02:00
2021-08-27 14:57:30 +02:00
2021-08-12 15:16:30 +02:00
2021-09-08 09:07:16 +02:00
2021-07-25 15:35:50 +02:00
2021-07-14 16:55:53 +02:00
2021-09-03 10:59:15 +02:00
2021-09-03 10:59:15 +02:00
2021-09-12 09:16:05 +02:00
2021-09-03 10:59:15 +02:00
2021-09-12 09:16:05 +02:00
2021-08-18 09:34:44 +02:00
2021-07-21 06:56:15 +02:00
2021-08-27 14:57:30 +02:00
2021-07-28 15:22:59 +02:00
2021-09-08 09:07:16 +02:00
2021-05-20 15:35:25 +02:00
2021-07-25 15:35:50 +02:00
2021-07-21 06:56:15 +02:00
2021-08-27 14:57:30 +02:00
2021-08-27 14:57:30 +02:00
2021-07-25 15:35:50 +02:00
2021-09-12 09:16:05 +02:00
2021-09-12 09:16:05 +02:00
2021-07-14 17:26:35 +02:00
2021-07-21 06:56:15 +02:00
2021-09-03 10:59:15 +02:00
2021-08-18 09:34:44 +02:00