Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp392734lqp; Wed, 12 Jun 2024 05:06:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKed0tioqFVqu3KAUosVal4H2pyo79YDKx1zp+oWUok9ZrJAQKRvZcVRLtPTXLU8m3ig+75YPtY2wAnBbkXPhVUEZ+tof2xLFCfqxP7w== X-Google-Smtp-Source: AGHT+IFoRYT70dHFt55YbRHi4Yv8NIDy0bMX0LPhVvZT5Jl36BU6lFR7F7Ef6KH4EOhTxs7ROmEd X-Received: by 2002:a05:6e02:168d:b0:375:9806:7321 with SMTP id e9e14a558f8ab-375cd1ebd2emr17156875ab.26.1718193985737; Wed, 12 Jun 2024 05:06:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718193985; cv=pass; d=google.com; s=arc-20160816; b=auSjIG+oVd6Eusonf1bhyKixa381KaW75zMuj43thrpnu52RbRikcA+bN758y6VwuD GT3gJyz73dUOWi0c25Lbq96gGyJvhCJ35B0090GhVOHRWLYdSBG96CuF3nkYpz0OyrXp mvbFUdWotMAunXtwjTABpyLsKFs09VOUt41mqcV8kkDeKILHCrYH5XPCfaT67OvAF63c oQbBw8v35eO81RFzcJXUnGj2voI4OvT3W7LJsac6He+TbmZoSp6uNiG8eGoI+/hOpcw8 kPKUPiOV/XyjcMANdB8fXslUvfAfs/4Qthg0WswClgte5nAqGSDhEKXz2HGk3PZ9KArl 6u+A== 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=654VBwTTZj6O5cwvd+Nmv/nVSh8Rktw+YZv2YfH5NqU=; fh=mU9dxH4jhKDJBYSejnQ96ae1Cg8sXmF5blkKGXU4Gq8=; b=ht8JumpuSy7EDSk2oNEKiSL4SiIb0Wo4TC9sx5KEMOj72UktnGYnIakzsowpD3srgM sfgbBkT3OhhAb1TvRX7lKWp7F3OzuDan7T/iGllmRUXAgMHXBGOp/pY9MOHhKw34dxxs CL1i8p6nNmWnYXM29LP8tevbIKKif5oguXRX0vVV7Qgi3Cg3x7TVpv9DG/VZu37CtJ0y z4ge06RuP6l0Zvtb2hzA7tAEjKd2bIJ3c4/1SzQKdDVCm/60hO6vZOVBTsUFoFWWEFAV AFg12dz+IQQcQHsc5FKol9GVqj88kUd3S4VUOU3mw1gZ3IqARL8E92OV9UDU9gFYG1Sz OFQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=b+K+9yut; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-211465-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211465-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e619d9d144si8330564a12.432.2024.06.12.05.06.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 05:06:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211465-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=b+K+9yut; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-211465-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211465-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 51B83281745 for ; Wed, 12 Jun 2024 12:06:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7DAA16F850; Wed, 12 Jun 2024 12:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="b+K+9yut" Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (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 2F49316F27F for ; Wed, 12 Jun 2024 12:06:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193969; cv=none; b=CKFRJb74K9A9cRA6Ljzn5h+LBzuOfhfA9zlYwYBW56/HMPR7kwmbbD3mGJUtGo5DTJyfRXy7CWQgm9qmcAnHCMwKie0rpysy7ZIaptPA5rs6QawisS4TfKi+kDeVgNJ5GMy9hY7TX5/FdW22IJUiQhR/oEy2RdRVDhv646VDY8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193969; c=relaxed/simple; bh=654VBwTTZj6O5cwvd+Nmv/nVSh8Rktw+YZv2YfH5NqU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f4llldoQbKj8A/Dlst1rQf3tdiegOJmKV8eLTjrx5xE/f+S5L3uczlslHwKBYUct5Pct8tF18yfugwW051rf62KUF4ZTQKRP3fYcVCZfBZ9ptwxKkrCGZO1oVOC3o2wSfDMkbQV52zXZqu7QQ+YPfJR8cmA3nqKUOCNzoDOAYIw= 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=b+K+9yut; arc=none smtp.client-ip=209.85.160.172 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-f172.google.com with SMTP id d75a77b69052e-4405304d062so28208051cf.1 for ; Wed, 12 Jun 2024 05:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1718193967; x=1718798767; 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=654VBwTTZj6O5cwvd+Nmv/nVSh8Rktw+YZv2YfH5NqU=; b=b+K+9yutIZvL7EhYnDc9PCqyJQyg2rNZnBSM82DUh/mVjbpDQy0AjlTT1QxvPywdj1 5x3Bd9/ca2iYboUwAHk3ommKdZwLtidiIZFwneX47/uHtGfpvI9RYqChNL0+zSjfMHo1 eLjMobFz+Qu1oy3MVyvb4rEeOUKTLSjore47JD2UdH3oqgTIkXqhVcGm+UYAEnMiQ+T5 RK5UP92BF1rCkwKJet0x6kGN6ceBNfxoJL/qrz8UJcsTrQpKGIJJ91JIlvqFFjM3nnYj 7adAlrkKUSp2YwiQ+JcrIa0p91XG2fUzPI4njv/lY/djRSEZJX+zpmehJwwsBOi4fkfY pCDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718193967; x=1718798767; 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=654VBwTTZj6O5cwvd+Nmv/nVSh8Rktw+YZv2YfH5NqU=; b=iu2xahfSxuoPPFyDIscHXtoPZSRda98EhVAGaBvPIn25CLvjz2MhabFUiKrTpHhR5W XHSXdszQHwXa2mi1X4bcHOGIUBxJTOWq1bk2LoueEiUzMZl4xxenqhrDIRYxCDNxYQFC 6xWiWzsfnQ9l0psKi1FbaT4t01DL5+8WaN/OK0iAgYxNFWsDb3kMPQZcfwpp59RvgEoa yBHIOrB2OxohvSxDJjTsm3P+V1N0qDo3BPPg2XadBTykZ1G+hXeuSFSqJdSaxxRdNaXs cKSa6ed7knKfCzd98pOPD4Fvd02cU6+uRcc6qoOcZtH18IojBtrSvXLI6VynHU5qoxZB fsPA== X-Forwarded-Encrypted: i=1; AJvYcCUZl31cl4gh1iA/b07ITHWP5x9Z4bK418u94fROzkHVkNmGQdJQe63Of4HIIN8bJEhWTPdhdyMty1OX0rst4AdmkKmMbh4m2UQ1C2X7 X-Gm-Message-State: AOJu0Yw1InQ6sy9P3KT5oL4wNzGlbGmw3dB3bKsFJnUG6OvhiIHyrhDq 60sn0HY9Uyc3ARKT8IuCmEd6dLZf6biC3hft/xarvYHxXJSfVlofpeUf6x7EY5I= X-Received: by 2002:a05:622a:30f:b0:440:5de2:2a03 with SMTP id d75a77b69052e-4415abae5a3mr13859041cf.1.1718193967008; Wed, 12 Jun 2024 05:06:07 -0700 (PDT) Received: from ziepe.ca ([128.77.69.89]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-44152b1585bsm12849751cf.27.2024.06.12.05.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 05:06:06 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sHMjq-008UjB-Tl; Wed, 12 Jun 2024 09:06:02 -0300 Date: Wed, 12 Jun 2024 09:06:02 -0300 From: Jason Gunthorpe To: Mina Almasry Cc: Pavel Begunkov , David Ahern , David Wei , 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: <20240612120602.GQ791043@ziepe.ca> References: <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> <20240610221500.GN791043@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: On Tue, Jun 11, 2024 at 11:09:15AM -0700, Mina Almasry wrote: > Just curious: in Pavel's effort, io_uring - which is not a device - is > trying to share memory with the page_pool, which is also not a device. > And Pavel is being asked to wrap the memory in a dmabuf. Is dmabuf > going to be the kernel's standard for any memory sharing between any 2 > components in the future, even when they're not devices? dmabuf is how we are refcounting non-struct page memory, there is nothing about it that says it has to be MMIO memory, or even that the memory doesn't have struct pages. All it says is that the memory is alive according to dmabuf refcounting rules. And the importer obviously don't get to touch the underlying folios, if any. Jason