50 lines
2.0 KiB
Diff
50 lines
2.0 KiB
Diff
From 832ffc37e1d39ab4bb0b9980dd9319d3951aeb3b Mon Sep 17 00:00:00 2001
|
|
From: Kamal Heib <kheib@redhat.com>
|
|
Date: Sun, 19 Apr 2026 18:24:32 -0400
|
|
Subject: [PATCH] net/mlx5: fix pre-2.40 binutils assembler error
|
|
|
|
JIRA: https://redhat.atlassian.net/browse/RHEL-169055
|
|
|
|
commit e475fa420e6c53a5023e89dbf0d51bd027b5a776
|
|
Author: Arnd Bergmann <arnd@arndb.de>
|
|
Date: Mon Oct 6 13:56:34 2025 +0200
|
|
|
|
net/mlx5: fix pre-2.40 binutils assembler error
|
|
|
|
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.
|
|
|
|
Link: https://lore.kernel.org/all/20251001163655.GA370262@ax162/
|
|
Reported-by: Paolo Abeni <pabeni@redhat.com>
|
|
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
|
|
Suggested-by: Nathan Chancellor <nathan@kernel.org>
|
|
Fixes: fd8c8216648c ("net/mlx5: Improve write-combining test reliability for ARM64 Grace CPUs")
|
|
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
|
|
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
|
|
Reviewed-by: Patrisious Haddad <phaddad@nvidia.com>
|
|
Link: https://patch.msgid.link/20251006115640.497169-1-arnd@kernel.org
|
|
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
|
|
Signed-off-by: Kamal Heib <kheib@redhat.com>
|
|
|
|
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/wc.c b/drivers/net/ethernet/mellanox/mlx5/core/wc.c
|
|
index c281153bd411..05e5fd777d4f 100644
|
|
--- a/drivers/net/ethernet/mellanox/mlx5/core/wc.c
|
|
+++ b/drivers/net/ethernet/mellanox/mlx5/core/wc.c
|
|
@@ -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]"
|
|
:
|
|
--
|
|
2.50.1 (Apple Git-155)
|
|
|