]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: Fix usage of new shifted MDCR_EL2 values
authorJames Clark <james.clark@linaro.org>
Fri, 22 Nov 2024 16:46:35 +0000 (16:46 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 26 Nov 2024 14:31:36 +0000 (06:31 -0800)
commitd798bc6f3c174c61837862cb9778d73cccd92a8e
tree6f0c542e1aefde2c528938b06f329430672e462a
parent13905f4547b050316262d54a5391d50e83ce613a
arm64: Fix usage of new shifted MDCR_EL2 values

Since the linked fixes commit, these masks are already shifted so remove
the shifts. One issue that this fixes is SPE and TRBE not being
available anymore:

 arm_spe_pmu arm,spe-v1: profiling buffer owned by higher exception level

Fixes: 641630313e9c ("arm64: sysreg: Migrate MDCR_EL2 definition to table")
Signed-off-by: James Clark <james.clark@linaro.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241122164636.2944180-1-james.clark@linaro.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/el2_setup.h
arch/arm64/kernel/hyp-stub.S
arch/arm64/kvm/hyp/nvhe/pkvm.c