From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.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 8CCCD16C694 for ; Tue, 7 May 2024 16:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715098741; cv=none; b=Cb61Jrowe7M4zV/Z1E/5ifhjQOX4XOhdiHJToKM0MMFJnPPHplQWh65vSWzKGOhab4nZfnnHq+kQQufsLr7NPmLCeYqRS3+WdZ4AKBusZAXu6+RCmdzgVEKS+5x4fo/C02UI1Mm/tFDI6BnIfOKIKVCxX6cpxw0LckX6Zy8GPms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715098741; c=relaxed/simple; bh=0nsEzeVMKy4YdFDUp85eHaoqb8xweeElGlao/4FZIUg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OFsnY/2aDdcT3bJ0dOBlfDKiQb+AE2aM+0Te4b3mBjSTWvIBNGiD9Qq9hKDMCVvWlQRtVZmjhjWaegn+SGEa1GlZqzYVTHVHMCfFkEfduQFA/LaOV7REyFZeYPKA7pCDSoaq0rVX8s/4lEOwnLB9xxXPmehnZF8HUbwz3U725yQ= 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=n6QMlnqz; arc=none smtp.client-ip=209.85.167.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="n6QMlnqz" Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3c86f066256so1893820b6e.2 for ; Tue, 07 May 2024 09:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1715098739; x=1715703539; 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=mpA0imZ1JqdhWIK1ORQBd9/L74Ck+FsRXQUsgUAbnpw=; b=n6QMlnqzFDrSKG+r+0kXM2H60cECHc0rx3l2WkIofvmxsHgVn/ZlP+zxopaIMUAOBo cKWyAyx1JL0gkm4/upbIQiOFtQCIJvfk7oGviz+4ajYXBQ5fZsSNz7gqhGoiOVoX6Axc MnO6FE3vTxaZjD0twF+BTn6BHguybjGzOkJGW6jRSHKhZT4xMU2U6DOr7Z0qan6mEwn1 sQ2VdiIRDiQLsRnTB75nwEDf/B/R5Cto+V0HZVHHw+crxudcjpaXglXtK7m6FsOtdG1X agehcZD+fgVft4iLrQczXTjmPYfujvhcHWDUtB+u0ESC7pyr6WGUkHia1IDfeDyUgUTa +5UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715098739; x=1715703539; 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=mpA0imZ1JqdhWIK1ORQBd9/L74Ck+FsRXQUsgUAbnpw=; b=CoSUpCnGt46QjyB4+MjNyy+VxR12almN0H5Kla2aaGt/qM1X4q2TbIW+v6PHitk9EL VtjU0N9UbQU5UV9ucZunTGqswW4YAW2pQ8dZmGoPbIhZBpD7DVCcr0d00NFRnCoNy2pw 714gF5sQ3fBYKptQ9sXgeyW5NO8+HC4w1h3vvnlTtnMR804Q5/oFx+j5PE6nOXhS9IDQ V3QuAd1V69kwmlN1ajiyxEMcwQmU33hbOaY7P/N8ioIJN2ZE9o26DHa0tKgwuoMdszIH djr4Sl6DD9zoJygTgo0iSGPCCkWY8GqVP/xwH2MXbOdVcSwxMio6gv88rVOGSVsz4Vsj BczQ== X-Forwarded-Encrypted: i=1; AJvYcCX+rqLRarvGxlwKzvzAXBVSMjO5mIIXvfn6bIG6byQH6IxaiR/oVMeh1mR+QLbFpd2YK2LTyeT0yIST3Gj3gJ/5dnH2JRMOYqutlQ== X-Gm-Message-State: AOJu0Yw/ty5ssvNJEeVAYe4fs7U9YuIwBQ790ePx1n3lHAE2TyYKiij6 CwICI1V5zbRvDoo5NcFDm7XYwsmZl+3pk/kr42PT/4sXpBeNFIihjWWnuY4Oqoc= X-Google-Smtp-Source: AGHT+IHBeOFCxQYTrI8MfHIwKkBSBqM9hntJdk3KZjtoSOk7dYsXXEt5GzDg6QwjzVe4x2v7iKDOJw== X-Received: by 2002:a05:6808:242:b0:3c9:70bf:6824 with SMTP id 5614622812f47-3c9852ad715mr54932b6e.7.1715098738624; Tue, 07 May 2024 09:18:58 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id mh15-20020a056214564f00b0069942e76d99sm4800030qvb.48.2024.05.07.09.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:18:58 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1s4NWr-0001Pl-DR; Tue, 07 May 2024 13:18:57 -0300 Date: Tue, 7 May 2024 13:18:57 -0300 From: Jason Gunthorpe To: Pavel Begunkov Cc: Christoph Hellwig , Mina Almasry , 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 =?utf-8?B?S8O2bmln?= , 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: <20240507161857.GA4718@ziepe.ca> References: <20240403002053.2376017-1-almasrymina@google.com> <20240403002053.2376017-3-almasrymina@google.com> <20b1c2d9-0b37-414c-b348-89684c0c0998@gmail.com> Precedence: bulk X-Mailing-List: linux-mips@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: <20b1c2d9-0b37-414c-b348-89684c0c0998@gmail.com> On Tue, May 07, 2024 at 05:05:12PM +0100, Pavel Begunkov wrote: > > even in tree if you give them enough rope, and they should not have > > that rope when the only sensible options are page/folio based kernel > > memory (incuding large/huge folios) and dmabuf. > > I believe there is at least one deep confusion here, considering you > previously mentioned Keith's pre-mapping patches. The "hooks" are not > that about in what format you pass memory, it's arguably the least > interesting part for page pool, more or less it'd circulate whatever > is given. It's more of how to have a better control over buffer lifetime > and implement a buffer pool passing data to users and empty buffers > back. Isn't that more or less exactly what dmabuf is? Why do you need another almost dma-buf thing for another project? Jason