Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp515494lqp; Tue, 11 Jun 2024 10:49:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHV5p6SCRYk2QtHKpf/i5elZwnd1PUaCmpVRHy9dKnEeob4hyByS04+8SKSSNMD/kTGF5MALVM/sPpFhvkO1arfOcpUQnf3bV/Pemq3A== X-Google-Smtp-Source: AGHT+IGM0HyTnmtHQEOqloMp7NjKkpQDdOS/nP8lgY88jNcFkq8PuOQ1i+7QPCpaD9TTcoO/zpZw X-Received: by 2002:a0d:dd14:0:b0:61a:999f:e499 with SMTP id 00721157ae682-62cd55ced16mr123507667b3.22.1718128180920; Tue, 11 Jun 2024 10:49:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718128180; cv=pass; d=google.com; s=arc-20160816; b=sxCKkTA/03WlDKdTXxrfNpNDRrMTxPYv3T89ibXvgcqldt5DmL6f0HrJ06ATwoVFBg uBDVWuVPMswc6zoySTEvfaXAj7V7f6wtxAgjT+lg0MP5x9K0zKMfIr6SNNxftRRaY8cm wxMIlAOK71uCQ4ErAMnKVdtsKtfTSBT8Nj5p7o6C/MHlyaIKh/CGxZQr7ipRus4SkDVI 1qF7rmhqyBTKfJ2rdhTrMQt9G37ievxu78FNNWyxTlYAvO4MEXXtC25ZeBskvswkRpbF NzdI6IKgeguVmqdu43DMFjiQ+1TbboexmV5Wtf7CKYd9+tzxlKmAHuAgyzfNyIdOpNGE 7iVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=qqI28F86pyCn46b6E2hC9EGzpBvx1aR16iSkTi1rBL8=; fh=RFRaT3VBVYpOhZ3OYZ7fIU8yt3IPwlTsU+MHsg2UP+s=; b=dfhsDuUHd1o17QrV50SIVB2E/PuEqLt6s0/4BkbEDRsK0Q8pY48wpxpFiA8ikbKeAW JNUamcUVXY2WGFQYFncTLswo0KXchkk1Z//1oVRCKExon6inPTHjd2ykpdZ+sf8v2Wfa 4LvSokMmoTlR4od9WjOEykmhibcAvKfHbh3Hwvo9SpgvkSKUgPHtkSdggxXp/XB71rz+ iWRAXYNg5SH0ul6lwZ8sTzrvf61SpaWqSAKR4qgbQbB7eHjxlp1Yu8FyIxrVnnTgpLrs +GmgtofxCQBQTNSsPxBP+BoC/L1Y6In7qT9Vl20RgBuJnE3O+PhAnZAHuXaTw7V8C8GF 7aHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=IPVFjqjN; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-210354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b075ad2681si70286606d6.94.2024.06.11.10.49.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 10:49:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210354-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=@google.com header.s=20230601 header.b=IPVFjqjN; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-210354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 904EA1C213D1 for ; Tue, 11 Jun 2024 17:49:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A59016F076; Tue, 11 Jun 2024 17:49:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="IPVFjqjN" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 810DB5CDE9 for ; Tue, 11 Jun 2024 17:49:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718128143; cv=none; b=WTi0SPV65AVdsZ4tk3YA/s61DNpq14clVwgDzm/gcW/c6DTs1NibmM5xNWkoJ4hp67bgCo1I/0+5dZIAWM/fymy5WVcOjwPnezlNdtYCAVROLfLclz1hYTX2K67se6bxKOl37WK2d7s2PvuUM165u869YBKic2sfmT6pmivrBSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718128143; c=relaxed/simple; bh=qqI28F86pyCn46b6E2hC9EGzpBvx1aR16iSkTi1rBL8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=peaJsswF+tgEyXdmiDVaqGDD3Zdjs0sEVHUeCPKdvqip+YuVa0+nLpC0+H77wKlK0se23UbmhGZ3mlB0gbyuS8ByqLnh4E33szmSnBkNXp9okdDJHMR7jqGOdwVv59Qb8nx7IL4ljWjffKVP+7iOx9uUY+tB3K/xwek46YrDAhU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=IPVFjqjN; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-5295eb47b48so7037562e87.1 for ; Tue, 11 Jun 2024 10:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718128140; x=1718732940; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qqI28F86pyCn46b6E2hC9EGzpBvx1aR16iSkTi1rBL8=; b=IPVFjqjN/tV8zxx7PkHbMF4K/IYb/jlC2tNit5JdvoLifzWpkyDf9JrBFefkflu+aW hiA18c2EjQNXyBLcSixdWO0kk2xuSNuKdKO/T7XNH/JOiYXo+V6xtEBI+/UQnZVN4Wi4 wJmV3pBdP3FZ+M+BJPCgzvoMJX6U7b0v6zRx97/K244ibz8EcDPiJyb24JuTdFHzGOps N87qOHVGTsz0jLlKV2cAcqOd96eJfNPr8SjRHvz2/Ne5EGuStsAG8Se3GTIfhH3848XQ tTf1dm55Al2vnllfL+M3Kh3sVeZM4YFd8HbBIyODEajeZeimEvCZznCejuVCGbBO8fyz HLTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718128140; x=1718732940; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qqI28F86pyCn46b6E2hC9EGzpBvx1aR16iSkTi1rBL8=; b=jQvRVctlwa3znZ+qyLWtu6rus9uLpyODMufoi8JHSQMreSHpASmxH/X2lR9zgqN+i2 PW6+DBUao2usWy3frA56q0MD2vUEnGY200Dxdw3PikDgU4vgWYRiy0HOiEuBOE5PX7q2 zlV2Lvwc3KuAOvhcyJAtgDU458lNS4Cti3zk4wv2AxyM1/ownQI5KiKCPQL/9i1r0VX5 DK6dDO4WtwtTX34d3YVLAsOg9ozK5raiizdo0UKVwTOstdhw2oBDgdcnYNRDqU8lnozO 7JcNoUTr3jtx01m940mOJ0PyIjvkMiVb43Qx3hLWS3aJ0xjLDlbgN0ae/Zls5T0okJ4D zZ+Q== X-Forwarded-Encrypted: i=1; AJvYcCVDeg/wCVuujnTpZiMbw2C2il0s5wM7EWAMxf7m35zGUfz++N8LXFbKf0z9HTflKXlnGWrFR/Vth7v4m6HZZUwlFYddaSsyfbzV4ej0 X-Gm-Message-State: AOJu0YwGyomF6l62wQZGIHVjNvR8FkjAzOoeFQ3+rkmhtxyTr4f/c4vi I9ajWiJ2xpAW2gUAxrwqWvf503WdmopMEBnH2pzD9zziQoMLXbm8wcnqpNWPTk8Ei/lU4V5yrGS UcB2W0kdQmt7Q4QVsmDSFB2FKI6O5a754KteG X-Received: by 2002:a05:6512:324f:b0:52b:fc90:acdc with SMTP id 2adb3069b0e04-52bfc90ae01mr6138523e87.32.1718128139379; Tue, 11 Jun 2024 10:48:59 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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> In-Reply-To: From: Mina Almasry Date: Tue, 11 Jun 2024 10:48:47 -0700 Message-ID: Subject: Re: [PATCH net-next v10 02/14] net: page_pool: create hooks for custom page providers To: Christoph Hellwig Cc: David Ahern , Jason Gunthorpe , Pavel Begunkov , David Wei , 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 , =?UTF-8?Q?Christian_K=C3=B6nig?= , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 11:26=E2=80=AFPM Christoph Hellwig wrote: > > On Mon, Jun 10, 2024 at 09:16:43AM -0600, David Ahern wrote: > > > > exactly. io_uring, page_pool, dmabuf - all kernel building blocks for > > solutions. This why I was pushing for Mina's set not to be using the > > name `devmem` - it is but one type of memory and with dmabuf it should > > not matter if it is gpu or host (or something else later on - cxl?). > > While not really realted to the rest of the discussion I agree. > It really is dmabuf integration now, so let's call it that? My mental model is that the feature folks care about is the ability to use TCP with device memory, and dmabuf is an implementation detail that is the format that device memory is packaged in. Although not likely given this discussion, in theory we could want to extend devmem TCP to support p2pdma for nvme, or some other format if a new one arises in device drivers. I also think it's more obvious to an end user what 'devmem TCP' aims to do rather than 'dmabuf TCP' especially if the user is not a kernel developer familiar with dmabuf. --=20 Thanks, Mina