Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp343480lqm; Wed, 1 May 2024 02:12:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOHiqvstjehszetpE2MiBcQETEKsqJF+vOWLe8fhWtYM7oHeTIR2CzBaqf8ryC6Q6FsSLojSIP8VhFQkO4NkV3oenxyZs0WYxvh7kqlw== X-Google-Smtp-Source: AGHT+IH4GNY4hQwDRwigfbGfE9eWWhiH0kv/3hWuHMUFQai3pE91Zd45zgiARi/0DGcufqBUVQq/ X-Received: by 2002:ac2:43c8:0:b0:51d:4472:c3f8 with SMTP id u8-20020ac243c8000000b0051d4472c3f8mr1028088lfl.35.1714554724779; Wed, 01 May 2024 02:12:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714554724; cv=pass; d=google.com; s=arc-20160816; b=FbadFhFA1Vlnrtw66UU5QFPvmrkjV7whkWZcmdHf6BWDmJ7OGEjxt4+5MiaV65KNfb Hpdm2XIhwNKlnrYI9Zrd71ow5fL44E3LHARoMbH6PXMboVJP8AAi8l3XK8HnMe5KplYE ENqKu8NaGkArxXEXYctiwi4tILgo3HiYljFpAGfHz+5NhwoZy2uqpfKs3qB6w7pjM1hP kfqwTKDkc5Kjpi++K1KxX/OC2Ev3GrAY8b1vHg8vnN6sGX5oP2mdWd/N8ftVhd1TJJTj Suj5KxYpG4Ly0nbdlBRV/tvfSCn4Sz820iKLFGRJ1jLhi3XA+Zi6fMuGTEgvDPPiv8w2 0wEg== 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=kI1xPooe0vRm8yuP/wEpOQOaMdpVY3Q57qzI2ng2xDE=; fh=BKE0bOYUYALuY8PWZPGbykQdZAEzr6Loolv/t/c1FGo=; b=C1nrCM3kpD9PRMCrL9hfI4vqS9u7hscruQOWhJnIlgFIbqiYs93M2qbCJwjMPyzYG/ 2ODGjWy4uI1oQt4zoq7M3DbDWHnUlhnGbcKMVrRABfsgY+RrFvHgj+BfgriGIQ7k+gtt oca6v+tpEd3ljjfwMLNSxNVP8JFe0jxRGmmIolJ1wnB7XyUUUn/N/wb3iEvN9okrhc2u EHavGHpsbq8r7xiqRmP0ve6SsSZqdDR9xZOhM/Nr5ISZekHoIO/1s4tVHcZgSVoY4xfX 7f2uc9dMLzPT7CAHYpodTTwkyIiLiqSkBPJ+nHeX6674jJ84+T9utdtatelIGg6jHT+C Vcjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="J/y3JC+u"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-165019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165019-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f16-20020a0564021e9000b005729ec3f02esi1426263edf.301.2024.05.01.02.12.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:12:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="J/y3JC+u"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-165019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165019-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 998A11F23EDC for ; Wed, 1 May 2024 07:56:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBF954F60D; Wed, 1 May 2024 07:55:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="J/y3JC+u" 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 A0222502B4; Wed, 1 May 2024 07:55:49 +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=1714550151; cv=none; b=UbheRwvt8tVXNQJbHs5HInW8lSQkHDLufXglXyKbI7DXh3VRygnNtzr8IdvqO6/EEg01+YbunuCM+QZtpbn0GQ/dS+w8Fh/Kw0MjrnrNHLgkcTgh2Di11IvX83elIUchyCBi+fD3Sps8APAJzUrqbdbRo/PwDWuDmcubTsDGQgQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714550151; c=relaxed/simple; bh=e/pkE3FjWcaHTM823/pyHa4coY6SVZupuk5XJFX7HP0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lvl0USUyxkI8OTt8LobySiDYQDRaKmCl1dQPOTelR/BIXAY/cdPSoObCyla1G+ENdmCqWGKhb4CLBQiUeJC6Df0jGzPLSc4uGP29U7p+QKIIEkoPVpSHwTBpxXc+nxsjPSCZ6dSmh5281TjT7tA50XeW+SpwrakGrIZ7SEEQ/FE= 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=J/y3JC+u; 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=kI1xPooe0vRm8yuP/wEpOQOaMdpVY3Q57qzI2ng2xDE=; b=J/y3JC+uNHN7m7SMPgVdFJKt/c 57BHimAAIRpRkne6SQfk+jKcX4mPvyu+LfsDNQBTgUkqHf2SQqQhIEZZSwdHTbdpMWkgT/11ht9hB d9m9qhH1gfB1Rjya9ovhLAxOneF5XWWvwMe1JtsmLEOLrNv62FaC8jPwn5YX1WihIy3V1Lgbzon06 idEKewzYL9XzxDeJg9V3m6Z2X5FxOy2xFLfj804/dqlmiDn70cjG0jOEAbGHd2zAV2O6w6R1Y2gFI qP2xH3szsl1g/rZd8JiWnJwrdS0TQeZNLg7D6Cv94PpdlQts339B/PpAS/WrgzZi4eSwWsXKkloBt e9AXXIDQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s24oe-00000008nyg-0IBv; Wed, 01 May 2024 07:55:48 +0000 Date: Wed, 1 May 2024 00:55:48 -0700 From: Christoph Hellwig To: David Wei Cc: 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 =?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 , Pavel Begunkov , Jason Gunthorpe , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi , linux-mm@kvack.org, Matthew Wilcox Subject: Re: [RFC PATCH net-next v8 07/14] page_pool: devmem support Message-ID: References: <20240403002053.2376017-1-almasrymina@google.com> <20240403002053.2376017-8-almasrymina@google.com> <8357256a-f0e9-4640-8fec-23341fc607db@davidwei.uk> 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: <8357256a-f0e9-4640-8fec-23341fc607db@davidwei.uk> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Fri, Apr 26, 2024 at 05:17:52PM -0700, David Wei wrote: > On 2024-04-02 5:20 pm, Mina Almasry wrote: > > @@ -69,20 +106,26 @@ net_iov_binding(const struct net_iov *niov) > > */ > > typedef unsigned long __bitwise netmem_ref; > > > > +static inline bool netmem_is_net_iov(const netmem_ref netmem) > > +{ > > +#if defined(CONFIG_PAGE_POOL) && defined(CONFIG_DMA_SHARED_BUFFER) > > I am guessing you added this to try and speed up the fast path? It's > overly restrictive for us since we do not need dmabuf necessarily. I > spent a bit too much time wondering why things aren't working only to > find this :( So what else do you need? I was assured last round that nothing but dmabuf and potentially the huge page case (that really just is the page provider) would get added. > ---end quoted text---