[PATCH 3/3] arm64: fpsimd: Simplify sve_setup() format strings

Mark Rutland mark.rutland at arm.com
Tue Nov 3 04:13:46 PST 2026


The format strings in sve_setup() acquire the vector name from struct
vl_info, despite the fact that sve_setup() handles SVE exclusively. The
equivalent format strings in sme_setup() hard-code "SME" as part of the
format string.

Simply sve_setup() to use "SVE" directly in its format strings. This
makes the strings easier to search for, and aligns the style of
sve_setup() and sme_setup().

Given the architectural constraints for streaming vector lengths differ
from those for non-streaming vector lengths, it doesn't make sense to
unify sve_setup() and sme_setup() into a single function, but we can at
least make them look as similar as possible.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland at arm.com>
Cc: Catalin Marinas <catalin.marinas at arm.com>
Cc: Mark Brown <broonie at kernel.org>
Cc: Will Deacon <will at kernel.org>
---
 arch/arm64/kernel/fpsimd.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c
index ecfa21615f168..acb82df740d4d 100644
--- a/arch/arm64/kernel/fpsimd.c
+++ b/arch/arm64/kernel/fpsimd.c
@@ -1128,15 +1128,14 @@ void __init sve_setup(void)
 	if (info->max_virtualisable_vl > info->max_vl)
 		info->max_virtualisable_vl = info->max_vl;
 
-	pr_info("%s: maximum available vector length %u bytes per vector\n",
-		info->name, info->max_vl);
-	pr_info("%s: default vector length %u bytes per vector\n",
-		info->name, get_sve_default_vl());
+	pr_info("SVE: maximum available vector length %u bytes per vector\n",
+		info->max_vl);
+	pr_info("SVE: default vector length %u bytes per vector\n",
+		get_sve_default_vl());
 
 	/* KVM decides whether to support mismatched systems. Just warn here: */
 	if (sve_max_virtualisable_vl() < sve_max_vl())
-		pr_warn("%s: unvirtualisable vector lengths present\n",
-			info->name);
+		pr_warn("SVE: unvirtualisable vector lengths present\n");
 }
 
 /*
-- 
2.30.2




More information about the linux-arm-kernel mailing list