Skip to content

eth: fbnic: add devlink health support for FW crashes and OTP mem corruptions

Jakub Kicinski netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 2 repliesApplied 9/9
  2. v29 patches 9 repliesSuperseded
  3. v19 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- [patch 2] add parsing policies
- [patch 7] use extack
- [patch 8] split time in diagnose callback into sec and msec
- [patch 8] don't report when netdevice is down
v2: https://lore.kernel.org/[email protected]
- [patch 2] fix attr ID
- [patch 2] comment and commit msg adjustments
v1: https://lore.kernel.org/[email protected]

Patches in v3 All 9 applied

#Subject and filesSizeRepliesApplied
1/9eth: fbnic: make fbnic_fw_log_write() parameter constdrivers/net/ethernet/meta/fbnic/fbnic_fw_log.c drivers/net/ethernet/meta/fbnic/fbnic_fw_log.h+2 -20 repliesApplied
2/9eth: fbnic: use fw uptime to detect fw crashesdrivers/net/ethernet/meta/fbnic/fbnic.h drivers/net/ethernet/meta/fbnic/fbnic_fw.c drivers/net/ethernet/meta/fbnic/fbnic_fw.h+27 -10 repliesApplied
3/9eth: fbnic: factor out clearing the action TCAMdrivers/net/ethernet/meta/fbnic/fbnic_rpc.c+21 -150 repliesApplied
4/9eth: fbnic: reprogram TCAMs after FW crashdrivers/net/ethernet/meta/fbnic/fbnic.h drivers/net/ethernet/meta/fbnic/fbnic_pci.c drivers/net/ethernet/meta/fbnic/fbnic_rpc.c+39 -70 repliesApplied
5/9eth: fbnic: support allocating FW completions with extra spacedrivers/net/ethernet/meta/fbnic/fbnic_fw.c drivers/net/ethernet/meta/fbnic/fbnic_fw.h+10 -20 repliesApplied
6/9eth: fbnic: support FW communication for core dumpdrivers/net/ethernet/meta/fbnic/fbnic_fw.c drivers/net/ethernet/meta/fbnic/fbnic_fw.h+252 -00 repliesApplied
7/9eth: fbnic: add FW health reporterDocumentation/networking/device_drivers/ethernet/meta/fbnic.rst drivers/net/ethernet/meta/fbnic/fbnic.h drivers/net/ethernet/meta/fbnic/fbnic_devlink.c +1 more+180 -10 repliesApplied
8/9eth: fbnic: report FW uptime in health diagnoseDocumentation/networking/device_drivers/ethernet/meta/fbnic.rst drivers/net/ethernet/meta/fbnic/fbnic_devlink.c+32 -11 replyApplied
9/9eth: fbnic: add OTP health reporterDocumentation/networking/device_drivers/ethernet/meta/fbnic.rst drivers/net/ethernet/meta/fbnic/fbnic.h drivers/net/ethernet/meta/fbnic/fbnic_csr.h +2 more+97 -01 replyApplied

Reviews trailers per patch

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

PatchSimon HormanLee Trager
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b R-b
8/9R-b R-b
9/9R-b

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/9] eth: fbnic: add devlink health support for FW crashes and OTP mem corruptions

Add support for FW crash detection and a corresponding devlink health reporter. Add a reporter for checking OTP memory health.

The output is not particularly exciting:

  # devlink  health show
  pci/0000:01:00.0:
    reporter fw
      state healthy error 0 recover 0 auto_dump true
    reporter otp
      state healthy error 0 recover 0 auto_dump true
  # devlink health diagnose pci/0000:01:00.0 reporter fw
   FW uptime: 0
  # devlink health dump show pci/0000:01:00.0 reporter fw
   FW coredump:
      5a 45 01 00 04 00 06 00 00 00 00 00 4d 01 00 d0 
      .. lots of hex follows ..
  # devlink health dump show pci/0000:01:00.0 reporter otp
   OTP:
     Status: 0 Data: 0 ECC: 0

v3:
- [patch 2] add parsing policies
- [patch 7] use extack
- [patch 8] split time in diagnose callback into sec and msec
- [patch 8] don't report when netdevice is down
v2: https://lore.kernel.org/[email protected]
- [patch 2] fix attr ID
- [patch 2] comment and commit msg adjustments
v1: https://lore.kernel.org/[email protected]

Jakub Kicinski (9):
eth: fbnic: make fbnic_fw_log_write() parameter const
eth: fbnic: use fw uptime to detect fw crashes
eth: fbnic: factor out clearing the action TCAM
eth: fbnic: reprogram TCAMs after FW crash
eth: fbnic: support allocating FW completions with extra space
eth: fbnic: support FW communication for core dump
eth: fbnic: add FW health reporter
eth: fbnic: report FW uptime in health diagnose
eth: fbnic: add OTP health reporter

 .../device_drivers/ethernet/meta/fbnic.rst    |  19 ++
 drivers/net/ethernet/meta/fbnic/fbnic.h       |  13 +
 drivers/net/ethernet/meta/fbnic/fbnic_csr.h   |  18 ++
 drivers/net/ethernet/meta/fbnic/fbnic_fw.h    |  47 ++++
 .../net/ethernet/meta/fbnic/fbnic_fw_log.h    |   2 +-
 .../net/ethernet/meta/fbnic/fbnic_devlink.c   | 249 ++++++++++++++++++
 drivers/net/ethernet/meta/fbnic/fbnic_fw.c    | 241 ++++++++++++++++-
 .../net/ethernet/meta/fbnic/fbnic_fw_log.c    |   2 +-
 drivers/net/ethernet/meta/fbnic/fbnic_pci.c   |  39 ++-
 drivers/net/ethernet/meta/fbnic/fbnic_rpc.c   |  57 ++--
 10 files changed, 659 insertions(+), 28 deletions(-)
Signature · 1 line
2.51.0