Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp53568lql; Tue, 7 May 2024 09:31:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUreRRYQOG7Jx2468Ev9/w32LvwMV49ZEKmp39wFAWuTpYOx8p0AO5hE+9PkEJvgIzZDEfHnph0zQd7hliAbzZCnUa6Vf+U/i4FFnX+gQ== X-Google-Smtp-Source: AGHT+IEVQ5mVQ4w2QyEgmOziBEt6oRao6TM3ZI3/Q1nNCL4T9srQpBSUdXUpwEXO2i/ibtSUNJ20 X-Received: by 2002:a17:902:cf0a:b0:1ec:2517:3a06 with SMTP id d9443c01a7336-1eeb0197642mr1687095ad.27.1715099469466; Tue, 07 May 2024 09:31:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715099469; cv=pass; d=google.com; s=arc-20160816; b=q7m04Zgd1x6hQjOtH4KCX8swgNGjmGUzah1kTKq5tfLExUWFwCE7T8K3a+QAiibKny WBtzLSDpebvqsRwt1mcdjASi2b4CTEIWUuzWcQF9UezQsQwtZjE8mqxr6smuvGG4qJHE DAOfmF97GzzkPw9fsIUER6cuJJ3IfScWnz66UBrDIvxNGital+zZ1rZJn0+H4RUO7Qxe K2tHaJFoctK5LZvFPK4aoIh88L2BVfjzNolmy6WD1nzAeExEc4jyK5viJTvxyo5Q9zTE Vjr08OjgTm+efp3H9qP11+e4u1+d224l7s75E+VJ7sUi76+BYCdEDbxEPm1x6M69gOpq QCgw== 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=mpA0imZ1JqdhWIK1ORQBd9/L74Ck+FsRXQUsgUAbnpw=; fh=vjhERvseUtv2Bw9j/Niy0MtnpblFThSYMTjGwm1cul8=; b=TJhrXprS7Wg3Gy+A5LweOVz5hHfDEbC78yXI3S4wUPBWbuAo9mmJrkZYB5XDP+xxp5 CTMU+PWr6q4HiB6XIgkvi+fIBh0aDl/wotQ0P/e99mhzpp314wMeicLcDmXDKdCGZ0Sl CfePPv1HiKSdmYmP/shnwPyMbth8MCWzC+OjSktU496UGbd0Twy22cpHkqfuYTZX/0qF RpSKu7/Uap1SiFqfpK5ctu9LGrAjQjeVbUSCZB3SBV67VgnBJPaDydOPSgl/SoKY/VIs RyFytFl1mHyWC+zibp7jiXXiGj/+FS80cWLUdqr7VtlhP6y122yPIeSRUFbq5C/1l+WW +tmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=opveKBa6; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-171782-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171782-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 b3-20020a170902e94300b001ec2c2393e3si10924144pll.634.2024.05.07.09.31.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:31:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171782-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=opveKBa6; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-171782-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171782-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 4BACA28D965 for ; Tue, 7 May 2024 16:19:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1794D16C850; Tue, 7 May 2024 16:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="opveKBa6" Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 96A3016C699 for ; Tue, 7 May 2024 16:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715098742; cv=none; b=N4TxJHngdml/wzW72ExtRm8/8sLPHe5NFf+HlKhbKxJS2f1QxGb/Kr8rMHkNXHtYeW4Tvw7gJQdUI6QEjtVpRdxPfCNfUvGoJEsPIM2ycoz2j6aiuxtyJsnc4v9uG60wePazL8sv1NItGyQwMGHXwHp2fY8Tms84oA4oV/UG/P4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715098742; 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=j6mi1gjJNlDEwidsjP/6VmkeF3rE8pjLsEi2nmUwiNIjzVPkqlZKqK0Pw5Kr0U2SORnJSD/vgGJ9VCe8AWHijjbRw8mJeCax6td4UOds/wMZM1JP3qIG4OFKCXxEYIvPLYbABaNoK+K6FY0LL2LAM6RedWQzvNKtOTkbpO9NWeA= 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=opveKBa6; arc=none smtp.client-ip=209.85.167.176 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-oi1-f176.google.com with SMTP id 5614622812f47-3c97066a668so739159b6e.0 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=1715098738; x=1715703538; 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=opveKBa68KDbotBwf+SHOGwR3L1ZEqcrdU071diK37U0beD4PU9lO4RkVxKP0Py0Ic YnHD+bPzb79ZIWtRKfMvo7fg51hCnMP2Nc1DMug+5gHJLpkJxs143i+EJJeVaZLIb8ON Hki4ApLOWCcRKhlk6LPk3jWJ9kuNTTOmPAze0955YfA3lIifckMzLgXCDhRjH9U7pp87 QUEreZiAHX+Msr+MM3DRBDfLpxxyehEdPpU2r8XeTFJFXvDPDYkMt/Tgt9MJbgrJ5hIX Hve75qz7JpJG2KiWTu0envqkVVDR2M607agTGZ4qrNRqOL8pdgHhP4A5KJXcmBa0rAqU 5CNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715098738; x=1715703538; 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=cgsGADaqrJsYt+yYCH8eezSjDYJa0SktxcZywRw2/3g8AvYEAIKuVecQ/EKQMcPpki mCdS2rKcWRhEeYhwSCqOMB16CgP8ZO/4laJ6edIQ6jIT2BSJeBWstgrfVen/puRbbGgQ r9qOGLC7lJ525Xra12MvSl0DJcgehKu+X7VMgraLLNAOGHJDMwZZQPO/89XivK2m80r7 1mC0JTTdla3Fnmwg1RklgU/37+YxBI/Owr+fpMvbauy6zhKdG9Bs/B/2GBDKzWmMg7LG xezOuzXl84MpJJp48/mqFpumVnBMCP14hWHfSGR4HWC/AjQ6wG+3V+BCftY0JrpTOYzp HGmw== X-Forwarded-Encrypted: i=1; AJvYcCVZWlMS/yL2FkXxnE4Q1uUBiEPxGK30JADOuYl88h6jiyfAooehYYfXRI/DhnP2CfY8x75mpdgwr73AmaitVN535GkxbdebafkP7F7f X-Gm-Message-State: AOJu0YzBx4DWCDnwPlkwtM01rjk/jDwIFhcFypKQyp+zjTBEpzQe4Vtn tAJt/9bayaAbanMAaOhQJhAOplGLZSOjsu8eIXKhtiHT8xBnynKih3gdHceg3cE= 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-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: <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