[PATCH 3/5] sparc64: Report the extended crypto capabilities

From: Stian Halseth

Date: Tue Sep 29 2026 - 09:46:43 EST


crypto_hwcaps[] is indexed by CFR bit and stops at crc32c in bit 11. The
loops in cpucap_info() and report_crypto_hwcaps() are bounded by the
array, so a higher bit is read out of CFR and then discarded.

A SPARC M7 sets CFR bits 12 to 14. Name them.

T7-1 CFR 0x7ffb bits 0-14 except kasumi, so 12-14 are set
T4-1 CFR 0x0fff bits 0-11, unchanged by this patch

Signed-off-by: Stian Halseth <stian@xxxxxx>
---
arch/sparc/kernel/setup_64.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c
index d819ce65d1d44..71d30b3bf276f 100644
--- a/arch/sparc/kernel/setup_64.c
+++ b/arch/sparc/kernel/setup_64.c
@@ -393,6 +393,7 @@ static const char *hwcaps[] = {
static const char *crypto_hwcaps[] = {
"aes", "des", "kasumi", "camellia", "md5", "sha1", "sha256",
"sha512", "mpmul", "montmul", "montsqr", "crc32c",
+ "xmpmul", "xmontmul", "xmontsqr",
};

void cpucap_info(struct seq_file *m)
--
2.43.0