Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp22616lqo; Tue, 7 May 2024 10:57:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVV8wHPgMUG1UCwCpjRTO98c5BtIlCba+1muXA1LhBQb5WDiOOGzf7vvxkTo6S6b7NSGQbovIuUyHST1vqnRBYPh5x05BhepgNxkUGqxg== X-Google-Smtp-Source: AGHT+IFDu//Hr45xK4OUFL9lO9typGT9IvrM+/TCdgV5O5OJ/zpqgLu3ciuEMq4qTPuZiiZeOqFB X-Received: by 2002:a50:9e68:0:b0:56d:c722:93a3 with SMTP id 4fb4d7f45d1cf-5731d9db11emr362795a12.21.1715104653312; Tue, 07 May 2024 10:57:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715104653; cv=pass; d=google.com; s=arc-20160816; b=avwWbm6ag5AWwkBFIL6GJyYcoX6D6zPjyFjIbQEhHSB0NIjehrxJmmNq/zN9MVnybB lipAKJ9lhUHQQ5wzO6teLVarrsHAxSNYolCWePHbnZEL206621SzXvXrlDoUiumYFpTQ qttlmplFYDVZbopYuBxRYp4ADQ+0U4R4SKtkynsTp7+bH2OgAXnzkDCZI/mbCMqDOX9m KIVu8FlIHWYzX7aqjl4V+CV4vegGRuj63MJypaVq6QKNuhns6JKGvzmJHddyV+jSP2bh DimFUl1hK2ta0lRDAZnYqTrp0Asn2ahmIYY7UGcAO7WWMh2tS/oSNxPkJzNib4M0QUyo 1Cdg== 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=Wu9WbbBrtYOSeavstfMRlNJlMm/0/4MuzUdv+q+e+RU=; fh=PN4TWYsxDG/Xthfj+tqdBplLU5tE60W3SaHEQ4SLjvY=; b=zWo/JwcfhL3b8HJtkFj25RZHils5vQ2QMI7vnJzAJ6qAEFhx3G9/Vq7Cx85jfW81Dx bqNGlfwooj6uE2b35xIrvzFKXxy0VLdyJAYkEFOgxsbkHAKi54W8A4FXt/BBRjDUd6/m d7fYLMV7tCF/3HrexchRNYqCPigeiIkUWykbmcJLDGXcwAiA9ocO5KWy+wcPKdSy9NRv eebX4WqMGRbwt66/pRgzzjG1OL3KlAB+RKFLrN22zFP9SLcp1eeQc+nScg3J+7H3wKRj Ag5KUgHGGSyoreo8FGF0O8jxBAobjEEOhs2byIGj/QqK98lXcAX/YKtcApb7FJgN/wYe u3vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=lIpXG8KP; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-171938-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171938-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r13-20020a056402234d00b00572cf91d5ddsi5583519eda.99.2024.05.07.10.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 10:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171938-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=lIpXG8KP; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-171938-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171938-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 89AC61F23173 for ; Tue, 7 May 2024 17:57:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0ABC16D329; Tue, 7 May 2024 17:56:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="lIpXG8KP" Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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 378B616C84E for ; Tue, 7 May 2024 17:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715104608; cv=none; b=EToaXrQglby2iKRYckFEqaOdBEUsHG7sZekZhx9BS3n7fdQIeu6rjp1DrXUH+5qJjXEak8GGae65RyttqJyehoztx9o4rUcK0wsN+CxSfdE817NaAlfFtG4b30mHp8RtVl5gSLMlOsJUwoMlHddaSc/Tjo5RfuReIImqNRRQxRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715104608; c=relaxed/simple; bh=2WVuSd42XVbejvGzvbE/XdmU6u71Lu82dpSc5WCFvqQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c5t7JwkK3F4dpKelvzPAePt1ZIt8An/QNx0gg1NW5FRA7ncS0JkZ+Ulj5/3bRll39eVP2wYFRANO7N0IX7uQm6w/oEO21y40Uh3jYE18n4fDSR7OMOkgvYAs3ktYC3urFSUAsSwHPepBdiegqlCS/rnNDOgIGQ/ZfOidOA7+Vsw= 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=lIpXG8KP; arc=none smtp.client-ip=209.85.222.179 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-qk1-f179.google.com with SMTP id af79cd13be357-7928c54e945so284683785a.2 for ; Tue, 07 May 2024 10:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1715104606; x=1715709406; 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=Wu9WbbBrtYOSeavstfMRlNJlMm/0/4MuzUdv+q+e+RU=; b=lIpXG8KPmCMXpUh7JZ5V/2Srhwf1899y4M6b9Z4m2rUYLhAVXEKRAj2RbS/QyN5GNf 2R8Y4+kgBdJGnCvROMTlZNIII1WTss+Y5khV/PgrQo+7sFWO045oo8Cqya9djusUOWdw LjZeH6XKCmyZLORSKOBUwlvwrfH4qmIGzYQkzC0FW+KOzcd1qDlIaV378bwVFn5loS4F wqiIsJ0r9R80fgWfGYfaMSewGq3VGJUQqs2m7pEBn1QuVVPuWPc+JHx7ApEjyrIF6254 hWGm76/BZ+9Oo3kYlmqV0lfJs1bxJo0/Ebfpx75oRZa2ZnfSRTfebpn97TzpAwwECN+Z +lTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715104606; x=1715709406; 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=Wu9WbbBrtYOSeavstfMRlNJlMm/0/4MuzUdv+q+e+RU=; b=uNX/tUDrhufzzMYzPl0RknOpEiXaCBF1N9h0DMpNV2M5G27Av/0kYire0NSa4kMKFu 7QmcFGFciQD6eCF3Mt+ihFj2QCTLbrshhljxBJ5ueDHsVcU+kjOmMuhyp+Ai2M32rmnC 0ehJNe7EwPr/TAdK3qJKRr+AaN+wJhKOQtdbvws4RnQGfY1XEu8bhX5DKLggSrgAAxRn TGj3JkBEFkUrRzKfCK8nxTZlFKPBngv7YU/e1kBmz3Og6B0307luDpLNPqsV03Vmj0+r is5wmrWiZuraRVSXZYawXCisdGRmp9JCtMJKOs4K3thAj1pgRFBoVlcZqPn5GGrtk0zV RxMg== X-Forwarded-Encrypted: i=1; AJvYcCUx1kU698zxm78SxM+Kb6csXlzhzvc3dYx+eBuXopM4p7B2jtdyFxBAmrP+3eisfQx5A0tCvYc68Fp1LRpyEtvFRYTitVK96+XeWov0 X-Gm-Message-State: AOJu0Yze66ladGWIz1gpLAajg7XFglnScJWRXJPFV+vysQA8nM3lW51c qAvPQIco6pxckZTvWgBfigLlOElzaqS+jr9341c3L+jedDCG40kTlLW1guB4LXs= X-Received: by 2002:a05:620a:5a4b:b0:790:7345:2791 with SMTP id af79cd13be357-792b274eabbmr46464985a.56.1715104606118; Tue, 07 May 2024 10:56:46 -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 bm34-20020a05620a19a200b0078ec3aa9cc7sm5127446qkb.25.2024.05.07.10.56.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 10:56:45 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1s4P3U-00022m-Vn; Tue, 07 May 2024 14:56:44 -0300 Date: Tue, 7 May 2024 14:56:44 -0300 From: Jason Gunthorpe To: Pavel Begunkov Cc: 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 , 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 =?utf-8?B?S8O2bmln?= , 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: <20240507175644.GJ4718@ziepe.ca> References: <20240403002053.2376017-3-almasrymina@google.com> <20b1c2d9-0b37-414c-b348-89684c0c0998@gmail.com> <20240507161857.GA4718@ziepe.ca> <20240507164838.GG4718@ziepe.ca> <0d5da361-cc7b-46e9-a635-9a7a4c208444@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: <0d5da361-cc7b-46e9-a635-9a7a4c208444@gmail.com> On Tue, May 07, 2024 at 06:25:52PM +0100, Pavel Begunkov wrote: > On 5/7/24 17:48, Jason Gunthorpe wrote: > > On Tue, May 07, 2024 at 09:42:05AM -0700, Mina Almasry wrote: > > > > > 1. Align with devmem TCP to use udmabuf for your io_uring memory. I > > > think in the past you said it's a uapi you don't link but in the face > > > of this pushback you may want to reconsider. > > > > dmabuf does not force a uapi, you can acquire your pages however you > > want and wrap them up in a dmabuf. No uapi at all. > > > > The point is that dmabuf already provides ops that do basically what > > is needed here. We don't need ops calling ops just because dmabuf's > > ops are not understsood or not perfect. Fixup dmabuf. > > Those ops, for example, are used to efficiently return used buffers > back to the kernel, which is uapi, I don't see how dmabuf can be > fixed up to cover it. Sure, but that doesn't mean you can't use dma buf for the other parts of the flow. The per-page lifetime is a different topic than the refcounting and access of the entire bulk of memory. Jason