From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796374407; b=BVvAyV7E5xUQXj2SXik7PZO5RTiQ1Krd1f4gkw8OfJ3AzmDi3egYdgXqWnKLEbPtrAGh eYNnzkS+UJeY7j6T8bdawgqQ3BuhEfAVHYT/q0yq5rUlaKMY9T0Ndxv41DtAFgsWaS87h tDJY8cJnzlImGjKyXpBanOT5CtgZ8KR+Mhf3AkTTA1sYa8vvjK3DPeJmCEPWCJmKfAuA7 i7XuTEV0Nj5Bh/bsD/0OpBsvBX2DGP0KIrJwIjIvGWa0VUPZw0NtxloTqghLYqfTJ/jcD qTSKym6c1zPtOJiCCwyW/pJa3jpqiDnwzAFsB49GHb2YHka7VinROxhTwZssTzJaNgA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374407; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=st69OahZSj01pJPSq/gnJLbEicFAGos5obEyI0lTNZQ=; b=a3tO9o0C3O0E29QOnJsIdgAxOatIfiep/Zb564arWdrZ5dPWXfjk52T+hjZyE4D6/1Xn v/ziYHX4+zi5OCYNLXeWRODTCynAh56GaAuczJM6cQEnnJAbIVQZJI7nCsA6RD5DxY+hj hUsto1iMY9VGzVCe8iDdm0YmWZD+O6TU5qhBxEuXZBuF6ssD3kzbOeT7y00j8JvXjyrh3 iLWhxUAaYM+i/5m7z9EDd51s6YmwgTRW4BRnJVKm0h28v3B2vPgTEmKCOxe5WkzxuIQmx BzuZGsqRu4e2zOKfHiaLC13TWtOGWBEZp/lzx1kAhvZ1ViRMMopovVuNBY6ikhXQJqg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=resnulli.us; spf=pass smtp.mailfrom=resnulli.us; dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=g+8Busai; arc=none smtp.remote-ip=209.85.221.51 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87534606A32C for ; Fri, 4 Dec 2026 08:53:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 87534606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=g+8Busai Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-4ac109a8a12so393385f8f.3 for ; Fri, 04 Dec 2026 00:53:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1796374405; x=1796979205; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=st69OahZSj01pJPSq/gnJLbEicFAGos5obEyI0lTNZQ=; b=g+8Busai8Chh8nBAiyQfCPRm0i7ou1GCfUmd1ZaLnNr3R1kua6Uy2LGiZdQFFwjUgf 3lJkzVWGJS1Wb49aAX6ZyJDQJThATRPUufud6XC31UySvv2eUZunRpS/VRG1YqY+STTS 6eLS8ZcS6X5zDXztFj+EFCwaJJktpqcSO2fPUTCRQ1o3A3JfZqzcVZ3SPD4bW6/zn/zi zX/vlkTNmiqI/xyClKKHa4ayEMryqoIQJ0JD/mAVBZJ2U5B9z+DMvXoqDA4TzeP4XR7g EBwOkEjPZYMIbNnvD24OXB8JQUa8urzRQ+oBoDEjxAeG4efWfj3CWV+ZXmp7G+vvk8eg jgtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796374405; x=1796979205; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=st69OahZSj01pJPSq/gnJLbEicFAGos5obEyI0lTNZQ=; b=SbxPepR6ekfDEs2/Qhn9vM2G2nLn5+DUIdqoW346bv/UXxWyBkd6O1XmJ2jZKFhhRz qOjH8XaTRqNcsM5EU+4RsvlmoIo+w38uZveimMP8j7o+kI9vJ42NinrQDWDEWFFwORXY VMtJ+Q+5WT271Urz/DHr30e6sadkcuYkI/RM0jmlaKjh8zXBzr/1w1+miPxC38UlxWQl lnzF3Pv0LcIUIYQ3Dw65/yfeHiDp1RjHnxvM2OQ2buIJaLRvNw6PXAXKLQXD5xYGHg02 hDcl1ZscYbqV0a4p0fNIzuHjhE9jkdkgk99P0xADBqtI+FGpXAfSWykHu7Rqi7KIosq1 rq2w== X-Forwarded-Encrypted: i=1; AL+hErEoIAKfclfbdElmUzqGuTosOgUjiBAKwEvw97y9VwEcJf/PS/dcYKk3B8VddX6KYTlJmxQknAUxN1ez8wk=@vger.kernel.org X-Gm-Message-State: APuU4Z/1Zj70COO0BqKytdycJ5s5kuSnJ2v+z4Z276rjmHXSwKqeLeMc U6e2WBZ+r8PnjaGthcgHSxblzQBeuZOIpSygI+4XXFE0pzd+UdhU2W8sqDMg/zxTRQw= X-Gm-Gg: AZFdTZfHqkczcX3/EzCMH1OyNcraQN/Z1It78by3aOlPBakFe4gM2fh7PyS0c2GIXFJ /8bzwnGoBUVJiJNeed48Di9jplDq+WU/T1+CP4iU3Q0KYXitAK+Y6FcDcWhKZrZEucIbch/xf9B yVEsNzPzhzwSZsYrsHtA9RuN9hhelCVNDlEuqiHzQibaAnZCA4ilem5ypm6ysvRnmfC2usjwSNu hYL3bODp2PQYMsTRY9hdmTJdnAej77yYWfF8ZiC/Nu2lZpfH762bjPjdYK2YokezmI0toMcpjJn JeZqrY0T8oFHq1sa4CncdPYDiqKWMNOhqNfKB64eOR7xVXhLAcOfvFKABSxKeQtjxNy/vPBkHSE i5XhjfnwmawvQSoRZdOdHu+xRlbPkrH+M4g1FOJyZqKn0jel9Bz25gxC9uiIoVBPt1JEL3Tk89y KXN5bLnSyKFtQMVHLep8Zoj0VRxEQYFjH2EXZACHLeh8pmmY0nom56XShtTKUSuoD8iZmLA8Jsy tv090epE8Hoh0uZW086ILe5Bg08WRsZB41SKR5TeLe4V/3LZj4D9yNR26OKjqDwVj1OzGFWyy2X kyxeGN6/g/d9M/7lIjSljwclXkzgJc06WjIzy/I= X-Received: by 2002:a05:600c:4fd3:b0:4bb:b796:66f8 with SMTP id 5b1f17b1804b1-4bbeb8bd6ddmr22867595e9.21.1796374404478; Fri, 04 Dec 2026 00:53:24 -0800 (PST) Received: from localhost ([140.209.217.211]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbea297f3fsm35554835e9.1.2026.12.04.00.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 00:53:23 -0800 (PST) Date: Fri, 4 Dec 2026 09:53:19 +0100 From: Jiri Pirko To: Abhijit Gangurde Cc: jgg@ziepe.ca, leon@kernel.org, allen.hubbe@amd.com, nikhil.agarwal@amd.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [for-next v4 0/4] RDMA/ionic: Accept CQ, SQ, and RQ rings as umem attributes Message-ID: References: <20261203110805.2577721-1-abhijit.gangurde@amd.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20261203110805.2577721-1-abhijit.gangurde@amd.com> Thu, Dec 03, 2026 at 12:08:01PM +0100, abhijit.gangurde@amd.com 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@amd.com/ >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@amd.com/ >v1: > - https://lore.kernel.org/linux-rdma/20261118152313.113714-1-abhijit.gangurde@amd.com/ > >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