mbox series

[net-next,RFC,0/3] Add mlx5 devices FW upgrade reset support

Message ID 1579017328-19643-1-git-send-email-moshe@mellanox.com
Headers show
Series Add mlx5 devices FW upgrade reset support | expand

Message

Moshe Shemesh Jan. 14, 2020, 3:55 p.m. UTC
This patchset adds support for FW upgrade.
On devlink reload, if a pending FW image is found, the driver will perform
a FW upgrade reset flow to activate the pending FW image.

Sending as RFC because the FW activation reset requires a pci link
toggling. Although it works and we verify that the device is the only
device on the pcie bridge before allowing such reset, as already done by
other drivers [1], we would like to get some feedback on the last patch
of this series.

[1] function trigger_sbr() at drivers/infiniband/hw/hfi1/pcie.c

Moshe Shemesh (3):
  net/mlx5: Add structure layout and defines for MFRL register
  net/mlx5: Add functions to set/query MFRL register
  net/mlx5: Add FW upgrade reset support

 drivers/net/ethernet/mellanox/mlx5/core/devlink.c  | 81 +++++++++++++++++++++-
 drivers/net/ethernet/mellanox/mlx5/core/fw.c       | 44 ++++++++++++
 .../net/ethernet/mellanox/mlx5/core/mlx5_core.h    |  2 +
 include/linux/mlx5/driver.h                        |  1 +
 include/linux/mlx5/mlx5_ifc.h                      | 17 +++++
 5 files changed, 144 insertions(+), 1 deletion(-)