Skip to content

Commit 6c814e8

Browse files
committed
Merge branch 'mlxsw-Update-firmware-version'
Ido Schimmel says: ==================== mlxsw: Update firmware version This patch set updates the firmware version for Spectrum-1 and enforces a firmware version for Spectrum-2. The version adds support for querying port module type. It will be used by a followup patch set from Jiri to make port split code more generic. Patch #1 increases the size of an existing register in order to be compatible with the new firmware version. In the future the firmware will assign default values to fields not specified by the driver. Patch #2 temporarily increases the PCI reset timeout for SN3800 systems. Note that in normal cases the driver will need to wait no longer than 5 seconds for the device to become ready following reset command. Patch #3 bumps the firmware version for Spectrum-1. Patch #4 enforces a minimum firmware version for Spectrum-2. v2: * Added patch #2 ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 7492344 + a72afb6 commit 6c814e8

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

drivers/net/ethernet/mellanox/mlxsw/pci_hw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#define MLXSW_PCI_SW_RESET 0xF0010
2929
#define MLXSW_PCI_SW_RESET_RST_BIT BIT(0)
30-
#define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS 20000
30+
#define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS 900000
3131
#define MLXSW_PCI_SW_RESET_WAIT_MSECS 100
3232
#define MLXSW_PCI_FW_READY 0xA1844
3333
#define MLXSW_PCI_FW_READY_MASK 0xFFFF

drivers/net/ethernet/mellanox/mlxsw/reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8680,7 +8680,7 @@ mlxsw_reg_mpat_eth_rspan_l3_ipv6_pack(char *payload, u8 ttl,
86808680
* properties.
86818681
*/
86828682
#define MLXSW_REG_MPAR_ID 0x901B
8683-
#define MLXSW_REG_MPAR_LEN 0x08
8683+
#define MLXSW_REG_MPAR_LEN 0x0C
86848684

86858685
MLXSW_REG_DEFINE(mpar, MLXSW_REG_MPAR_ID, MLXSW_REG_MPAR_LEN);
86868686

drivers/net/ethernet/mellanox/mlxsw/spectrum.c

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
#define MLXSW_SP1_FWREV_MAJOR 13
5050
#define MLXSW_SP1_FWREV_MINOR 2000
51-
#define MLXSW_SP1_FWREV_SUBMINOR 1886
51+
#define MLXSW_SP1_FWREV_SUBMINOR 2308
5252
#define MLXSW_SP1_FWREV_CAN_RESET_MINOR 1702
5353

5454
static const struct mlxsw_fw_rev mlxsw_sp1_fw_rev = {
@@ -63,6 +63,21 @@ static const struct mlxsw_fw_rev mlxsw_sp1_fw_rev = {
6363
"." __stringify(MLXSW_SP1_FWREV_MINOR) \
6464
"." __stringify(MLXSW_SP1_FWREV_SUBMINOR) ".mfa2"
6565

66+
#define MLXSW_SP2_FWREV_MAJOR 29
67+
#define MLXSW_SP2_FWREV_MINOR 2000
68+
#define MLXSW_SP2_FWREV_SUBMINOR 2308
69+
70+
static const struct mlxsw_fw_rev mlxsw_sp2_fw_rev = {
71+
.major = MLXSW_SP2_FWREV_MAJOR,
72+
.minor = MLXSW_SP2_FWREV_MINOR,
73+
.subminor = MLXSW_SP2_FWREV_SUBMINOR,
74+
};
75+
76+
#define MLXSW_SP2_FW_FILENAME \
77+
"mellanox/mlxsw_spectrum2-" __stringify(MLXSW_SP2_FWREV_MAJOR) \
78+
"." __stringify(MLXSW_SP2_FWREV_MINOR) \
79+
"." __stringify(MLXSW_SP2_FWREV_SUBMINOR) ".mfa2"
80+
6681
static const char mlxsw_sp1_driver_name[] = "mlxsw_spectrum";
6782
static const char mlxsw_sp2_driver_name[] = "mlxsw_spectrum2";
6883
static const char mlxsw_sp3_driver_name[] = "mlxsw_spectrum3";
@@ -4988,6 +5003,8 @@ static int mlxsw_sp2_init(struct mlxsw_core *mlxsw_core,
49885003
{
49895004
struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core);
49905005

5006+
mlxsw_sp->req_rev = &mlxsw_sp2_fw_rev;
5007+
mlxsw_sp->fw_filename = MLXSW_SP2_FW_FILENAME;
49915008
mlxsw_sp->kvdl_ops = &mlxsw_sp2_kvdl_ops;
49925009
mlxsw_sp->afa_ops = &mlxsw_sp2_act_afa_ops;
49935010
mlxsw_sp->afk_ops = &mlxsw_sp2_afk_ops;
@@ -6649,3 +6666,4 @@ MODULE_DEVICE_TABLE(pci, mlxsw_sp1_pci_id_table);
66496666
MODULE_DEVICE_TABLE(pci, mlxsw_sp2_pci_id_table);
66506667
MODULE_DEVICE_TABLE(pci, mlxsw_sp3_pci_id_table);
66516668
MODULE_FIRMWARE(MLXSW_SP1_FW_FILENAME);
6669+
MODULE_FIRMWARE(MLXSW_SP2_FW_FILENAME);

0 commit comments

Comments
 (0)