With PMD updates being done with the Access Flag trick, BBML3 is no
longer needed.
Dropping this requirement vastly widens the pool of systems this
optimization is valid for.
Signed-off-by: James Houghton <redacted>
---
arch/arm64/kernel/cpufeature.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index d241638b5143..6281769f4df9 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -2062,12 +2062,11 @@ static bool has_bbm_through_af(const struct arm64_cpu_capabilities *caps, int sc
}
/*
- * We need BBML3 to support Block -> Table transitions without taking
- * faults, and we need HW AF support to support changing the OA without
- * taking faults. has_cpuid_feature() checks HAFDBS >= AF, reading the
- * local CPU's register when verifying a late CPU.
+ * We need HW AF support to support changing the vmemmap mapping level
+ * and OA without taking faults. has_cpuid_feature() checks HAFDBS >= AF,
+ * reading the local CPU's register when verifying a late CPU.
*/
- return cpu_supports_bbml3() && has_cpuid_feature(caps, scope);
+ return has_cpuid_feature(caps, scope);
}
static void cpu_enable_pan(const struct arm64_cpu_capabilities *__unused)
--
2.56.1.809.ga0b61035b5-goog