net/mlx5: fix pre-2.40 binutils assembler error
Subsystems (4)
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.
--- 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
@@ -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 (); asmvolatile - (".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
Jakub Kicinski
maintainerQuoted 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.
Patrisious Haddad
Reviewed-byThanks 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.
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.
Reported-by Paolo Abeni <[email protected]>Reported-by Naresh Kamboju <[email protected]>Suggested-by Nathan Chancellor <[email protected]>Fixes fd8c8216648c ("net/mlx5: Improve write-combining test reliability for ARM64 Grace CPUs")Signed-off-by Arnd Bergmann <[email protected]>
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@@ -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 (); asmvolatile - (".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
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