Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp145129lqo; Tue, 7 May 2024 15:22:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3S4YIu7qtXSrHv6YCACxJjl0CxspFyQ5FF5xiXWsvTZQuzN6/O64VUkTbPrj7Rt6t0yImr0dIIUKTmTe0nEPtzgKK7lHhq4WOO96z8w== X-Google-Smtp-Source: AGHT+IHHhR9gX9ROJdUhwywpynbQqo67+YODIYh1pl3Qx0gAHHly1ZtvFJBA8cY4yxttHmokTrcG X-Received: by 2002:ac8:7c54:0:b0:43a:c4e8:cb8c with SMTP id d75a77b69052e-43dbf74f3a4mr10613211cf.64.1715120529025; Tue, 07 May 2024 15:22:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715120529; cv=pass; d=google.com; s=arc-20160816; b=nKm2I+RkO5gK9r7VCFCRU2A/c39CW6Q93WSJKcpSfWxSlLv79drSJqpL0QANiqDNoS 84Zn3pFNXkY8wtSg1Ao29zpMXHnf1RpPl68JkHM8Luz841dPmaaV3UHPjho8CAayvDQS nOSKqrqaIeC9azKFWMCfUVq1B5bowYUEJwFThKoSIVBVkNkP0EMPDTHGoKBofLYxBE/N uvWe5DsS17UoXT4geNf6OaqI+dIDfUTw5syO9gzorULH2e8k4CVr44gU086rGhMFYkND BQZ62szSF73P6DqtVMIdt4ZcLbx8yp5/NF5PYuWu0jKx/j6KQUg1XCK431cpo7a3AWGj SNQg== 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=9ZGPfTdan4SS+4ZqtuNbHy8+y0rZ9H+66WTt20JNjQs=; fh=a5TebWgNCiPql3Jiz3gXonx7lUOVWVDdLDG0CJFfbIE=; b=g/otpkJVXn0qwf3g9I5HYY2ZZGiE6eILRF+Twt9Ix2b8aKBj8RsWGkbrGwk0tIP9hk xNPTuxTej0WVauP5f0igACcOI3SzRzZ5W42HKLkHGUd/h9STChxVny98nCYEVduUDvXb rds3Rq2NJgK9PGInqooYoeB6kjh67ditxduFM9Hx01yssElyOAqHcENX620ScqiqDG35 DXEjzJCqs50RTG7MFfqx+wKOVesUpOkVxyT2MnRO/2hXU11Dpccbsvu7pueUw2PSQPi/ bReHWOGtruXTCROYHAEt7chl7WEJu2Jq65ob/lm6QHtHeNXY+DnNfl9+VtEXuXqzx62l Epfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NPO5U6GK; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-171790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171790-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d12-20020ac85d8c000000b0043492d175d3si12814279qtx.439.2024.05.07.15.22.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 15:22:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NPO5U6GK; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-171790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171790-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B9B561C221B9 for ; Tue, 7 May 2024 16:24:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DD9F16C6A8; Tue, 7 May 2024 16:23:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="NPO5U6GK" 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 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-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: <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.