Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp470197lqp; Mon, 10 Jun 2024 09:22:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5LY84ujdpuJ1O0CeILFLg1A1GXYIwd+0h99BXDNcUDV3BO50BQLE9uhhCGux31DJZfBwJCkLa3boPBwYHIOJrw07wd0mFVvmJVfpYSw== X-Google-Smtp-Source: AGHT+IGFtSdQmAZg2Ow4SQdrmI84+KviZrHOq9UhHfXQevQNFs5oePY1qBFdMbYWxt7WDnQBjCHv X-Received: by 2002:a17:903:2451:b0:1f7:178d:6990 with SMTP id d9443c01a7336-1f7178d6d08mr29938925ad.22.1718036574705; Mon, 10 Jun 2024 09:22:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718036574; cv=pass; d=google.com; s=arc-20160816; b=G67D0KzE7qgNmF/3GrxtdnZQUaSD281aJUylkFTtQpzjDz/jY2bJgVOQfDGLNry8y5 yEe34EYYf4iaOhNzJttONFXtocGWUgbNusorXbP+M5QVzw3grkxup1AXlYPCXEEUNczm N13ykstiGw6Z1Dwf3Skg0EKGUclOS2EF+b0jlpKYrt2DhpC9R+ffK1Ynf5+YcoimsXHM hp11x5Kbt1q863+xVl0tW9TEiYaFB8bAjg7RAHIlHGQMt8xMs70ikndcPVgLa4CaOvWt drqmGAbae7NjL4o4zO/exdgdV3at1oJ1EPuNtgA9o8jRKrJWQ3dlnjGteAVj2bOVlUAE esNA== 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=NH9qOe8AuGn3R+TevtlS2pqQNAL05iIcoVXpQ7CPaGI=; fh=RUF0jNkroMCwq+ybcL+az4iKTL6G9rmZK7ljdVV6x9k=; b=tBYMcbzcTF7SbzjMbOEmbSee1fwQe1f7pxhon3+WyQGf/PiD9mZ2H3l0X3+xEdvoQW gRK0bAsFC+RDkQA0ajqpLkz7x0flJbLqfFeZtu/r6Xao7BXF2JG/DJEQVgHVlURMPOVb VXBOM2/+oWqVpAQjOrHGD5C1YlvTKwQ2Bqnk3i9JQqO3+bbzxopKkMm4AhMVsZyUKgTQ uy1FITD40qfOuKww2S5EolpTvTVC4/T38Q717QTcQldfdUG/BhBzO76Je0M5iovqLnmI 3bY02+0//DQqWtl5uKanNkJPDA/YnePL/dYp0nNywpmARfZh0vKszKd5cSv4iyFlYFeD J4rA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NBC3BjeV; 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-208497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7f441fsi48242995ad.514.2024.06.10.09.22.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 09:22:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NBC3BjeV; 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-208497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208497-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E990DB22AAE for ; Mon, 10 Jun 2024 15:42:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E70261422DC; Mon, 10 Jun 2024 15:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="NBC3BjeV" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 E398F13E035 for ; Mon, 10 Jun 2024 15:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718034105; cv=none; b=dzOgqik32Mw7mSbv2sBNZrb5UVM3nbLqSuifSld3G/dSRnuN88UDaQsLL/bbe5TwTTM1bAyhjMGgd8FW1tQXshiuSUtpiqqXCHuQBRLmL0cAAFG4HknMRZlG2WCaU4ZByLmjWqcDGOLo6tdTXNnJzlvsBGMcpeom4vZN8m8rqQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718034105; c=relaxed/simple; bh=NH9qOe8AuGn3R+TevtlS2pqQNAL05iIcoVXpQ7CPaGI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Xhz794yRQah+Hq08oFMZPpt5tgqHnRsz7ubyZfLXLf64QfU44avIin7aF4YiGKXXU3Hy8M1Qqrgjoni7qaf9q+lpDWQCXmCJV+muZtE3a/smAhX+eIROzR1ql3Y25mXA7Bb47xfKa2NM9K95vSt6NgSq5pmnfTOovDsXUMfU1Go= 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=NBC3BjeV; arc=none smtp.client-ip=209.85.208.43 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-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-57a44c2ce80so5275351a12.0 for ; Mon, 10 Jun 2024 08:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718034100; x=1718638900; 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=NH9qOe8AuGn3R+TevtlS2pqQNAL05iIcoVXpQ7CPaGI=; b=NBC3BjeV43Tto6rj7jzWS0apRPZAnZhJNBOou0IKmm3h/8DlAdjhG4Y5gsqiMZ3pAd eHigC7Qcovtju7HZ8zQbCH+6Mddcwh9xzZyF87jwWeINqrgM1FR10aoNpM9dZICtDvyc xpf/0lnr4kBXB8f4u7FUjoUTnij835IuH9nXp7+XMaRWHJ0DuFWMNuTFhWOjApFRaXYT 7RG3m7uf6qb1wB3E+GyK9gA7GBP6oTu3azHkQzuLULoMA/9i+b2aihNWU9FBTH7e5imH Ehtos6vd4QKW9+lJTwoCRJli+5DpQDQDQZAogzlY1LO+FpPUy3lqrKWKLqAw+vVHctXA UdOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718034100; x=1718638900; 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=NH9qOe8AuGn3R+TevtlS2pqQNAL05iIcoVXpQ7CPaGI=; b=vJFIFOkCpNxbNRaspmxCTDsOzIrbqQBXtGqhNdI1g3fzM/Y3NKnf2BjW7DdReodXEq pRrpWGEKn8GCkXgJfR4XW2TzIY2qlCt7AwapmovRCOW9rycgPggo0+foOjyYyqcjriz2 0FTuJpK2JOzUkX4L8FOBOFMlbY+gPXeE2bbenfeSw09iyIsnbIXxTQ0FgU/Nv41Azffb B0Tj1P8Mo8mllxFqL+YGqLTnjS2qwIJXnt/xkOpvbOw2ahgnImCgqRXEwbXZd48fFqsU WaVO8ha2P0dXNANFeitIA04gAWXhHU/NI5CITMmx5kmIzi63qDpRNpBIrliGCJP6gPDB YM2g== X-Forwarded-Encrypted: i=1; AJvYcCUf/Rjnlvc0I9qyurwD2YnmPE4FGw3k72o+5eVrWCkdlPDouLu0/BpU8Scpfse6VV8Hph1tvzI8W3CEEPh75u0CTV8J+RFmrq/yMWXu X-Gm-Message-State: AOJu0YyDbofCoqWWHQmsV3KHydP/zB2neEvRosps0IEY2JUQ/+J8XNsf i9X1cZrvVS1S1x1Ffunkwz1LKPW4Q/GHEHn7Z/LEqy3tCN8vtU/2J8DopYRWMyU55cvoFLB+uSM /RfaQGYNQdicyxNVXzKzowT5xkaHNz03DiDUj X-Received: by 2002:a17:906:8888:b0:a6f:279b:37ca with SMTP id a640c23a62f3a-a6f279b38b3mr91530566b.51.1718034099331; Mon, 10 Jun 2024 08:41:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240530201616.1316526-3-almasrymina@google.com> <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> In-Reply-To: From: Mina Almasry Date: Mon, 10 Jun 2024 08:41:25 -0700 Message-ID: Subject: Re: [PATCH net-next v10 02/14] net: page_pool: create hooks for custom page providers To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Jason Gunthorpe , Pavel Begunkov , David Wei , David Ahern , 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 , 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 5:38=E2=80=AFAM Christian K=C3=B6nig wrote: > > Am 10.06.24 um 14:16 schrieb Jason Gunthorpe: > > On Mon, Jun 10, 2024 at 02:07:01AM +0100, Pavel Begunkov wrote: > >> On 6/10/24 01:37, David Wei wrote: > >>> On 2024-06-07 17:52, Jason Gunthorpe wrote: > >>>> IMHO it seems to compose poorly if you can only use the io_uring > >>>> lifecycle model with io_uring registered memory, and not with DMABUF > >>>> memory registered through Mina's mechanism. > >>> By this, do you mean io_uring must be exclusively used to use this > >>> feature? > >>> > >>> And you'd rather see the two decoupled, so userspace can register w/ = say > >>> dmabuf then pass it to io_uring? > >> Personally, I have no clue what Jason means. You can just as > >> well say that it's poorly composable that write(2) to a disk > >> cannot post a completion into a XDP ring, or a netlink socket, > >> or io_uring's main completion queue, or name any other API. > > 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. > > Well there is the fundamental problem that you can't use io_uring to > implement the semantics necessary for a dma_fence. > > That's why we had to reject the io_uring work on DMA-buf sharing from > Google a few years ago. > Any chance someone can link me to this? io_uring, as far as my primitive understanding goes, is not yet very adopted at Google, and I'm curious what this effort is. --=20 Thanks, Mina