Re: [PATCH rdma-next v2 00/11] RDMA/mlx5: Preparation for SD support
From: Leon Romanovsky
Date: Sun Nov 29 2026 - 07:31:37 EST
On Sat, 28 Nov 2026 15:01:13 +0200, Edward Srouji wrote:
> This series prepares mlx5_ib for Socket Direct (SD), where one IB device
> spans several core devices, one per PCIe function. Today the driver
> assumes a single core device per IB device and reaches it through
> dev->mdev all over the code.
>
> Instead, each call site now finds its core device through the resource
> it works on: QPs, SRQs, AHs and MWs through their PD, and DEVX objects,
> UARs and mmaps through their ucontext. A CQ and an MR store the core
> device they were created on, since they cannot always reach their owner
> when they need it. The SD series can then change where a resource lives
> in the resolvers, without touching the call sites.
>
> [...]
Applied, thanks!
[01/11] RDMA/mlx5: Enforce dev/mdev naming for device pointers
https://git.kernel.org/rdma/rdma/c/147f90e88ca227
[02/11] RDMA/mlx5: Rename to_mdev() helpers that return an IB device
https://git.kernel.org/rdma/rdma/c/48698012f2a24d
[03/11] RDMA/mlx5: Select the PD and SRQ core device through the PD
https://git.kernel.org/rdma/rdma/c/fa96aece91ca47
[04/11] RDMA/mlx5: Select the core device through PD for QP commands
https://git.kernel.org/rdma/rdma/c/97ea184a768c1a
[05/11] RDMA/mlx5: Cache the MR core device and resolve the MW's via its PD
https://git.kernel.org/rdma/rdma/c/1e13941d12a7f3
[06/11] RDMA/mlx5: Select the AH core device through their PD
https://git.kernel.org/rdma/rdma/c/318d14c1447cd0
[07/11] RDMA/mlx5: Select the QP core device through its PD
https://git.kernel.org/rdma/rdma/c/582902d8df8fab
[08/11] RDMA/mlx5: Resolve core device from ucontext for DEVX resources
https://git.kernel.org/rdma/rdma/c/889356b6e27676
[09/11] RDMA/mlx5: Cache the CQ core device and resolve it via cq_to_mdev()
https://git.kernel.org/rdma/rdma/c/606d9a123dc0cf
[10/11] RDMA/mlx5: Resolve the bfreg UAR-index core device from the ucontext
https://git.kernel.org/rdma/rdma/c/6e2dcaca0d5bb8
[11/11] RDMA/mlx5: Resolve UAR and mmap core devices via the ucontext
https://git.kernel.org/rdma/rdma/c/b0e77cee288556
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>