Skip to contentSkip to conversation

net/mlx5: fix pre-2.40 binutils assembler error

PATCH Applied Arnd Bergmann 5 participants 5 messages Oct 6, 2025 – Oct 8, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: fix pre-2.40 binutils assembler error

From: Arnd Bergmann <[email protected]>

Old binutils versions require a slightly stricter syntax for the .arch_extension directive and fail with the extra semicolon:

/tmp/cclfMnj9.s:656: Error: unknown architectural extension `simd;'

Drop the semicolon to make it work with all supported toolchain version.

Fixes fd8c8216648c ("net/mlx5: Improve write-combining test reliability for ARM64 Grace CPUs")
---
 drivers/net/ethernet/mellanox/mlx5/core/wc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/wc.c +1 -1
index c281153bd411..05e5fd777d4f 100644
@@ -266,7 +266,7 @@ static void mlx5_iowrite64_copy(struct mlx5_wc_sq *sq, __be32 mmio_wqe[16],
 	if (cpu_has_neon()) {
 		kernel_neon_begin();
 		asm volatile
-		(".arch_extension simd;\n\t"
+		(".arch_extension simd\n\t"
 		"ld1 {v0.16b, v1.16b, v2.16b, v3.16b}, [%0]\n\t"
 		"st1 {v0.16b, v1.16b, v2.16b, v3.16b}, [%1]"
 		:
Signature · 1 line
2.39.5
maintainer
#1 lore raw
Quoted 8 lines · On Mon, 6 Oct 2025 13:56:34 +0200 Arnd Bergmann wrote:

From: Arnd Bergmann <[email protected]>

Old binutils versions require a slightly stricter syntax for the .arch_extension directive and fail with the extra semicolon:

/tmp/cclfMnj9.s:656: Error: unknown architectural extension `simd;'

Drop the semicolon to make it work with all supported toolchain version.

Saeed, could you ack? I think we should get this merged quickly since it's a build fix.

Reviewed-by
#2 lore raw

Thanks Arnd

Quoted 12 lines · Jakub Kicinski

External email: Use caution opening links or attachments

Quoted 8 lines · On Mon, 6 Oct 2025 13:56:34 +0200 Arnd Bergmann wrote:

From: Arnd Bergmann <[email protected]>

Old binutils versions require a slightly stricter syntax for the .arch_extension directive and fail with the extra semicolon:

/tmp/cclfMnj9.s:656: Error: unknown architectural extension `simd;'

Drop the semicolon to make it work with all supported toolchain version.

Quoted 2 lines

Saeed, could you ack? I think we should get this merged quickly since it's a build fix.

If my ack is enough you can merge, was planning to send this fix myself.

Thanks,
Patrisious.

Reviewed-by on v1 1/1
#3 lore raw
In reply to Arnd Bergmann
Quoted 7 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

Old binutils versions require a slightly stricter syntax for the .arch_extension directive and fail with the extra semicolon:

/tmp/cclfMnj9.s:656: Error: unknown architectural extension `simd;'

Quoted 8 lines

Drop the semicolon to make it work with all supported toolchain version.

Fixes fd8c8216648c ("net/mlx5: Improve write-combining test reliability for ARM64 Grace CPUs")
Quoted 20 lines
---
 drivers/net/ethernet/mellanox/mlx5/core/wc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/wc.c +1 -1
index c281153bd411..05e5fd777d4f 100644
@@ -266,7 +266,7 @@ static void mlx5_iowrite64_copy(struct mlx5_wc_sq *sq, __be32 mmio_wqe[16],
 	if (cpu_has_neon()) {
 		kernel_neon_begin();
 		asm volatile
-		(".arch_extension simd;\n\t"
+		(".arch_extension simd\n\t"
 		"ld1 {v0.16b, v1.16b, v2.16b, v3.16b}, [%0]\n\t"
 		"st1 {v0.16b, v1.16b, v2.16b, v3.16b}, [%1]"
 		:
Signature · 1 line
2.39.5
#4 lore raw
In reply to Arnd Bergmann
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Mon, 6 Oct 2025 13:56:34 +0200 you wrote:

From: Arnd Bergmann <[email protected]>

Old binutils versions require a slightly stricter syntax for the .arch_extension directive and fail with the extra semicolon:

/tmp/cclfMnj9.s:656: Error: unknown architectural extension `simd;'

[...]

Here is the summary with links:
- net/mlx5: fix pre-2.40 binutils assembler error

    https://git.kernel.org/netdev/net/c/e475fa420e6c

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html