mlxsw: Update firmware version
Subsystems (3)
cover mlxsw: Update firmware version
From: Ido Schimmel <[email protected]>
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 bumps the firmware version for Spectrum-1.
Patch #3 enforces a minimum firmware version for Spectrum-2.
Ido Schimmel (3):
mlxsw: reg: Increase size of MPAR register
mlxsw: Bump firmware version to 13.2000.2308
mlxsw: Enforce firmware version for Spectrum-2
drivers/net/ethernet/mellanox/mlxsw/reg.h | 2 +- .../net/ethernet/mellanox/mlxsw/spectrum.c | 20 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-)
Signature · 1 line
2.21.0
PATCH 1/3 mlxsw: reg: Increase size of MPAR register
From: Ido Schimmel <[email protected]>
In new firmware versions this register is extended with a sampling rate for Spectrum-2 and future ASICs.
Increase the size of the register to ensure the field is initialized to 0 which means every packet is mirrored.
--- drivers/net/ethernet/mellanox/mlxsw/reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlxsw/reg.h +1 -1
@@ -8680,7 +8680,7 @@ mlxsw_reg_mpat_eth_rspan_l3_ipv6_pack(char *payload, u8 ttl,* properties. */ #define MLXSW_REG_MPAR_ID 0x901B -#define MLXSW_REG_MPAR_LEN 0x08 +#define MLXSW_REG_MPAR_LEN 0x0CMLXSW_REG_DEFINE (mpar,MLXSW_REG_MPAR_ID ,MLXSW_REG_MPAR_LEN );
Signature · 1 line
2.21.0
PATCH 2/3 mlxsw: Bump firmware version to 13.2000.2308
In reply to Ido SchimmelFrom: Ido Schimmel <[email protected]>
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.
--- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +1 -1
@@ -48,7 +48,7 @@#define MLXSW_SP1_FWREV_MAJOR 13#define MLXSW_SP1_FWREV_MINOR 2000 -#define MLXSW_SP1_FWREV_SUBMINOR 1886 +#define MLXSW_SP1_FWREV_SUBMINOR 2308#define MLXSW_SP1_FWREV_CAN_RESET_MINOR 1702static const struct mlxsw_fw_rev mlxsw_sp1_fw_rev = {
Signature · 1 line
2.21.0
PATCH 3/3 mlxsw: Enforce firmware version for Spectrum-2
In reply to Ido SchimmelFrom: Ido Schimmel <[email protected]>
In a similar fashion to Spectrum-1, enforce a specific firmware version for Spectrum-2 so that the driver and firmware are always in sync with regards to new features.
--- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +18 -0
@@ -63,6 +63,21 @@ static const struct mlxsw_fw_rev mlxsw_sp1_fw_rev = { "." __stringify(MLXSW_SP1_FWREV_MINOR) \ "." __stringify(MLXSW_SP1_FWREV_SUBMINOR) ".mfa2" +#define MLXSW_SP2_FWREV_MAJOR 29 +#define MLXSW_SP2_FWREV_MINOR 2000 +#define MLXSW_SP2_FWREV_SUBMINOR 2308 + +static const struct mlxsw_fw_rev mlxsw_sp2_fw_rev = { + .major =MLXSW_SP2_FWREV_MAJOR , + .minor =MLXSW_SP2_FWREV_MINOR , + .subminor =MLXSW_SP2_FWREV_SUBMINOR , +}; + +#define MLXSW_SP2_FW_FILENAME \ + "mellanox/mlxsw_spectrum2-" __stringify(MLXSW_SP2_FWREV_MAJOR) \ + "." __stringify(MLXSW_SP2_FWREV_MINOR) \ + "." __stringify(MLXSW_SP2_FWREV_SUBMINOR) ".mfa2" +static const char mlxsw_sp1_driver_name[] ="mlxsw_spectrum" ;static const char mlxsw_sp2_driver_name[] ="mlxsw_spectrum2" ;static const char mlxsw_sp3_driver_name[] ="mlxsw_spectrum3" ;
@@ -4988,6 +5003,8 @@ static int mlxsw_sp2_init(struct mlxsw_core *mlxsw_core, {struct mlxsw_sp *mlxsw_sp =mlxsw_core_driver_priv (mlxsw_core); + mlxsw_sp->req_rev = &mlxsw_sp2_fw_rev; + mlxsw_sp->fw_filename =MLXSW_SP2_FW_FILENAME ; mlxsw_sp->kvdl_ops = &mlxsw_sp2_kvdl_ops; mlxsw_sp->afa_ops = &mlxsw_sp2_act_afa_ops; mlxsw_sp->afk_ops = &mlxsw_sp2_afk_ops;
@@ -6649,3 +6666,4 @@ MODULE_DEVICE_TABLE(pci, mlxsw_sp1_pci_id_table);MODULE_DEVICE_TABLE (pci, mlxsw_sp2_pci_id_table);MODULE_DEVICE_TABLE (pci, mlxsw_sp3_pci_id_table);MODULE_FIRMWARE (MLXSW_SP1_FW_FILENAME ); +MODULE_FIRMWARE (MLXSW_SP2_FW_FILENAME );
Signature · 1 line
2.21.0
Quoted 8 lines · Ido Schimmel
From: Ido Schimmel <[email protected]>
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.
Quoted 7 lines
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 bumps the firmware version for Spectrum-1.
Patch #3 enforces a minimum firmware version for Spectrum-2.
Please ignore this patch set. I need to send v2 with another patch to avoid regression with a particular system type.
Sorry for the noise.