mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 20:21:06 +07:00
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 <davem@davemloft.net>
This commit is contained in:
commit
6c814e8c4e
@ -27,7 +27,7 @@
|
||||
|
||||
#define MLXSW_PCI_SW_RESET 0xF0010
|
||||
#define MLXSW_PCI_SW_RESET_RST_BIT BIT(0)
|
||||
#define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS 20000
|
||||
#define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS 900000
|
||||
#define MLXSW_PCI_SW_RESET_WAIT_MSECS 100
|
||||
#define MLXSW_PCI_FW_READY 0xA1844
|
||||
#define MLXSW_PCI_FW_READY_MASK 0xFFFF
|
||||
|
@ -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 0x0C
|
||||
|
||||
MLXSW_REG_DEFINE(mpar, MLXSW_REG_MPAR_ID, MLXSW_REG_MPAR_LEN);
|
||||
|
||||
|
@ -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 1702
|
||||
|
||||
static const struct mlxsw_fw_rev mlxsw_sp1_fw_rev = {
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user