Skip to content

eth: fbnic: Add devlink dev flash support

Lee Trager linux-doc lkml netdev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 6 repliesIn review
  2. v45 patches 9 repliesSuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches4 repliesSuperseded
v12 patches5 repliesSuperseded

Changes in v5 from the cover letter

* Make sure fbnic_pldm_match_record() always returns a bool

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pldmfw: Don't require send_package_data or send_component_table to be definedlib/pldmfw/pldmfw.c+6 -01 reply
2/5eth: fbnic: Accept minimum anti-rollback version from firmwaredrivers/net/ethernet/meta/fbnic/fbnic_fw.c drivers/net/ethernet/meta/fbnic/fbnic_fw.h+6 -00 replies
3/5eth: fbnic: Add support for multiple concurrent completion messagesdrivers/net/ethernet/meta/fbnic/fbnic.h drivers/net/ethernet/meta/fbnic/fbnic_fw.c drivers/net/ethernet/meta/fbnic/fbnic_fw.h +1 more+87 -221 reply
4/5eth: fbnic: Add mailbox support for PLDM updatesdrivers/net/ethernet/meta/fbnic/fbnic_fw.c drivers/net/ethernet/meta/fbnic/fbnic_fw.h+228 -00 replies
5/5eth: fbnic: Add devlink dev flash supportDocumentation/networking/device_drivers/ethernet/meta/fbnic.rst drivers/net/ethernet/meta/Kconfig drivers/net/ethernet/meta/fbnic/fbnic_devlink.c +2 more+289 -13 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSimon HormanJacob Keller
1/5R-b A-b
2/5R-b
3/5R-b R-b
4/5R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH net-next v5 0/5] eth: fbnic: Add devlink dev flash support

fbnic supports updating firmware using signed PLDM images. PLDM images are written into the flash. Flashing does not interrupt the operation of the device.

Changes:
V5:
* Make sure fbnic_pldm_match_record() always returns a bool

V4 - https://lore.kernel.org/netdev/[email protected]/T/#t
* Tested flashing in a 50x loop
* Add devl_lock() in shutdown / quiescene paths like suspend to prevent interrupting the FW flashing process.
* Add support for multiple completion messages.
* Removed BSD function notation from fbnic_fw_xmit_fw_start_upgrade()
* Mailbox functions no longer return cmpl_data->result
* Add missing error check in fbnic_fw_xmit_fw_write
* Drop setting cmpl->u.fw_update.* to 0
* Set offset and length before validation
* Drop !fw check
* Firmware upgrades are now process driven
* Fix potential memory leak when an error is received in the mailbox when updating.
* Include anti-rollback support
* Drop retries when updating but increase timeout to 10s
* Use NL_SET_ERR_MSG_FMT_MOD in fbnic_devlink_flash_update()
* Updated cover letter, commit messages, and docs as suggested
* Dropped kdocs
* Patched libpldmfw to not require send_package_data or send_component_table which allowed stub functions to be dropped.
* Dropped all dev_*() printks
* Fixed Xmas tree variable declarations

V3 - https://lore.kernel.org/lkml/[email protected]/T/
* Fix comments

V2 - https://lore.kernel.org/all/[email protected]/
* Fixed reversed Xmas tree variable declarations
* Replaced memcpy with strscpy

Lee Trager (5):
pldmfw: Don't require send_package_data or send_component_table to be
defined
eth: fbnic: Accept minimum anti-rollback version from firmware
eth: fbnic: Add support for multiple concurrent completion messages
eth: fbnic: Add mailbox support for PLDM updates
eth: fbnic: Add devlink dev flash support

 .../device_drivers/ethernet/meta/fbnic.rst    |  11 +
 drivers/net/ethernet/meta/Kconfig             |   1 +
 drivers/net/ethernet/meta/fbnic/fbnic.h       |   3 +-
 .../net/ethernet/meta/fbnic/fbnic_devlink.c   | 260 +++++++++++++++-
 drivers/net/ethernet/meta/fbnic/fbnic_fw.c    | 294 ++++++++++++++++--
 drivers/net/ethernet/meta/fbnic/fbnic_fw.h    |  53 +++-
 drivers/net/ethernet/meta/fbnic/fbnic_mac.c   |   2 +-
 drivers/net/ethernet/meta/fbnic/fbnic_pci.c   |   9 +
 lib/pldmfw/pldmfw.c                           |   6 +
 9 files changed, 616 insertions(+), 23 deletions(-)

--
2.47.1