Re: [PATCH v6 02/21] arm64: Allow mismatched 32-bit EL0 support

From
Catalin Marinas <catalin.marinas@arm.com>
Date
2021-05-21 10:25:47
Also in
linux-arm-kernel, lkml
Reply to
Will Deacon, 2021-05-18
On Tue, May 18, 2021 at 10:47:06AM +0100, Will Deacon wrote:
quoted hunk ↗ jump to hunk
+static bool has_32bit_el0(const struct arm64_cpu_capabilities *entry, int scope)
+{
+	if (!has_cpuid_feature(entry, scope))
+		return allow_mismatched_32bit_el0;
+
+	if (scope == SCOPE_SYSTEM)
+		pr_info("detected: 32-bit EL0 Support\n");
+
+	return true;
+}
We may have discussed this before: AFAICT this will print 32-bit EL0
detected even if there's no 32-bit EL0 on any CPU. Should we instead
print 32-bit EL0 detected on CPU X when allow_mismatched_32bit_el0 is
passed? It would also give us an indication of the system configuration
when people start reporting bugs.

-- 
Catalin
Thread (83 messages) 83 messages, 8 authors, last reply 2021-05-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help