diff options
author | Marc Zyngier <maz@kernel.org> | 2024-01-22 21:13:41 +0300 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2024-02-08 18:12:45 +0300 |
commit | 3944382fa6f22b54fd399632b1af92c28123979b (patch) | |
tree | 0d0251383afb60d40525ea818f847516ac64059f /lib/memory-notifier-error-inject.c | |
parent | da9af5071b25cb81682c3506c96516fe55186577 (diff) | |
download | linux-3944382fa6f22b54fd399632b1af92c28123979b.tar.xz |
arm64: Treat HCR_EL2.E2H as RES1 when ID_AA64MMFR4_EL1.E2H0 is negative
For CPUs that have ID_AA64MMFR4_EL1.E2H0 as negative, it is important
to avoid the boot path that sets HCR_EL2.E2H=0. Fortunately, we
already have this path to cope with fruity CPUs.
Tweak init_el2 to look at ID_AA64MMFR4_EL1.E2H0 first.
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20240122181344.258974-8-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions