Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Remove driver dependencies on ib_uverbs.ko
@ 2026-05-26  1:22 Jason Gunthorpe
  2026-05-26  1:22 ` [PATCH v3 1/6] RDMA/core: Do not compile ib_core_uverbs without USER_ACCESS Jason Gunthorpe
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Jason Gunthorpe @ 2026-05-26  1:22 UTC (permalink / raw)
  To: Leon Romanovsky, linux-rdma; +Cc: Jiri Pirko, patches

The original design was for user facing modules like ib_uverbs to be
independently loadable, if the user didn't want to have those char devs
then they could block the module.

This has slowly gotten degraded over time and right now every driver is
depending on ib_uverbs.ko. Fixup everything except
rdma_user_mmap_disassociate() in hns by moving code around and adding a
new module ib_uverbs_support.ko to hold the driver functions without any
of the uverbs cdev code.

After this series mlx5_ib and bnxt_re will use ib_uverbs_support.ko.

v3:
  - Handle core=y uverbs=m cases using a new kconfig
  - Remove doubled rdma_user_mmap_disassociate() inline
  - Add missing _exit
v2: https://patch.msgid.link/r/0-v2-4a21959414f2+3d7-ib_uverbs_support_ko_jgg@nvidia.com
  - Rebase on the rc branch
  - Fix ucaps module mistakes
  - Add a patch to not build ib_core_uverbs.o without
    CONFIG_INFINIBAND_USER_ACCESS
v1: https://patch.msgid.link/r/0-v1-045258567bd6+9fe-ib_uverbs_support_ko_jgg@nvidia.com

Jason Gunthorpe (6):
  RDMA/core: Do not compile ib_core_uverbs without USER_ACCESS
  RDMA/core: Move many of the little EXPORTs from uverbs_ioctl into
    ib_core_uverbs
  RDMA/core: Remove uverbs_async_event_release()
  RDMA/core: Make a new module for the uverbs components needed by
    drivers
  RDMA/core: Move ucaps into ib_uverbs_support.ko
  RDMA/core: Move flow related functions to ib_uverbs_support.ko

 drivers/infiniband/Kconfig                    |   4 +
 drivers/infiniband/core/Makefile              |  16 +-
 drivers/infiniband/core/ib_core_uverbs.c      | 226 +++++++++++++++++-
 drivers/infiniband/core/rdma_core.c           | 150 ++++++------
 drivers/infiniband/core/rdma_core.h           |   4 -
 drivers/infiniband/core/ucaps.c               |   5 +-
 drivers/infiniband/core/uverbs.h              |  25 +-
 drivers/infiniband/core/uverbs_cmd.c          |  76 ------
 drivers/infiniband/core/uverbs_flow.c         |  78 ++++++
 drivers/infiniband/core/uverbs_ioctl.c        | 204 ----------------
 drivers/infiniband/core/uverbs_main.c         | 127 +++++-----
 drivers/infiniband/core/uverbs_std_types.c    |   6 -
 .../core/uverbs_std_types_async_fd.c          |  22 +-
 drivers/infiniband/core/uverbs_uapi.c         |  13 +
 include/rdma/ib_ucaps.h                       |   1 -
 include/rdma/ib_verbs.h                       |  67 +++++-
 include/rdma/uverbs_ioctl.h                   |  13 +-
 include/rdma/uverbs_types.h                   |   8 +-
 18 files changed, 583 insertions(+), 462 deletions(-)
 create mode 100644 drivers/infiniband/core/uverbs_flow.c


base-commit: e312f0ff9e180e8ebfdab2419898e82cf5408944
-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-05-26 13:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-26  1:22 [PATCH v3 0/6] Remove driver dependencies on ib_uverbs.ko Jason Gunthorpe
2026-05-26  1:22 ` [PATCH v3 1/6] RDMA/core: Do not compile ib_core_uverbs without USER_ACCESS Jason Gunthorpe
2026-05-26  1:22 ` [PATCH v3 2/6] RDMA/core: Move many of the little EXPORTs from uverbs_ioctl into ib_core_uverbs Jason Gunthorpe
2026-05-26  1:22 ` [PATCH v3 3/6] RDMA/core: Remove uverbs_async_event_release() Jason Gunthorpe
2026-05-26  1:22 ` [PATCH v3 4/6] RDMA/core: Make a new module for the uverbs components needed by drivers Jason Gunthorpe
2026-05-26  1:22 ` [PATCH v3 5/6] RDMA/core: Move ucaps into ib_uverbs_support.ko Jason Gunthorpe
2026-05-26  1:22 ` [PATCH v3 6/6] RDMA/core: Move flow related functions to ib_uverbs_support.ko Jason Gunthorpe
2026-05-26 13:21 ` [PATCH v3 0/6] Remove driver dependencies on ib_uverbs.ko Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox