Skip to content

bnxt_fwctl: fwctl for Broadcom Netxtreme devices

Pavan Chebbi linux-rdma 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 9 repliesIn review
  2. v45 patches 11 repliesSuperseded
  3. v35 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches19 repliesSuperseded
v16 patches2 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bnxt_en: Move common definitions to include/linux/bnxt/drivers/infiniband/hw/bnxt_re/debugfs.c drivers/infiniband/hw/bnxt_re/main.c drivers/infiniband/hw/bnxt_re/qplib_fp.c +7 more+9 -90 replies
2/5bnxt_en: Refactor aux bus functions to be more genericdrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt.h drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +2 more+181 -1244 replies
3/5bnxt_en: Create an aux device for fwctldrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c include/linux/bnxt/ulp.h+18 -30 replies
4/5bnxt_fwctl: Add bnxt fwctl deviceMAINTAINERS drivers/fwctl/Kconfig drivers/fwctl/Makefile +4 more+540 -02 replies
5/5bnxt_fwctl: Add documentation entriesDocumentation/userspace-api/fwctl/bnxt_fwctl.rst Documentation/userspace-api/fwctl/fwctl.rst Documentation/userspace-api/fwctl/index.rst+80 -03 replies

Reviews trailers per patch

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

PatchAndy GospodarekDave Jiang
1/5R-b
2/5R-b
3/5R-b
4/5R-b R-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] bnxt_fwctl: fwctl for Broadcom Netxtreme devices

Introducing bnxt_fwctl which follows along Jason's work [1]. It is an aux bus driver that enables fwctl for Broadcom NetXtreme 574xx, 575xx and 576xx series chipsets by using bnxt driver's capability to talk to devices' firmware.

The first patch moves the ULP definitions to a common place inside include/linux/bnxt/. The second and third patches refactor and extend the existing bnxt aux bus functions to be able to add more than one auxiliary device. The last three patches create an additional bnxt aux device, add bnxt_fwctl, and the documentation.

[1] https://lore.kernel.org/netdev/[email protected]/

v5: Addressed the v4's review comments as below:
Patch #2 and #3: Simplified aux bus device creation logic by having the core maintain arrays of pointers to aux devices and their contexts, thereby avoiding function calls from aux dev. [thanks Leon]
Patch #4: Used memdup_user() as suggested by cocci. Addressed additional review comments from Jonathon and Dave. Collected Rb tags from Dave.

v4: In patch #4, added the missing kfree on error for response buffer. Improved documentation in patch #5 based on comments from Dave.

v3: Addressed the review comments as below
Patch #1: Removed redundant common.h [thanks Saeed] Patch #2 and #3 merged into a single patch [thanks Jonathan] Patch #3: Addressed comments from Jonathan
Patch #4 and #5: Addressed comments from Jonathan and Dave

v2: In patch #5, fixed a sparse warning where a __le16 was degraded to an integer. Also addressed kdoc warnings for include/uapi/fwctl/bnxt.h in the same patch.

v1: https://lore.kernel.org/netdev/[email protected]/

The following are changes since commit 3a8660878839faadb4f1a6dd72c3179c1df56787:
Linux 6.18-rc1
and are available in the git repository at:
https://github.com/pavanchebbi/linux/tree/bnxt_fwctl_v5

Pavan Chebbi (5):
bnxt_en: Move common definitions to include/linux/bnxt/
bnxt_en: Refactor aux bus functions to be more generic
bnxt_en: Create an aux device for fwctl
bnxt_fwctl: Add bnxt fwctl device
bnxt_fwctl: Add documentation entries

 .../userspace-api/fwctl/bnxt_fwctl.rst        |  78 +++
 Documentation/userspace-api/fwctl/fwctl.rst   |   1 +
 Documentation/userspace-api/fwctl/index.rst   |   1 +
 MAINTAINERS                                   |   6 +
 drivers/fwctl/Kconfig                         |  11 +
 drivers/fwctl/Makefile                        |   1 +
 drivers/fwctl/bnxt/Makefile                   |   4 +
 drivers/fwctl/bnxt/main.c                     | 453 ++++++++++++++++++
 drivers/infiniband/hw/bnxt_re/debugfs.c       |   2 +-
 drivers/infiniband/hw/bnxt_re/main.c          |   2 +-
 drivers/infiniband/hw/bnxt_re/qplib_fp.c      |   2 +-
 drivers/infiniband/hw/bnxt_re/qplib_res.h     |   2 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  37 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |  13 +-
 .../net/ethernet/broadcom/bnxt/bnxt_devlink.c |   2 +-
 .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c |   4 +-
 .../net/ethernet/broadcom/bnxt/bnxt_sriov.c   |   2 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 250 ++++++----
 .../bnxt_ulp.h => include/linux/bnxt/ulp.h    |  24 +-
 include/uapi/fwctl/bnxt.h                     |  64 +++
 include/uapi/fwctl/fwctl.h                    |   1 +
 21 files changed, 826 insertions(+), 134 deletions(-)
 create mode 100644 Documentation/userspace-api/fwctl/bnxt_fwctl.rst
 create mode 100644 drivers/fwctl/bnxt/Makefile
 create mode 100644 drivers/fwctl/bnxt/main.c
 rename drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h => include/linux/bnxt/ulp.h (85%)
 create mode 100644 include/uapi/fwctl/bnxt.h
Signature · 1 line
2.39.1