[PATCH v3 00/14] Introduce AMD Pensando RDMA driver

Abhijit Gangurde
2025-06-24T12:13:33Z

This patchset introduces an RDMA driver for the AMD Pensando adapter.
An AMD Pensando Ethernet device with RDMA capabilities extends its
functionality through an auxiliary device.

The first 6 patches of the series modify the ionic Ethernet driver
to support the RDMA driver. The ionic RDMA driver implementation is
split into the remaining 8 patches.

v2->v3
- Used IDA for resource id allocation
- Fixed lockdep warning
- Removed rw locks around xarrays
- Used rdma_user_mmap_* APIs for mappings
- Removed uverbs_cmd_mask
- Registered main ib ops at once
- Fixed sparse checks
- Fixed make htmldocs error
v1->v2
- Removed netdev references from ionic RDMA driver
- Moved to ionic_lif* instead of void* to convey information between
aux devices and drivers

Abhijit Gangurde (14):
net: ionic: Create an auxiliary device for rdma driver
net: ionic: Update LIF identity with additional RDMA capabilities
net: ionic: Export the APIs from net driver to support device commands
net: ionic: Provide RDMA reset support for the RDMA driver
net: ionic: Provide interrupt allocation support for the RDMA driver
net: ionic: Provide doorbell and CMB region information
RDMA: Add IONIC to rdma_driver_id definition
RDMA/ionic: Register auxiliary module for ionic ethernet adapter
RDMA/ionic: Create device queues to support admin operations
RDMA/ionic: Register device ops for control path
RDMA/ionic: Register device ops for datapath
RDMA/ionic: Register device ops for miscellaneous functionality
RDMA/ionic: Implement device stats ops
RDMA/ionic: Add Makefile/Kconfig to kernel build environment

.../device_drivers/ethernet/index.rst | 1 +
.../ethernet/pensando/ionic_rdma.rst | 43 +
MAINTAINERS | 9 +
drivers/infiniband/Kconfig | 1 +
drivers/infiniband/hw/Makefile | 1 +
drivers/infiniband/hw/ionic/Kconfig | 15 +
drivers/infiniband/hw/ionic/Makefile | 9 +
drivers/infiniband/hw/ionic/ionic_admin.c | 1270 ++++++++
.../infiniband/hw/ionic/ionic_controlpath.c | 2714 +++++++++++++++++
drivers/infiniband/hw/ionic/ionic_datapath.c | 1392 +++++++++
drivers/infiniband/hw/ionic/ionic_fw.h | 1029 +++++++
drivers/infiniband/hw/ionic/ionic_hw_stats.c | 484 +++
drivers/infiniband/hw/ionic/ionic_ibdev.c | 452 +++
drivers/infiniband/hw/ionic/ionic_ibdev.h | 521 ++++
drivers/infiniband/hw/ionic/ionic_lif_cfg.c | 128 +
drivers/infiniband/hw/ionic/ionic_lif_cfg.h | 67 +
drivers/infiniband/hw/ionic/ionic_pgtbl.c | 143 +
drivers/infiniband/hw/ionic/ionic_queue.c | 52 +
drivers/infiniband/hw/ionic/ionic_queue.h | 234 ++
drivers/infiniband/hw/ionic/ionic_res.h | 154 +
drivers/net/ethernet/pensando/Kconfig | 1 +
drivers/net/ethernet/pensando/ionic/Makefile | 2 +-
drivers/net/ethernet/pensando/ionic/ionic.h | 7 -
.../net/ethernet/pensando/ionic/ionic_api.h | 131 +
.../net/ethernet/pensando/ionic/ionic_aux.c | 117 +
.../net/ethernet/pensando/ionic/ionic_aux.h | 10 +
.../ethernet/pensando/ionic/ionic_bus_pci.c | 7 +
.../net/ethernet/pensando/ionic/ionic_dev.c | 270 +-
.../net/ethernet/pensando/ionic/ionic_dev.h | 28 +-
.../net/ethernet/pensando/ionic/ionic_if.h | 118 +-
.../net/ethernet/pensando/ionic/ionic_lif.c | 47 +-
.../net/ethernet/pensando/ionic/ionic_lif.h | 3 +
.../net/ethernet/pensando/ionic/ionic_main.c | 4 +-
include/uapi/rdma/ib_user_ioctl_verbs.h | 1 +
include/uapi/rdma/ionic-abi.h | 115 +
35 files changed, 9516 insertions(+), 64 deletions(-)
create mode 100644 Documentation/networking/device_drivers/ethernet/pensando/ionic_rdma.rst
create mode 100644 drivers/infiniband/hw/ionic/Kconfig
create mode 100644 drivers/infiniband/hw/ionic/Makefile
create mode 100644 drivers/infiniband/hw/ionic/ionic_admin.c
create mode 100644 drivers/infiniband/hw/ionic/ionic_controlpath.c
create mode 100644 drivers/infiniband/hw/ionic/ionic_datapath.c
create mode 100644 drivers/infiniband/hw/ionic/ionic_fw.h
create mode 100644 drivers/infiniband/hw/ionic/ionic_hw_stats.c
create mode 100644 drivers/infiniband/hw/ionic/ionic_ibdev.c
create mode 100644 drivers/infiniband/hw/ionic/ionic_ibdev.h
create mode 100644 drivers/infiniband/hw/ionic/ionic_lif_cfg.c
create mode 100644 drivers/infiniband/hw/ionic/ionic_lif_cfg.h
create mode 100644 drivers/infiniband/hw/ionic/ionic_pgtbl.c
create mode 100644 drivers/infiniband/hw/ionic/ionic_queue.c
create mode 100644 drivers/infiniband/hw/ionic/ionic_queue.h
create mode 100644 drivers/infiniband/hw/ionic/ionic_res.h
create mode 100644 drivers/net/ethernet/pensando/ionic/ionic_api.h
create mode 100644 drivers/net/ethernet/pensando/ionic/ionic_aux.c
create mode 100644 drivers/net/ethernet/pensando/ionic/ionic_aux.h
create mode 100644 include/uapi/rdma/ionic-abi.h

--
2.43.0