From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2CDF16190C; Tue, 7 May 2024 16:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099020; cv=none; b=sW/pijWnzCQG7TT/CGRaV5Ni3bdkjXqetW8OYvKx72ZRGbgkzMoP+a90eOKvFpYqIJ4TOZrSFwPv7R0Zz/us4bGLNfoQUUyQpY93O09/iRAepCGKD3Ef7YVzGl45mbXXJ7DS35vhIjwe7mXKB1iYMfE9/SjLQcRU7fyfuwrA1f0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099020; c=relaxed/simple; bh=sICSKR4sFxBRTS8fMbI24kMi7WOESTgwIxI/pjRz6RA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dimAeDMD0cymByiTW2hpgALfYzeBjixlQojIcOI1wnfFApf46aXXJPAXNvcwCnkR4TGo3oxs/8mf9kf3Qbb3PgmBvV7TxtiBM/n5H/5IW7G4xwEvM6W15HeDh4s/T1mUd2zm4ZGJY1Ln/gZdzlstIDQg7jhzDtYzgLz39XRoIW8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=NPO5U6GK; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="NPO5U6GK" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=9ZGPfTdan4SS+4ZqtuNbHy8+y0rZ9H+66WTt20JNjQs=; b=NPO5U6GK2q3dfQUyRTyQXqAGgH LGUK/hAb76lktkBzelyqJGwON6iMTBOU1vvWdDaTNOhmFARfkkqacM4MZDbqhRsWrBhSZpSyr31j9 rnVGX81fJONencRuYxgy+gUvbk1td5AzatkIzpJxDkxuiscwEYo4N8oulnlN3cr20Fl4kQnWn2K4k vjyFKv8Dc0Ou5Y9Y3e0F1DNHN/9KNoiDvDBIerRYEo2cJVEyuYWDlEh28P+vypg9oxferkrSnhyY6 3+nORlS9afkibvueuiKevoyWIqBuhO8oO3H0okR3ZSHhuKfdam4neoUQLJz24jynmeVmuxYct436W ZCZdRZ5A==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4NbA-0000000BwdT-3BjL; Tue, 07 May 2024 16:23:24 +0000 Date: Tue, 7 May 2024 09:23:24 -0700 From: Christoph Hellwig To: Jason Gunthorpe Cc: Pavel Begunkov , Christoph Hellwig , Mina Almasry , 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 , 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 , David Ahern , Willem de Bruijn , Shuah Khan , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Amritha Nambiar , Maciej Fijalkowski , Alexander Mikhalitsyn , Kaiyuan Zhang , Christian Brauner , Simon Horman , David Howells , Florian Westphal , Yunsheng Lin , Kuniyuki Iwashima , Jens Axboe , Arseniy Krasnov , Aleksander Lobakin , Michael Lass , Jiri Pirko , Sebastian Andrzej Siewior , Lorenzo Bianconi , Richard Gobert , Sridhar Samudrala , Xuan Zhuo , Johannes Berg , Abel Wu , Breno Leitao , David Wei , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi Subject: Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers Message-ID: References: <20240403002053.2376017-1-almasrymina@google.com> <20240403002053.2376017-3-almasrymina@google.com> <20b1c2d9-0b37-414c-b348-89684c0c0998@gmail.com> <20240507161857.GA4718@ziepe.ca> Precedence: bulk X-Mailing-List: linux-arch@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: <20240507161857.GA4718@ziepe.ca> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Tue, May 07, 2024 at 01:18:57PM -0300, Jason Gunthorpe wrote: > On Tue, May 07, 2024 at 05:05:12PM +0100, Pavel Begunkov wrote: > > > even in tree if you give them enough rope, and they should not have > > > that rope when the only sensible options are page/folio based kernel > > > memory (incuding large/huge folios) and dmabuf. > > > > I believe there is at least one deep confusion here, considering you > > previously mentioned Keith's pre-mapping patches. The "hooks" are not > > that about in what format you pass memory, it's arguably the least > > interesting part for page pool, more or less it'd circulate whatever > > is given. It's more of how to have a better control over buffer lifetime > > and implement a buffer pool passing data to users and empty buffers > > back. > > Isn't that more or less exactly what dmabuf is? Why do you need > another almost dma-buf thing for another project? That's the exact point I've been making since the last round of the series. We don't need to reinvent dmabuf poorly in every subsystem, but instead fix the odd parts in it and make it suitable for everyone.