pds_fwctl: fwctl for AMD/Pensando core devices
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest6 patches 1 replyIn review
- v46 patches 4 repliesSuperseded
- v36 patches 14 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 6 patches | 24 replies | Superseded | |
| v1 RFC | 5 patches | 32 replies | Superseded |
Changes in v5 from the cover letter
- fix missing variable declaration
- fix kernel-doc complaint
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | pds_core: make pdsc_auxbus_dev_del() voiddrivers/ drivers/ drivers/ | +6 | 0 replies | |
| 2/6 | pds_core: specify auxiliary_device to be createddrivers/ drivers/ drivers/ +1 more | +33 | 0 replies | |
| 3/6 | pds_core: add new fwctl auxiliary_devicedrivers/ drivers/ drivers/ +2 more | +25 | 0 replies | |
| 4/6 | pds_fwctl: initial driver frameworkMAINTAINERS drivers/ drivers/ +5 more | +307 | 0 replies | |
| 5/6 | pds_fwctl: add rpc and query supportdrivers/ include/ include/ | +595 | 0 replies | |
| 6/6 | pds_fwctl: add Documentation entriesDocumentation/ Documentation/ Documentation/ | +48 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Leon Romanovsky | Jonathan Cameron | Kalesh AP | Dave Jiang |
|---|---|---|---|---|
| 1/6 | R-b | R-b | R-b | R-b |
| 2/6 | R-b | R-b | R-b | |
| 3/6 | R-b | R-b | R-b | |
| 4/6 | R-b | R-b | R-b | |
| 5/6 | 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 4 reviewers.
Cover letter [PATCH v5 0/6] pds_fwctl: fwctl for AMD/Pensando core devices
Following along from Jason's work [1] we have our initial patchset for pds_fwctl - an auxiliary_bus driver for supporting fwctl through the pds_core driver and its PDS core device.
The PDS core is PCI device that is separate and distinct from the ionic Eth device and from the other PCI devices that can be supported by the AMD/Pensando DSC. It is used by pds_vdpa and pds_vfio_pci to coordinate/communicate with the FW for setting up their services.
Until now the DSC's basic configurations for defining what devices to support and for getting low-level device debug information have been through internal commands not available from the host side, requiring access into the DSC's own OS. Adding the fwctl service allows us to start bringing these capabilities up into the host, but they don't replace the existing function-specific tools. For example, these are things that make the Eth PCI device appear on the PCI bus, while the tuning of the specific Eth features still go through the standard ethtool/devlink/ip/etc tools.
The first two patches are a bit of clean up for pds_core's add and delete of auxiliary_devices. Those are followed by a patch to add the new pds_core.fwctl auxiliary_device. This is only supported by the pds_core PF and not on any VFs.
The remaining patches add the pds_fwctl driver framework and then fill in the details for the fwctl services.
[1] https://lore.kernel.org/netdev/[email protected]/
v5:
- fix missing variable declaration
- fix kernel-doc complaint
v4: https://lore.kernel.org/netdev/[email protected]/
- fix commit description for better imperative (David)
- fix comment wording (David)
- add kdoc comment on struct fwctl_info_pds (David)
- #include <linux/bitfield.h> (Jason)
- fix for error pointer check in pdsfc_validate_rpc() (Brett and Dan)
- initialize pdsfc->caps
- add translation of FW opcode scope to fwctl scope
- several doc edits (David)
- added received Reviewd-by tags
v3: https://lore.kernel.org/netdev/[email protected]/
- rebase on Jason's tree
- better comment on "an error if there is no auxbus device support" (Jonathan)
- don't call pdsc_auxbus_dev_del() if pdsc_auxbus_dev_add() failed (Jonathan)
- struct pdsc *pdsc; is unnecessary in struct pdsfc_dev (Jonathan)
- remove unused UID field in pdsfc_info (Jonathan, Jason)
- change "Word boundary padding" to "Reserved" (Jonathan)
- remove the remaining use of cleanup pattern
- don't lose err from pds_client_adminq_cmd() in pdsfc_identify() (Jason)
- comment on pds_fwctl_ident.features (Jonathan)
- change noisy dev_errs to dev_dbg and remove a couple unnecessary ones (Jonathan, Jason)
- no cast needed on struct fwctl_rpc_pds *rpc = (struct fwctl_rpc_pds *)in (Jonathan)
- more labels and reverse order for cleanup in pdsfc_fw_rpc (Jonathan)
- __counted_by_le() on struct pds_fwctl_query_data (Jonathan)
- other comment comments on new structs (Jonathan)
- use FIELD_GET (Jason)
- Use __aligned_u64 in the uapi headers (Jason)
- call fwctl a subsystem in Docs (Jonathan)
- clean up text around endpoints in Docs (Jonathan)
v2: https://lore.kernel.org/netdev/[email protected]/
- removed the RFC tag
- add a patch to make pdsc_auxbus_dev_del() a void type (Jonathan)
- fix up error handling if pdsc_auxbus_dev_add() fails in probe (Jonathan)
- fix auxiliary spelling in commit subject header (Jonathan)
- clean up of code around use of __free() gizmo (Jonathan, David)
- removed extra whitespace and dev_xxx() calls (Leon)
- copy ident info from DMA and release DMA memory in probe (Jonathan)
- use dev_err_probe() (Jonathan)
- add counted_by_le(num_entries) (Jonathan, David)
- convert num_entries from __le32 to host in get_endpoints() (Jonathan)
- remove unnecessary variable inits (Jonathan, Leon)
v1: https://lore.kernel.org/netdev/[email protected]/
Brett Creeley (1):
pds_fwctl: add rpc and query support
Shannon Nelson (5):
pds_core: make pdsc_auxbus_dev_del() void
pds_core: specify auxiliary_device to be created
pds_core: add new fwctl auxiliary_device
pds_fwctl: initial driver framework
pds_fwctl: add Documentation entries
Documentation/userspace-api/fwctl/fwctl.rst | 1 + Documentation/userspace-api/fwctl/index.rst | 1 + .../userspace-api/fwctl/pds_fwctl.rst | 46 ++ MAINTAINERS | 7 + drivers/fwctl/Kconfig | 10 + drivers/fwctl/Makefile | 1 + drivers/fwctl/pds/Makefile | 4 + drivers/fwctl/pds/main.c | 539 ++++++++++++++++++ drivers/net/ethernet/amd/pds_core/auxbus.c | 44 +- drivers/net/ethernet/amd/pds_core/core.c | 7 + drivers/net/ethernet/amd/pds_core/core.h | 8 +- drivers/net/ethernet/amd/pds_core/devlink.c | 7 +- drivers/net/ethernet/amd/pds_core/main.c | 25 +- include/linux/pds/pds_adminq.h | 277 +++++++++ include/linux/pds/pds_common.h | 2 + include/uapi/fwctl/fwctl.h | 1 + include/uapi/fwctl/pds.h | 62 ++ 17 files changed, 1008 insertions(+), 34 deletions(-) create mode 100644 Documentation/userspace-api/fwctl/pds_fwctl.rst create mode 100644 drivers/fwctl/pds/Makefile create mode 100644 drivers/fwctl/pds/main.c create mode 100644 include/uapi/fwctl/pds.h
Signature · 1 line
2.17.1