Re: [for-next v4 0/4] RDMA/ionic: Accept CQ, SQ, and RQ rings as umem attributes

From: Jiri Pirko

Date: Fri Dec 04 2026 - 03:53:36 EST


Thu, Dec 03, 2026 at 12:08:01PM +0100, abhijit.gangurde@xxxxxxx wrote:
>Let userspace hand ionic queue rings to create_cq and create_qp as
>struct ib_uverbs_buffer_desc, instead of only as a raw address in the
>driver request. A ring may be a virtual address or a page-aligned
>slice of a dma-buf, so several rings can share one dma-buf.
>
>The get_context bit IONIC_CTX_CMASK_CQ_QP_BUF_UMEM tells userspace it
>may send the descriptors. ionic_cq_req and ionic_qp_req are unchanged,
>so a provider that does not send them still uses the existing write
>path and ib_umem_get_va.
>
>Userspace: https://github.com/linux-rdma/rdma-core/pull/1862
>
>v4:
> - New patch 2 moves the alignment check for all user rings
> - Discarded lookup inside the buffer descriptor
>v3:
> - Move IONIC_CTX_CMASK_CQ_QP_BUF_UMEM from bit 1 to bit 3.
> - Rebased on for-next.
> - https://lore.kernel.org/linux-rdma/20261127040832.16908-1-abhijit.gangurde@xxxxxxx/
>v2:
> - Fix sashiko reported comments
> - New patch 1: bound depth/stride shift counts
> - Reject non-zero qdesc addr for dma-buf
> - QP: pin validated descriptor copy
> - https://lore.kernel.org/linux-rdma/20261126044811.3458258-1-abhijit.gangurde@xxxxxxx/
>v1:
> - https://lore.kernel.org/linux-rdma/20261118152313.113714-1-abhijit.gangurde@xxxxxxx/
>
>Abhijit Gangurde (4):
> RDMA/ionic: Bound user queue depth and stride before shifting
> RDMA/ionic: Check user ring alignment on the pinned umem
> RDMA/ionic: Accept CQ ring buffers as ioctl umem attributes
> RDMA/ionic: Accept QP SQ and RQ rings as ioctl umem attributes
>
> MAINTAINERS | 1 +
> drivers/infiniband/hw/ionic/ionic_admin.c | 2 +-
> .../infiniband/hw/ionic/ionic_controlpath.c | 148 ++++++++++++++----
> drivers/infiniband/hw/ionic/ionic_ibdev.c | 17 ++
> drivers/infiniband/hw/ionic/ionic_ibdev.h | 2 +
> include/uapi/rdma/ionic-abi.h | 3 +
> include/uapi/rdma/ionic_user_ioctl_cmds.h | 15 ++
> 7 files changed, 153 insertions(+), 35 deletions(-)
> create mode 100644 include/uapi/rdma/ionic_user_ioctl_cmds.h

Looks fine to me.
set-
Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>