From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795955490; b=wnSgHXWMHtMTtz6LQEL14DF2z+vgPkV8mgSGjHqJOGiFssqrXhFZlcXW7RH4phrdYCGG TKp+wo/ALRv1iIzhWO17mjm1h74tkbOB21OrGddw+iQJxlelqYnOgS/FGCBWDXkq4qJEY iLBrmUAFDrFN6yHFdU8HkuJi8WfB8pMnOBNM5g1+p97fDcEoKEi3NDgBs9xXuT2c8TLdF lq1aHImLnLu+blJsj4H2+VgUC4mzOxLB5nrUWbzZHDkzNJeZawHj9QZ0ZcvjhTENR8ULX fhebT1snd96zqSyTC58tbb6jNxp0Vp9D86f2PTg2M1chIPj3HbdDOIvzN7R3XLgViJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795955490; h=Received:DKIM-Signature:From:To:Cc:In-Reply-To:References:Subject: Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer; bh=6GeEDrrJ/qOQAY5/vSdXRTh7AJFIDoGq99dZnODKzAw=; b=GG98NMr3eEDehHYql7tom/5BL8iJQyXKdmzOYy0hKNjCvRhptQI8Z81BXYCr14xaTN65 BJXPuJi9hkKIxVZaOz9XsN61cNfkr+kjkaw+Uhz6WRwOsrNj68MGEMzuhA+xtcMrWAn5W bXiSFnBE5B1l2bjoNrDwGr/9DGnZaZ6m2LY06y60hPZt1zX8/f/J9i0LycDH9rCvpcqkl KALX96D9UKiXeVUgSBo0W6bwEuKCOrYNP+szCKSldyZsIygPsAnQZaU+ANqsD3yxHKqQ8 S1YexS8wzED5TbSvtC6gfbJ5EVRg07/uXwr5F/8LHgghI9P7iOhCMUCg42T7exSl6TA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fMZoomjd; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A532606A31C; Sun, 29 Nov 2026 12:31:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fMZoomjd Received: by smtp.kernel.org (Postfix) with ESMTPSA id 205A11F00896; Sun, 29 Nov 2026 12:31:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795955489; bh=6GeEDrrJ/qOQAY5/vSdXRTh7AJFIDoGq99dZnODKzAw=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=fMZoomjdLTlu6t3eXkhkRwf+bwgb/M8koHnV4wjQbxzQ9cQhD0hG/8VtmkhwkzQEX konORT+cdFcM6+0yrx7dXVaLCRlmOcdEWMmI68DtBY0dBa7IpltNw3W4/I/qzZKoqt 7pfF+XH7Q70v8xLoW5SUmC8+m5JqAHlpbVwRRnNLZ5NEVAmjlOmtG0N2FIaxvc2hnq OsI8Emnd2Hu1S/1kptnI2xU/lKZBNXWymQu4kFD9plof0h9aD9bVj+JgDczY7Y4QKJ TEPCZAkdLJSQ7m9wa6EiUeaEIZ5nn7HCjB+WX3tMDvqVNSAOOg3bxvBTTkgccdRhd3 6bCpiVJEFI5UA== From: Leon Romanovsky To: Jason Gunthorpe , Edward Srouji Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Akiva Goldberger , Michael Gur In-Reply-To: <20261128-mlx5-sd-prep-v2-0-751878123711@nvidia.com> References: <20261128-mlx5-sd-prep-v2-0-751878123711@nvidia.com> Subject: Re: [PATCH rdma-next v2 00/11] RDMA/mlx5: Preparation for SD support Message-Id: <179595548593.1476292.12697977062439372489.b4-ty@kernel.org> Date: Sun, 29 Nov 2026 14:31:25 +0200 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.15-dev-3ae27 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