Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp315596lqp; Mon, 10 Jun 2024 05:18:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQVZoOSdHiNQwrua8ZP68aUzSqQCUL9o9H69c9RV3gqE1GSWhl/eYKnHFvsOrIs3mwScVbHmaAPYvbrld2+6/2R+3LhpZ/tx04LsXqUQ== X-Google-Smtp-Source: AGHT+IEkEyPhfFF5n7lPGY606fSt09M9pTfHrgNFlWN3lE/ZZC0NIUIRgpqFdKJWI2/DktWUNpon X-Received: by 2002:a17:902:e84f:b0:1f7:12c9:943f with SMTP id d9443c01a7336-1f712c99672mr31785425ad.61.1718021892423; Mon, 10 Jun 2024 05:18:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718021892; cv=pass; d=google.com; s=arc-20160816; b=S6OujAiQLdSpZ9KaYowOt3woTKprJfVKH+gK+B2OptDxO8MYd+3EV5kQncw8/aDJxY IE741Ukdf7pf/YwFbv1xL2Lhm3MGoLSSedVya6239AQjhpp9cVpymZBiptONXM8GIqLJ dhkRGQceT+i+zYG2LIdBgTbpyb9/7CyKxH+RTfTruNzVLh2fFBHExY2SAYHAmpulJ/bm 2zF5+8QGTyt9f8eLeM4I1jM5h4uWttUtloibJ8goTnPKMY8Ag8Q2Wnmi9T++QMRt/F02 KIhuK6Zim49n+ZLxgNHy8xermZdEN6e0r3RZApJQ4PqCYlte70fKM1tNp4AI3Ab7hGVW CVSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sLBhiGTWQPkGSzXF44ZdseZQqm/Ay7CrbOb4xYeFmxw=; fh=x5b0i5K49OBD2ft1ZtHYwsCLI5drEtylLnaEiEoyN3k=; b=XmJ7qxtkseEgUOMv1TwTV5x3KsEQvdr1F5Da69SRmFKj88VWxoaekPEXE6aBO43rm/ TBlV3rNHPbuuBzEPE0v426lUlGUYsaMpqaKGKMbze70sQU3McBFCx1VJmp9NwCEVUENP FSAe8TvsPNFIP4lyzAgmukp6FeehHb1NXZF9qXpvkJvDKLsaOmOMx2TiLwg7J0Uhvcb4 3z6VQoeAnkq3efprRSI2+p6Dvo1z8lYKpRn+9b85de8Bj/UotOXchQ9XnhUOr1LCPEL3 7IkjCM1Nqp/ONrQ/rcPAZiQ59m2IT5D0hyPW2xYkx5hyFFEVoE8e8oB7BmHP8G9mIi7/ IoJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=fqDNmK54; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-208141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208141-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6f298108asi38003455ad.404.2024.06.10.05.18.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=fqDNmK54; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-208141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208141-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C7491281A32 for ; Mon, 10 Jun 2024 12:16:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEC1E80604; Mon, 10 Jun 2024 12:16:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="fqDNmK54" Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 672637F499 for ; Mon, 10 Jun 2024 12:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718021792; cv=none; b=YTtMwl78PrUAF3pD1DOLOzTYCWbE1Jlt6238z59nsqiXEstZiaxj2z6TL3EdDck3yZyOoC8/3KHBgIFxwYVjWLKT0fRRlF1vht1DCySTAGrurKxJuQ67XAyBZegrnhhyv3RtdaVTPogC1iPu7L++1+AJtNUCNJCsXze+vyFAZqU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718021792; c=relaxed/simple; bh=wqKQas949IIXrsipBtEwY28UkuazUZ16a21oKmwHiv8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Gdv5uLUoVSvbuS1s3otV9TvccTmDzKLftmARLxNXpRvs3QGm6J3p81kVIwYM/m7SwbzEEF4VfXou7lga4SVM8s61quujuhRqslvXrtA9S+JVLFqMWvbbWrVoTKS5eD6g6+vbzVSNFOrIPXKbSpVcJ1oezdPfUFIhCiKWzAI1OIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=fqDNmK54; arc=none smtp.client-ip=209.85.128.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-627f3265898so44560097b3.3 for ; Mon, 10 Jun 2024 05:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1718021788; x=1718626588; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=sLBhiGTWQPkGSzXF44ZdseZQqm/Ay7CrbOb4xYeFmxw=; b=fqDNmK54kqBa6EQtJoGnldfHFauQ6kcsHN8jJRtx3a3rll3Um/eyPaj3jVHFB+tyw7 oWllKFUvqeIWDHF887kAzWvvU2KdZlizeuujfZw56cW3rHyG0oOcnpydIhz7FnSl+hXL U1KjenD06DybeKg4nnOats3t12CBNccFG6N8XmD8XbhnL0U0M5o2hd2PsPLpd5/9lTX1 NjMsJx1Nc/2JFedHyuBzS1TuVPQ0pno023UGN7oqWLiAo0tvFSQm4VVsGEzDH5kI2kIh JYXjXf1y56GIE8lsAofXPKrSTQcUoBAoqT3pE/mAb6WpQ96S6WM6PKQTPTnkDqCnPnsn 7TJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718021788; x=1718626588; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sLBhiGTWQPkGSzXF44ZdseZQqm/Ay7CrbOb4xYeFmxw=; b=HM6m6A4gB7cJRMObP1lPDP7Mx4MQ/Qucola8x4LXj23QtmojMFT7rbs0WrCsL2VMT9 rkAWCeKLmegkNGBfoIA+vZY9tDM9wNM2QqZzOxW6y71gRSptsvcEep/TAYr0xbR6HMUe hUcf6rif88EhyTihI1KHKi+mww0ficqda0GEb/WJa0w1v2lRYWSUtOmbe1s92GwzTxbj ZOGSBq9QP8GmSH74OLpgRSIHBntaV8OiEz8dJBIdfd18bgPo+GmaL7cdjNLr+17VKZeu ZqJgKw6vU1uVEXhAzL7PQVoq+b5GEIjQOPlIAoNKbMD8GwU7EgiwnSjKiu8n0Gi5Xgza pAIg== X-Forwarded-Encrypted: i=1; AJvYcCVkdF6G9ImXVYSHpBJz4JnhcHj9dgMm/xqi5+jehUo1tDLR1oGjE0oH7TtpF/fC60DnlR67Ma2Yef2e2s5iQtBP+Xf2H4mOHCIHgEoC X-Gm-Message-State: AOJu0YzjyGpXQra60a2GtbIwZF6WWqrqyYa6/mrX18uOPH9vKRE7sDsC 15hbfclwbLJurVTXac7GsJH4uvGv9Y92RO1jvV7VkDijhgHp6U8dAIa4itcS9EM= X-Received: by 2002:a81:6fd5:0:b0:627:dca5:407b with SMTP id 00721157ae682-62cd55c0a56mr87073917b3.13.1718021786857; Mon, 10 Jun 2024 05:16:26 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b04f6213dfsm45360126d6.23.2024.06.10.05.16.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:16:26 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sGdwn-00Di9E-NN; Mon, 10 Jun 2024 09:16:25 -0300 Date: Mon, 10 Jun 2024 09:16:25 -0300 From: Jason Gunthorpe To: Pavel Begunkov Cc: David Wei , David Ahern , Mina Almasry , Christoph Hellwig , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Donald Hunter , Jonathan Corbet , Richard Henderson , Ivan Kokshaysky , Matt Turner , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Andreas Larsson , Jesper Dangaard Brouer , Ilias Apalodimas , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Arnd Bergmann , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Steffen Klassert , Herbert Xu , Willem de Bruijn , Shuah Khan , Sumit Semwal , Christian =?utf-8?B?S8O2bmln?= , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi Subject: Re: [PATCH net-next v10 02/14] net: page_pool: create hooks for custom page providers Message-ID: <20240610121625.GI791043@ziepe.ca> References: <20240530201616.1316526-3-almasrymina@google.com> <5aee4bba-ca65-443c-bd78-e5599b814a13@gmail.com> <20240607145247.GG791043@ziepe.ca> <45803740-442c-4298-b47e-2d87ae5a6012@davidwei.uk> <54975459-7a5a-46ff-a9ae-dc16ceffbab4@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54975459-7a5a-46ff-a9ae-dc16ceffbab4@gmail.com> On Mon, Jun 10, 2024 at 02:07:01AM +0100, Pavel Begunkov wrote: > On 6/10/24 01:37, David Wei wrote: > > On 2024-06-07 17:52, Jason Gunthorpe wrote: > > > IMHO it seems to compose poorly if you can only use the io_uring > > > lifecycle model with io_uring registered memory, and not with DMABUF > > > memory registered through Mina's mechanism. > > > > By this, do you mean io_uring must be exclusively used to use this > > feature? > > > > And you'd rather see the two decoupled, so userspace can register w/ say > > dmabuf then pass it to io_uring? > > Personally, I have no clue what Jason means. You can just as > well say that it's poorly composable that write(2) to a disk > cannot post a completion into a XDP ring, or a netlink socket, > or io_uring's main completion queue, or name any other API. There is no reason you shouldn't be able to use your fast io_uring completion and lifecycle flow with DMABUF backed memory. Those are not widly different things and there is good reason they should work together. Pretending they are totally different just because two different people wrote them is a very siloed view. > The devmem TCP callback can implement it in a way feasible to > the project, but it cannot directly post events to an unrelated > API like io_uring. And devmem attaches buffers to a socket, > for which a ring for returning buffers might even be a nuisance. If you can't compose your io_uring completion mechanism with a DMABUF provided backing store then I think it needs more work. Jason