Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp699100lqo; Wed, 8 May 2024 11:57:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/mEvS2G0z1HIasf/JVh6PFHyhL1r36ua/DhTCA5eaBuu+EjBgcF2eePTBTVj6jSazV+OUgMlx3zdriJhb7R/f916zdQJHyIz6g+0K+A== X-Google-Smtp-Source: AGHT+IFt09ANXvWM2R0a3xkLwEGKHTW/3tP/dbDiOt7V+a2OohqqYLsf25yoVVcV7Pk9kLmTYg09 X-Received: by 2002:a50:9b4f:0:b0:572:459a:7aed with SMTP id 4fb4d7f45d1cf-5731daa2190mr2407267a12.37.1715194632148; Wed, 08 May 2024 11:57:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715194632; cv=pass; d=google.com; s=arc-20160816; b=WMBqfYNTi07WX5LRXmUNIKw4O6/TRu3NYfiy2Mj2QmlaaWqIFPRcdIqvCaK0s0n9bA +rqg0OmPYi162Tt+UlTDzxKHI6fDcTUKSFYmRDAO+UY1Kja+QHUirSrz5FCftwB5dUYL 2pYGx0hGks4KHp3yCk/wDNACEsR5G9SF4qDxyNSxqep1IkAEFBwDTAgt5rP8oy/yPjYd NEJfmbM10FdmPmzTrPT4wc8W62+p4MRxpHlYzLUcACWDd3ah+lhMfCMVthP0gkT/b23P Nbkqx9Hj0P0rO37uL24lIcd/dzfQhiRkd3H8Y7pSZz7XlbglbpZKPse3nsSrrrrDgrZc V+SQ== 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=5L7U6u9C5aAkjXD25S+4DzKd76J+xOFQYfYP+ZGof4U=; fh=m5e9cyo3SEzkK9c/9d5S8WSS3n6HoSFGt2Z4a6TkkLk=; b=PyoegFMiHS9IvJJkMcu+gCznJYuCuasEK4wpyXmAG4zl9JQfFdFtBfeLWBx+fBfEYb /xsMtqNeh5aGT8ifJkkjvigpR++FnBOBn8G40NmKCxbsIbZHKpWj7YaSNeoXvSTfF37d lMUsNijrH8K60NX+bhzdxm43kCIOuHr7KOyXg7RjRT2BcmQ6V1+iKLRZWWAW1KJFpIzQ YzR6zr7Qwmq8vlRBKZ+bGD/FHcyhHOrmBEvQb2a4w0HCgyosq15G0w3Kfgw3DtV/nsG/ 9mKmjjWE8VGL1fZsR6KYP5KrsykVaPx2TWBKgcDzJT+XmbvIa04nr77n/VZEvr6rPtNx 7rPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=x3heyMbO; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-173511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173511-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 k9-20020aa7d8c9000000b0056fde9c51easi7270564eds.459.2024.05.08.11.57.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 11:57:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173511-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=x3heyMbO; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-173511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173511-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 865EA1F20F4C for ; Wed, 8 May 2024 15:52:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E834D12A169; Wed, 8 May 2024 15:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="x3heyMbO" 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 D48AB128829; Wed, 8 May 2024 15:51:37 +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=1715183500; cv=none; b=AVeH7fx/iXRbVk4x/jn7MQJmyZ0vQgozmK/PdSk6vMo1BmVbhe/+NjhvfVP3Sd/dM11l4FMFBPa30c6aIdoNcQ2tINcpNr0tf3num+2+/1CikWOAHTxQTGuGmKFyPP8y3z/82JRw+8G4j2ObnhCJ6pJMBRMxxuLSX3mXodAlWIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715183500; c=relaxed/simple; bh=JmOyuUiIG2fnWVL/7AWr8alyhqc2M1Si7hL177w5pNY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D5a3+sUk05ELeWr/ImnDNIVGG+QJ1+v4fyxLUt/AzTR48Wsjhl8CcJulJgvj9umlB4pF3ZCYDjuj343g1xOSl6J5bFmTVsrHahyuKfroec6NaPFCUhkIt8ZlA6WR5OgOQUkol1UHUGhCFLv8U/KiM/Nz6L/gDrKCHVCLcA1hxhE= 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=x3heyMbO; 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=5L7U6u9C5aAkjXD25S+4DzKd76J+xOFQYfYP+ZGof4U=; b=x3heyMbOAfN9P/PNvvupLQ8x3B zfGkQT7XpozLu+QdSCS/feHmNoPKsSJFoQ6I3UHtM/6p9BUUchHTYyap6cWDa/ThHE276R1uT5MJb fX5awWFY8ne25rWa1c6I+BWsaOJEUhhhxIk5GxjFYYWx7+rAb8MFlEL610ydD1nOSE+kHv54eXIvY sPbKgQ6g7+igfnDDvp624wdtx2SwbRlyJusLVa7N+3cZZ/ljD7/kcIFOtSfiO1GJuZR3XFuwfyTSz lg9UgLvnwsmnd3glGk9JWKk3Gwy9/CSBY+uOm1nC4wTC/JSv9keF0ci76Gzsn4v1ofxvDS1GimVqz VXk/bDfA==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4jZd-0000000G4z7-1U0g; Wed, 08 May 2024 15:51:17 +0000 Date: Wed, 8 May 2024 08:51:17 -0700 From: Christoph Hellwig To: Pavel Begunkov Cc: Jason Gunthorpe , 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 , 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 , David Ahern , Willem de Bruijn , Shuah Khan , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Amritha Nambiar , Maciej Fijalkowski , Alexander Mikhalitsyn , Kaiyuan Zhang , Christian Brauner , Simon Horman , David Howells , Florian Westphal , Yunsheng Lin , Kuniyuki Iwashima , Jens Axboe , Arseniy Krasnov , Aleksander Lobakin , Michael Lass , Jiri Pirko , Sebastian Andrzej Siewior , Lorenzo Bianconi , Richard Gobert , Sridhar Samudrala , Xuan Zhuo , Johannes Berg , Abel Wu , Breno Leitao , David Wei , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi Subject: Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers Message-ID: References: <20240507161857.GA4718@ziepe.ca> <20240507164838.GG4718@ziepe.ca> <0d5da361-cc7b-46e9-a635-9a7a4c208444@gmail.com> <20240507175644.GJ4718@ziepe.ca> <6a50d01a-b5b9-4699-9d58-94e5f8f81c13@gmail.com> <20240507233247.GK4718@ziepe.ca> <1e2823db-504b-4829-856f-3f45a45ccada@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: <1e2823db-504b-4829-856f-3f45a45ccada@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, May 08, 2024 at 12:35:52PM +0100, Pavel Begunkov wrote: > > all these, because e.g. ttm internally does have a page pool because > > depending upon allocator, that's indeed beneficial. Other drm drivers have > > more buffer-based concepts for opportunistically memory around, usually > > by marking buffers that are just kept as cache as purgeable (which is a > > concept that goes all the way to opengl/vulkan). > > Because in this case it solves nothing and helps with nothing, quite > the opposite. Just as well we can ask why NVMe doesn't wrap user pages > into a dmabuf while doing IO. You seem to confused totally unrelated things. For short-term pins, that is pin_user_pages without FOLL_LONGTERM there would never be any point in using a dmabuf as the pin is transient. For long-term pin dmabufs in the block layer absolutely make sense, and I wish io_uring would have just implemented them from the start instead of the current fixed buffers that are not quite as useful by not pre-mapping DMA and not supporting P2P.