mlxsw: Add support for new reset flow
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 18 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | mlxsw: reg: Move 'mpsc' definition in 'mlxsw_reg_infos'drivers/ | +1 | 1 reply | |
| 2/6 | mlxsw: reg: Add Management Capabilities Mask Registerdrivers/ | +74 | 4 replies | |
| 3/6 | mlxsw: Extend MRSR pack() function to support new commandsdrivers/ drivers/ | +13 | 1 reply | |
| 4/6 | mlxsw: pci: Rename mlxsw_pci_sw_reset()drivers/ | +5 | 1 reply | |
| 5/6 | mlxsw: pci: Move software reset code to a separate functiondrivers/ | +11 | 1 reply | |
| 6/6 | mlxsw: pci: Add support for new reset flowdrivers/ drivers/ | +155 | 10 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Ido Schimmel | Petr Machata | Simon Horman |
|---|---|---|---|
| 1/6 | R-b | R-b | R-b |
| 2/6 | R-b | R-b | |
| 3/6 | R-b | R-b | R-b |
| 4/6 | R-b | R-b | |
| 5/6 | R-b | R-b | R-b |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH net-next 0/6] mlxsw: Add support for new reset flow
Amit Cohen writes:
The driver resets the device during probe and during a devlink reload. The current reset method reloads the current firmware version or a pending one, if one was previously flashed using devlink. However, the reset does not take down the PCI link, preventing the PCI firmware from being upgraded, unless the system is rebooted.
To solve this problem, a new reset command was implemented in the firmware. Unlike the current command, after issuing the new command the device will not start the reset immediately, but only after the PCI link was disabled.
For Spectrum-4, the firmware will support the new reset flow, which includes PCI reset. Add support for the new flow and use it only after verifying it is supported by the current firmware version by querying the Management Capabilities Mask (MCAM) register.
Patch set overview:
Patch #1 fixes a wrong order of registers' definitions. Patches #2-#3 add the required registers and fields for new reset support.
Patches #4-#5 prepare reset code to be extended.
Patch #6 adds support for the new reset flow.
Amit Cohen (6):
mlxsw: reg: Move 'mpsc' definition in 'mlxsw_reg_infos'
mlxsw: reg: Add Management Capabilities Mask Register
mlxsw: Extend MRSR pack() function to support new commands
mlxsw: pci: Rename mlxsw_pci_sw_reset()
mlxsw: pci: Move software reset code to a separate function
mlxsw: pci: Add support for new reset flow
drivers/net/ethernet/mellanox/mlxsw/pci.c | 169 ++++++++++++++++++- drivers/net/ethernet/mellanox/mlxsw/pci_hw.h | 5 + drivers/net/ethernet/mellanox/mlxsw/reg.h | 90 +++++++++- 3 files changed, 254 insertions(+), 10 deletions(-)
Signature · 1 line
2.39.0