Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp553267lqh; Thu, 28 Mar 2024 09:17:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIK+/19N0p/lj+K/DQh7w/9lEg5g5sroyUsvbGciFr4DCDqxYZgiPbyr/5JFNDHpdnlUEdx7wcmHAVh6Py0W4dXHu3mjQvMMcmP5EC1A== X-Google-Smtp-Source: AGHT+IFe93MlKWfyAa+7qAtoX4RlnBuA6QOFeJ9e4BE508j1OpSZYIYEaiZPX44HqHVqSxyi8D+h X-Received: by 2002:a50:8a92:0:b0:56b:6ec6:af2f with SMTP id j18-20020a508a92000000b0056b6ec6af2fmr2491925edj.6.1711642629788; Thu, 28 Mar 2024 09:17:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711642629; cv=pass; d=google.com; s=arc-20160816; b=PvbvZrzWoGEwepHxbBHAO9xQ+1b8ZLKveBt8aqJDUMLe/0o1EZYjaZbtXzLTZe2C+n 2hQhjl/r6tTTFshWzF+FrqjaY0L4OkXOIa7j3MjCaQoXTNCp+f5kI8Ue8DqNfm8meiGL Qn8wv4kPcClYYxH94HiTdgAdWgzaJwUHc8iOSF+NHERvNln+2vb5u7tGyfnVp10cjfTH gEb9JsOsmsnwGS++1ccfkl6xomsetyayWWKIVQRUHaHFqSGD53VA2QA9NFcz+ieN6aHK AXyHivPyY2Ewq3wOkslk6i4EaFsrtbVA8IDWD2PhsaFgNDahrs4j8ss6/dBR2munMeQM BTFQ== 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=vttzHoZOnFV3RpiKvH6mM16x2BnNpMVa6ppcy7eNO+k=; fh=w0tDLuBjv1ij1UTd15wXdzFOPmcZ2ClMzV1pzrEZ90I=; b=VuiilmPv3x6JAQeXWEIJgDdB/SmOBIonZpaF6+OeOD4LtihKB2hMJLlKjJIXdJtmLe V/5pQNlk3RuyMN+PIti+qCU6f3T2JGM4q9f9IpqpdumteyTIOOzNq3CjsZiLVTn7UYai FCCN7XlNzvGL1Cg7j8vn6ynwRgaBE3AWPbHGCVlWzpMcPTvVU+0iVVRT3iVmALcRvcDv nA4MWjklYGmu/X6rjwFCAZ4CG46+9+EfHVxRRQQzNQBE+he6ztgfgIR6RxYnurEeEwJL TCs1BO1KghbXg8+bwEUbKEORVe297+Jenk+yIZOo36aiA2sfrpkta+dEVHuSIFk0Fs1X h9fA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=gcYWJotu; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-122507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122507-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m9-20020a50d7c9000000b0056c2cbc124fsi889083edj.240.2024.03.28.09.17.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 09:17:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=gcYWJotu; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-122507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122507-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 0E36B1F23731 for ; Thu, 28 Mar 2024 07:32:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6606253804; Thu, 28 Mar 2024 07:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="gcYWJotu" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E32F2561F; Thu, 28 Mar 2024 07:31:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711611101; cv=none; b=l35qVSooQJgulXf8OEKXM4ee0eiW9zEiabwibizv6f8FKhsfkL2kBsAFdsaSVFGnwEn/j5SNqdoECfx+4U/wzWExWXSMbiYW1R5710zGqQWe24Zt57/6WWij+zk0Y4X16uKXZLVUG59umzXIyA3yrmEdXTITyXfMyzhZ9bFyVQA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711611101; c=relaxed/simple; bh=UiexvZQWK+4Yc+SMZ9M3zHpPBZVoEYHrn9anANb9C5w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d5Fm6ImLcHPV6UYzlsQeYNsjvAQufCBZvBPsa210F2htuofaAshATEDf/2A5+yv08JlFkWpjmTYRAyXYwW6T0YT/0SU5eCH/gYnEQ9pXljqsRinJCl/lnkDFftrLbeUWzIEzBr/O7AtKnfMOcFBuMtBpAoSVFpTIrHmgldSXXD0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=gcYWJotu; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vttzHoZOnFV3RpiKvH6mM16x2BnNpMVa6ppcy7eNO+k=; b=gcYWJotuQVW8GYZ0l03Qd1Y7Rx geRqzubUVBuSA9E2/DAQoiPMRqhx1n9l+w28Wiufj/ZAExFJaqfwavTjC8gzuWje1jZN2jUSkE+qE Q15FOsZFQN2b0luQEwgHnGe7lzK15zDdvK7FQjfmrbwwmVTazNYcBHn8mWmTha+YKF08jxIWc0REQ +8EyFi9U6Gl0G+TAuZmP4Qd6h8HYQgYngvPlmHvo3Jo8XSRKsSWUmgiFQ8nfw+lmfCUH+lF0bMRBm 3NB7t68iGeniQOu1nPNBlIsx+leXTDUB9ZbdcRiTXuwjN/rjZyp29U3bvNZvER0Ozv/NSab0o7bxJ CYLe7RCQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpkEV-0000000CslI-1PHG; Thu, 28 Mar 2024 07:31:31 +0000 Date: Thu, 28 Mar 2024 00:31:31 -0700 From: Christoph Hellwig To: Mina Almasry Cc: Christoph Hellwig , shakeel.butt@linux.dev, 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 , David Ahern , Willem de Bruijn , Shuah Khan , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Pavel Begunkov , David Wei , Jason Gunthorpe , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Jeroen de Borst , Praveen Kaligineedi Subject: Re: [RFC PATCH net-next v6 02/15] net: page_pool: create hooks for custom page providers Message-ID: References: <20240305020153.2787423-1-almasrymina@google.com> <20240305020153.2787423-3-almasrymina@google.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: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Tue, Mar 26, 2024 at 01:19:20PM -0700, Mina Almasry wrote: > > Are you envisioning that dmabuf support would be added to the block > layer Yes. > (which I understand is part of the VFS and not driver specific), The block layer isn't really the VFS, it's just another core stack like the network stack. > or as part of the specific storage driver (like nvme for example)? If > we can add dmabuf support to the block layer itself that sounds > awesome. We may then be able to do devmem TCP on all/most storage > devices without having to modify each individual driver. I suspect we'll still need to touch the drivers to understand it, but hopefully all the main infrastructure can live in the block layer. > In your estimation, is adding dmabuf support to the block layer > something technically feasible & acceptable upstream? I notice you > suggested it so I'm guessing yes to both, but I thought I'd confirm. I think so, and I know there has been quite some interest to at least pre-register userspace memory so that the iommu overhead can be pre-loaded. It also is a much better interface for Peer to Peer transfers than what we currently have.