]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlxfw: Drop hard coded max FW flash image size
authorMaher Sanalla <msanalla@nvidia.com>
Thu, 16 Jan 2025 12:33:16 +0000 (14:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:49:59 +0000 (12:49 +0100)
commitf023bf6758148654526d2ca6b965958d6a492855
treeac725ad4c584e371767f5a7f7e7e5c7244d15501
parent0e2f1d93d287d544d26f8ff293ea820a8079b9f8
net/mlxfw: Drop hard coded max FW flash image size

[ Upstream commit 70d81f25cc92cc4e914516c9935ae752f27d78ad ]

Currently, mlxfw kernel module limits FW flash image size to be
10MB at most, preventing the ability to burn recent BlueField-3
FW that exceeds the said size limit.

Thus, drop the hard coded limit. Instead, rely on FW's
max_component_size threshold that is reported in MCQI register
as the size limit for FW image.

Fixes: 410ed13cae39 ("Add the mlxfw module for Mellanox firmware flash process")
Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/1737030796-1441634-1-git-send-email-moshe@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c