net/mlx5e: select CONFIG_MLXFW
Subsystems (4)
PATCH 1/1 net/mlx5e: select CONFIG_MLXFW
With the introduction of mlx5 firmware flash support, we get a link error with CONFIG_MLXFW=m and CONFIG_MLX5_CORE=y:
drivers/net/ethernet/mellanox/mlx5/core/fw.o: In function `mlx5_firmware_flash':
fw.c:(.text+0x9d4): undefined reference to `mlxfw_firmware_flash'
We could have a more elaborate method to force MLX5 to be a loadable module in this case, but the easiest fix seems to be to always enable MLXFW as well, like we do for CONFIG_MLXSW_SPECTRUM, which is the other user of mlxfw_firmware_flash.
--- drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlx5/core/Kconfig +1 -0
@@ -6,6 +6,7 @@ config MLX5_CORE tristate "Mellanox Technologies ConnectX-4 and Connect-IB core driver" depends on MAY_USE_DEVLINK depends on PCI + select MLXFW default n ---help--- Core driver for low level functionality of the ConnectX-4 and
Signature · 6 lines
2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Arnd Bergmann
With the introduction of mlx5 firmware flash support, we get a link error with
CONFIG_MLXFW=mandCONFIG_MLX5_CORE=y:
drivers/net/ethernet/mellanox/mlx5/core/fw.o: In function `mlx5_firmware_flash':
fw.c:(.text+0x9d4): undefined reference to `mlxfw_firmware_flash'
Thanks Arnd, I got a report on that from Jakub but you were before me here..
Quoted 4 lines
We could have a more elaborate method to force MLX5 to be a loadable module in this case, but the easiest fix seems to be to always enable MLXFW as well, like we do for
CONFIG_MLXSW_SPECTRUM, which is the other user ofmlxfw_firmware_flash.
We would not want to force mlx5 users to build mlxfw.
So lets either use the more elaborate method or maybe instead of using IS_ENABLED in mlxfw.h use IS_REACHABLE (this was suggested by Jakub)
Or.
Quoted 14 lines · Or Gerlitz
Quoted 5 lines · Arnd Bergmann
With the introduction of mlx5 firmware flash support, we get a link error with
CONFIG_MLXFW=mandCONFIG_MLX5_CORE=y:
drivers/net/ethernet/mellanox/mlx5/core/fw.o: In function `mlx5_firmware_flash':
fw.c:(.text+0x9d4): undefined reference to `mlxfw_firmware_flash'Thanks Arnd, I got a report on that from Jakub but you were before me here..
Quoted 4 lines
We could have a more elaborate method to force MLX5 to be a loadable module in this case, but the easiest fix seems to be to always enable MLXFW as well, like we do for
CONFIG_MLXSW_SPECTRUM, which is the other user ofmlxfw_firmware_flash.
Quoted 4 lines
We would not want to force mlx5 users to build mlxfw.
So lets either use the more elaborate method or maybe instead of using
IS_ENABLEDinmlxfw.huseIS_REACHABLE(this was suggested by Jakub)
Sure, that works. I generally try to avoid IS_REACHABLE(), as I find it more confusing than adding a dependency like
depends on MLXFW || MLXFW=n
(and yes, I was the one who introduced IS_REACHABLE() ;-) ).
Arnd