Skip to contentSkip to conversation

Please pull RDMA subsystem changes

GIT PULL Merged Jason Gunthorpe 2 participants 2 messages Jan 3, 2025 InfiniBand

lore
Share & tools
lore

Jason Gunthorpe

author maintainer
#0 lore raw

Hi Linus,

Somewhat larger batch of fixes as I was away the last few weeks.

Thanks,
Jason

The following changes since commit 40384c840ea1944d7c5a392e8975ed088ecf0b37:

Linux 6.13-rc1 (2024-12-01 14:28:56 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git tags/for-linus

for you to fetch changes up to 45d339fefaa3dcd237038769e0d34584fb867390:

RDMA/mlx5: Enable multiplane mode only when it is supported (2025-01-03 09:17:19 -0400)

----------------------------------------------------------------
RDMA v6.13 first rc pull request

Alot of fixes accumulated over the holiday break:

- Static tool fixes, value is already proven to be NULL, possible integer overflow

- Many bnxt_re fixes:
* Crashes due to a mismatch in the maximum SGE list size
* Don't waste memory for user QPs by creating kernel-only structures
* Fix compatability issues with older HW in some of the new HW features

    recently introduced: RTS->RTS feature, work around 9096

* Do not allow destroy_qp to fail
* Validate QP MTU against device limits
* Add missing validation on madatory QP attributes for RTR->RTS
* Report port_num in query_qp as required by the spec
* Fix creation of QPs of the maximum queue size, and in the variable mode
* Allow all QPs to be used on newer HW by limiting a work around only to HW it affects
* Use the correct MSN table size for variable mode QPs
* Add missing locking in create_qp() accessing the qp_tbl
* Form WQE buffers correctly when some of the buffers are 0 hop
* Don't crash on QP destroy if the userspace doesn't setup the dip_ctx
* Add the missing QP flush handler call on the DWQE path to avoid hanging on error recovery
* Consistently use ENXIO for return codes if the devices is fatally errored

- Try again to fix VLAN support on iwarp, previous fix was reverted due to breaking other cards

- Correct error path return code for rdma netlink events

- Remove the seperate net_device pointer in siw and rxe which syzkaller found a way to UAF

- Fix a UAF of a stack ib_sge in rtrs

- Fix a regression where old mlx5 devices and FW were wrongly activing new device features and failing

----------------------------------------------------------------
Anumula Murali Mohan Reddy (1):
RDMA/core: Fix ENODEV error for iWARP test over vlan

Bernard Metzler (1):
RDMA/siw: Remove direct link to net_device

Chengchang Tang (3):
RDMA/hns: Fix accessing invalid dip_ctx during destroying QP RDMA/hns: Fix warning storm caused by invalid input in IO path RDMA/hns: Fix missing flush CQE for DWQE

Chiara Meiohas (1):
RDMA/nldev: Set error code in rdma_nl_notify_event

Damodharam Ammepalli (3):
RDMA/bnxt_re: Fix setting mandatory attributes for modify_qp RDMA/bnxt_re: Add send queue size check for variable wqe RDMA/bnxt_re: Fix MSN table size for variable wqe mode

Dan Carpenter (1):
RDMA/uverbs: Prevent integer overflow issue

Hongguang Gao (1):
RDMA/bnxt_re: Fix to export port num to ib_query_qp

Kalesh AP (5):
RDMA/bnxt_re: Don't fail destroy QP and cleanup debugfs earlier RDMA/bnxt_re: Fix the check for 9060 condition RDMA/bnxt_re: Fix reporting hw_ver in query_device RDMA/bnxt_re: Disable use of reserved wqes RDMA/bnxt_re: Fix error recovery sequence

Kashyap Desai (2):
RDMA/bnxt_re: Fix max SGEs for the Work Request RDMA/bnxt_re: Avoid sending the modify QP workaround for latest adapters

Leon Romanovsky (1):
RDMA/bnxt_re: Remove always true dattr validity check

Li Zhijian (1):
RDMA/rtrs: Ensure 'ib_sge list' is accessible

Mark Zhang (1):
RDMA/mlx5: Enable multiplane mode only when it is supported

Patrisious Haddad (1):
RDMA/mlx5: Enforce same type port association for multiport RoCE

Saravanan Vajravel (1):
RDMA/bnxt_re: Add check for path mtu in modify_qp

Selvin Xavier (3):
RDMA/bnxt_re: Avoid initializing the software queue for user queues RDMA/bnxt_re: Fix max_qp_wrs reported
RDMA/bnxt_re: Fix the locking while accessing the QP table

Zhu Yanjun (1):
RDMA/rxe: Remove the direct link to net_device

wenglianfa (1):
RDMA/hns: Fix mapping error of zero-hop WQE buffer

 drivers/infiniband/core/cma.c              | 16 ++++++
 drivers/infiniband/core/nldev.c            |  2 +-
 drivers/infiniband/core/uverbs_cmd.c       | 16 +++---
 drivers/infiniband/hw/bnxt_re/ib_verbs.c   | 50 +++++++++----------
 drivers/infiniband/hw/bnxt_re/ib_verbs.h   |  4 ++
 drivers/infiniband/hw/bnxt_re/main.c       |  8 +--
 drivers/infiniband/hw/bnxt_re/qplib_fp.c   | 79 +++++++++++++++++++-----------
 drivers/infiniband/hw/bnxt_re/qplib_fp.h   |  4 +-
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c |  5 +-
 drivers/infiniband/hw/bnxt_re/qplib_res.h  |  5 ++
 drivers/infiniband/hw/bnxt_re/qplib_sp.c   | 18 ++++---
 drivers/infiniband/hw/bnxt_re/roce_hsi.h   |  1 +
 drivers/infiniband/hw/hns/hns_roce_hem.c   | 43 ++++++++++------
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 11 ++++-
 drivers/infiniband/hw/hns/hns_roce_mr.c    |  5 --
 drivers/infiniband/hw/mlx5/main.c          |  8 +--
 drivers/infiniband/sw/rxe/rxe.c            | 23 +++++++--
 drivers/infiniband/sw/rxe/rxe.h            |  3 +-
 drivers/infiniband/sw/rxe/rxe_mcast.c      | 22 ++++++++-
 drivers/infiniband/sw/rxe/rxe_net.c        | 24 +++++++--
 drivers/infiniband/sw/rxe/rxe_verbs.c      | 26 ++++++++--
 drivers/infiniband/sw/rxe/rxe_verbs.h      | 11 +++--
 drivers/infiniband/sw/siw/siw.h            |  7 ++-
 drivers/infiniband/sw/siw/siw_cm.c         | 27 +++++++---
 drivers/infiniband/sw/siw/siw_main.c       | 15 +-----
 drivers/infiniband/sw/siw/siw_verbs.c      | 35 ++++++++-----
 drivers/infiniband/ulp/rtrs/rtrs-srv.c     |  2 +-
 include/linux/mlx5/driver.h                |  6 +++
 include/linux/mlx5/mlx5_ifc.h              |  4 +-
 29 files changed, 321 insertions(+), 159 deletions(-)