summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2017-11-30 00:39:49 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2018-01-16 12:00:45 +0100
commit894cfd149289c8c9c99211b58a2e3ae7027fff7e (patch)
tree806c2dc04f47446d31d445815d40f6c6e7274a22 /arch/arm64
parentarm64: fix comment above tcr_compute_pa_size (diff)
downloadlinux-894cfd149289c8c9c99211b58a2e3ae7027fff7e.tar.xz
linux-894cfd149289c8c9c99211b58a2e3ae7027fff7e.zip
arm64: Inform user if software PAN is in use
It isn't entirely obvious if we're using software PAN because we don't say anything about it in the boot log. But if we're using hardware PAN we'll print a nice CPU feature message indicating it. Add a print for software PAN too so we know if it's being used or not. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/kernel/cpufeature.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 9f4491d16cfb..a11311397430 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1276,6 +1276,9 @@ static void verify_local_cpu_capabilities(void)
if (system_supports_sve())
verify_sve_features();
+
+ if (system_uses_ttbr0_pan())
+ pr_info("Emulating Privileged Access Never (PAN) using TTBR0_EL1 switching\n");
}
void check_local_cpu_capabilities(void)