Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp125657lqm; Mon, 10 Jun 2024 15:15:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHPt6+DbYCMEB3L0FV73zGMzY+RbJNIVJXEny0ChwBQ1DCrDwmrn+npx7O7cvJrKb9kc6Or0e84twTHh+hyLqxAx28DMUu86gJojW3AA== X-Google-Smtp-Source: AGHT+IEYt0ZzOnp0pWQsbTOFvugeX43SBWb+G9vbJdLXdhs3PA4ErtVklaDNpHPE/+64AgHjWC9d X-Received: by 2002:a05:6808:1798:b0:3d2:27b3:76ba with SMTP id 5614622812f47-3d227b37827mr5541835b6e.4.1718057743986; Mon, 10 Jun 2024 15:15:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718057743; cv=pass; d=google.com; s=arc-20160816; b=KTaXurUodzj54b+d5t1b0JNYwF/OaiWU4zijwjqgznDbDXFMsnsftl1Ri2w+EszW++ yKDZ5R+t3AOmOHZfvUxDa6IDrudxvUxT7HP8YiMp/1INat2R8NlpQjsa8FbxVZ1QtpGt coR2iz0U61wPdRY9naNrY7T6x7OcKbuFfW6IcVDAVPrwYPukTZe/FyKyfQd7b7vrKTuB ZV5hMDSBURwgTOllpRa9KrabstPlbJKSyCn/uzbqqDKrSxvVsqbfinZWMXEx1q1soyqK alvX9niq9jLWpFFny15UaOMgwQJAcdmEg8W6CmG8Cj4rlBWeCbalggYqBLSxtJAFW+Gt 9LHA== 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=fYxIeKtLL3lQwNiFRr25O1e9GIX4G5slG5d4Uc4G46M=; fh=CKFltJd7tKmKVs/uL/pZDsQg6V5WDs2MdUYupKxj27E=; b=g61AEI13TVY1jvPXfV02Nv5I58Nh6L0SIncrKuldDjWgBaR2zPA9BWBET1Suvqjkbb P98d0DlUMcUpdUzgLXI8mjCD1lhvpCQ927e+9UyIfEh2djYmjJuLQNBK6iVVwU/QE64V gMydtaosN1L/DIzYeptw/lJwU09j/WwBO+vJKn2AAlONtSQugvUnuMRKWWOkFAcgTIZw UfayLGGxdA6Hm7AK58Xrtn3ghI235GxHK+z+eEpF7H7JxH4OBECE+YIJnmWOSXt6VVf3 irNXNuAGFZz1sDh7y4R2VF/5vRzHEYxkt+XPm6qrcKFNC8XdP1SCx8GMHFMhuf64Hcs2 YvvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=DV1B8yAB; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-208985-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208985-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-440628a5d5esi47364281cf.498.2024.06.10.15.15.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 15:15:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208985-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=DV1B8yAB; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-208985-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208985-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 9D1931C2207D for ; Mon, 10 Jun 2024 22:15:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F1011514F8; Mon, 10 Jun 2024 22:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="DV1B8yAB" Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.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 4C6301509AE for ; Mon, 10 Jun 2024 22:15:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718057708; cv=none; b=OvvPXfRsOl/VPXYsUJo+BhB4SKT6Okxe8NraIm8GLeHwLy2TjNyP2saM29uExXzLKDhL+XhdzEL1bgU6FKw3I7rVQ4jWIyUJtH6NemYkqlhrHtaE/mcFuWR9YvVvqZlikm2lytFtjeTZfqgftNQyh5y+65bKrQglwiAsZH9rMT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718057708; c=relaxed/simple; bh=z+wd9sAGfEDNr43zUFts3rXiT7ShOZVNnrA/+9o7y3k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HK7nMcbau4K8/BqZMMv2K4vKmKIuYZncM5+yCprvrqvEDMrCvEeFF2d5q3wF+fJApYOiLrSvTkh7DfzYBZqTEvV/iHNVF17dIMhn+j702X7JDnSqFuPYbMvLdxHZz2cWelhUBzuyzPCquTc4P0ficI/v6/603hEQ7DRRCmNxDbM= 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=DV1B8yAB; arc=none smtp.client-ip=209.85.160.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-qt1-f182.google.com with SMTP id d75a77b69052e-440f035214eso8469791cf.2 for ; Mon, 10 Jun 2024 15:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1718057705; x=1718662505; 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=fYxIeKtLL3lQwNiFRr25O1e9GIX4G5slG5d4Uc4G46M=; b=DV1B8yABKh8zcLUmgBZlPAFY0iTcPLR8YOx7LLCpFjMnV7rXNkaRxAYuvwk3C7PPOH jZB05ZxEeozQlYPvsSKrdHH9XRsHaWMfRgA07nc67PzNRXJVUcgHaMaIwTLkn/0NBaej Y+DkdkBwr03IdCK/sG3d/54s8BvaqhWBnl/jBki+4FuzFDk5MC/R7srQTW0MtfyTEffw S/cazkXqzTrhTNLq77EhsuipjQDoKG+ONrmQBCCYr/YTuVzQ2K1qnCx+gVlmf+ptUByB YHBold4jl4t0CXl3DWfVhfY0nGwvEmmEftLaTtJM4KO8eLCbZeisPO65pggAcwOIB0GE jnmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718057705; x=1718662505; 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=fYxIeKtLL3lQwNiFRr25O1e9GIX4G5slG5d4Uc4G46M=; b=iJQf68/NtL1dSmDN3dtzXX5i1QkjkyFdqz56SRjJeVomFU07jqaqiIWLFmek572XCw tbEShrKWBx/81IbbEF9A1tLgRgkyUUtd+r7zLSDPQUbKzPTv7hZY3IiUwOmgoc2ysTrZ rY2aduNsB+wR9WDqXVLP7GkVJVOF6dbdJFNqW6eFgsEAG1ZHerOM8UaB+J19vXUDhME8 nHi70exjMn7os/ZGb3OLmeKER9/IOQVsg5kuoyjctmncumiAixZBGxogN3pDQ9/kX1Qu EjqtL05jeSKtftBLjBW4pJS/WPKs+Q626IeQ4HD/eybBsY/qO0aZKvWP9/jVTp1/lTdR Uwmg== X-Forwarded-Encrypted: i=1; AJvYcCXqKiPb5/rRS6UH0ng/q+d5MERxq8IxLR4dCdkUDXIHW4LmyeeSabHHxHYm0+3ERwXaZaPL2uVJeYio5lLuVFhwmpKoQ13hgfPtM91P X-Gm-Message-State: AOJu0YzEg0atolRpiIYkM+Pm5AG5vA8iF+3CBaCbZOWG/A0xwSVkRhl2 M4Z1WXfjWIvkDnnRXNgyU9PET7+dTLtZLUU78CdYrtjkSQPvZn9zFn3hI710mZk= X-Received: by 2002:a05:6214:4a06:b0:6b0:72ef:2877 with SMTP id 6a1803df08f44-6b072ef2a2bmr79573716d6.40.1718057705068; Mon, 10 Jun 2024 15:15:05 -0700 (PDT) Received: from ziepe.ca ([128.77.69.89]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b076a42242sm20947266d6.59.2024.06.10.15.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 15:15:03 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sGnI4-00FsKs-9Z; Mon, 10 Jun 2024 19:15:00 -0300 Date: Mon, 10 Jun 2024 19:15:00 -0300 From: Jason Gunthorpe To: Pavel Begunkov Cc: David Ahern , David Wei , 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: <20240610221500.GN791043@ziepe.ca> References: <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> <20240610121625.GI791043@ziepe.ca> <59443d14-1f1d-42bb-8be3-73e6e4a0b683@kernel.org> <00c67cf0-2bf3-4eaf-b200-ffe00d91593b@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: <00c67cf0-2bf3-4eaf-b200-ffe00d91593b@gmail.com> On Mon, Jun 10, 2024 at 08:20:08PM +0100, Pavel Begunkov wrote: > On 6/10/24 16:16, David Ahern wrote: > > > 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. > > Let's not mix up devmem TCP and dmabuf specifically, as I see it > your question was concerning the latter: "... DMABUF memory registered > through Mina's mechanism". io_uring's zcrx can trivially get dmabuf > support in future, as mentioned it's mostly the setup side. ABI, > buffer workflow and some details is a separate issue, and I don't > see how further integration aside from what we're already sharing > is beneficial, on opposite it'll complicate things. Again, I am talking about composability here, duplicating the DMABUF stuff into io_uring is not composable, it is just duplicating things. It does not match the view that there should be two distinct layers here, one that provides the pages and one that manages the lifecycle. As HCH pushes for pages either come from the allocator and get to use the struct folio or the come from a dmabuf and they don't. That is it, the only two choices. The iouring stuff is trying to confuse the source of the pages with the lifecycle - which is surely convenient, but is why Christoph is opposing it. Jason