Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp318527lqa; Sat, 27 Apr 2024 03:57:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAnXHQhsQF5JoP5tzpR+ThoDihso1q1daaZDtR4o71q2BieKAEfvDb3gax5nguxbtDV6gqJca03XRV/Yt5Mp/q6PVJmvIjeR/HX1KVXg== X-Google-Smtp-Source: AGHT+IGJeL3rXLvPFPtmBZefVJMqaOxNOxckuz+vg/MVwFEaBTq2YtG7AJNimanyglVOueNX4t7K X-Received: by 2002:a05:6830:3101:b0:6eb:da6b:75 with SMTP id b1-20020a056830310100b006ebda6b0075mr5381659ots.3.1714215465795; Sat, 27 Apr 2024 03:57:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714215465; cv=pass; d=google.com; s=arc-20160816; b=kQNLPh9JzRl5axJMm7iOgQbrbw75djWHRmhfITKqIPIr+wzbfKDKhvNhcFjNVv1dZH y4BPxM8XjDaKwtlQ04L8ftNoDDTo/MfOgHu3OGvJw2opNB89HcD/x6Zsi4zP9OM2w0BO GF81056AOEmO+eJgVZ1I2uM41jANNOyZMS/I5nr1yfAMS/AO7hkF310dx/ueUEocRT5z xtAiYTlILMmcX2u/K5TKTzUqXOZY/L4gGic+1PTt+RKItJoOAeO5so58i/Dt1XfenRfa dn+UUYL0paTfusGz2zIKrkBVkiKKQLnX//8B1PF3zAAk6OF78VSF+rE2PTz6wU7q8wGM 8hhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=fqmTGkP664boJRzjhc7S0Gtd26iWZty8vGuCMms+S1o=; fh=5m+Ye8xzy+XAZp2mD0kZbOaq0LAbBOn6TEn5Ol6T49I=; b=Q0XmdhdUsx8pftJ06aVZCAiU6ApkLPcAEdu1NEcqp2+E4oRv01lBOCOH5s2e6TvZ36 wwlXW2KK7p0M40VKx/kTUEy7lEmLx8HAY58PMAe94vuOkKiTcUeyNbMKhVlc+vSuQ7ax kodimrevDQpYz6KUvS7RB2tGfX8pEsc//92Ir8Pl4BnjcW921rMVrXLvTPSh8Ep+B6/E R+cC2UvbFOzCHDL2STs3s0k75ZYeQw3EibSqV8x4CrkwWMh+XcZdw6cB0M98ZFcZ4Din Dcop3P/p1vBfIxSa3re3jk5teEIh13hiYCpBgz3QG000vKae++KbP5kX+LzpMfA11lOf KAZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@davidwei-uk.20230601.gappssmtp.com header.s=20230601 header.b="AgC/7NYC"; arc=pass (i=1 dkim=pass dkdomain=davidwei-uk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-160814-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160814-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 n30-20020a63591e000000b005f0a5246e88si381470pgb.392.2024.04.27.03.57.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 03:57:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160814-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=@davidwei-uk.20230601.gappssmtp.com header.s=20230601 header.b="AgC/7NYC"; arc=pass (i=1 dkim=pass dkdomain=davidwei-uk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-160814-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160814-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 91A50284836 for ; Sat, 27 Apr 2024 00:18:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6895EE573; Sat, 27 Apr 2024 00:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=davidwei-uk.20230601.gappssmtp.com header.i=@davidwei-uk.20230601.gappssmtp.com header.b="AgC/7NYC" Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 F16C15228 for ; Sat, 27 Apr 2024 00:18:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714177083; cv=none; b=VujpbEnudjaM8Dun9wVG2B1opwkcbvqkFp2DXK6dJY+WIJHz9kEScjvZyIJGv0tRJ6mF7Pi+C3ZMK8wFWox9gY4Zb1JcO8yZ4G4KezyzC9Q5wKcpJViR9Gw3cZJnYYltGkeUZzE78Wn1YebzTHeouDJYwH5EOZh4wWvj8x/ILYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714177083; c=relaxed/simple; bh=0aSA9Pba2BWIzUUYQ9GkL6vLk2UckKSWzOIifjNVJiw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=b0ZvmMqotqCzmLQzlHRz/C2fk3h0TZPO/x8HEWSwvLZ8/OclxnB25VWEmxHHZ6SkN2XiwtRXsP5N1a4z5A59OoftFbrhUkQQkHsSI+862Tr3HflNo409UeHD/oOps+i6MKZ2Ycv4xPT42ahbo9o1LexUNYhbg3da1eZGzT2x1FM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=davidwei.uk; spf=none smtp.mailfrom=davidwei.uk; dkim=pass (2048-bit key) header.d=davidwei-uk.20230601.gappssmtp.com header.i=@davidwei-uk.20230601.gappssmtp.com header.b=AgC/7NYC; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=davidwei.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=davidwei.uk Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6effe9c852eso2496198b3a.3 for ; Fri, 26 Apr 2024 17:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidwei-uk.20230601.gappssmtp.com; s=20230601; t=1714177080; x=1714781880; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=fqmTGkP664boJRzjhc7S0Gtd26iWZty8vGuCMms+S1o=; b=AgC/7NYCMplu5sZrQLKtcdcy0J5IYHgECA7F0YZXUqNqNOXU19lhFKfOXT3xz9HBHm aHSDH1wC8AxHevdJ6m0DHRgvDMHmLaG4dl5p5WlxF0rkeWIDDpQf6+/vs/WKxCaWRkOO +DWkQAGW1SPuPbsMzIXaK8xDJX7qswST2wvwk1MJYacVMW2xQ45pE61smx3C8EwwXPuW awpf9dXfvZlvzuoKvLafDs2B7FQ9mpcqrwFWVO05Q/Vtd0tsmbX7rloPjFrOTCOHjtcS 02LpVAPkl3/9HWbmN9qq6lna9icZRcOTtcvnl8k4fdWiJ679IXUxXrRXH2nL2APcACMb kMIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714177080; x=1714781880; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fqmTGkP664boJRzjhc7S0Gtd26iWZty8vGuCMms+S1o=; b=oj6wThUkCR+ZjUopfrwzspo1U05513dSPzs4p/eEYZi6oL3oN1wM/gVu7917hRHhfe N67rZnVVTmC0YEjz3XZ4czkdYc1a1Hzanrr0J5HEF0hXkTONBImND7iABO7HfM5fmhJF JaTSb3K9mM8dBQf4kGcuLkMq7vxSf5XbzQeNg3Bu+kXvoFxla3ndMRtQy0Z1YlOUlG26 WgRSfczwXGM2uXqy1BpSnpBbMC8DmcwCniwfj+jhBpJa4B27iwMBdd0BCtdp6s9ECGtu qnO1TJiNJeAuB8tE9euIFVs/Noes+50wnc3nYddx6xfjgJ+fUAcIlQWKZDlW+p48fUxe pYPg== X-Forwarded-Encrypted: i=1; AJvYcCUPsHbdZyVZJHfU6kgZs63D8K1bvIgxKu1WQe7x4HWTV2ucXQIysylnSqnI2SWoChgUC7G8TuCaQkiMt1Y+JvD27DN2EhEZG5NNjJyy X-Gm-Message-State: AOJu0YzDQ7WRPrM0e/D33/07aWuUAmLQOZnX5JNKf7FdV8nphdJW7V0Y MtJ6GIvS5qyLIYrdmUsC7odWJAH8Fu7DZNss9UIHUv5Qu3IKmRt5oj/6tEe0dEc= X-Received: by 2002:a17:903:8ce:b0:1eb:5682:1ec0 with SMTP id lk14-20020a17090308ce00b001eb56821ec0mr584629plb.45.1714177080246; Fri, 26 Apr 2024 17:18:00 -0700 (PDT) Received: from ?IPV6:2a03:83e0:1256:2:c51:2090:e106:83fa? ([2620:10d:c090:500::4:916b]) by smtp.gmail.com with ESMTPSA id o9-20020a170902778900b001e51b690b7dsm16004827pll.295.2024.04.26.17.17.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Apr 2024 17:17:59 -0700 (PDT) Message-ID: <8357256a-f0e9-4640-8fec-23341fc607db@davidwei.uk> Date: Fri, 26 Apr 2024 17:17:52 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH net-next v8 07/14] page_pool: devmem support Content-Language: en-GB To: 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 Cc: "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 , =?UTF-8?Q?Christian_K=C3=B6nig?= , 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 References: <20240403002053.2376017-1-almasrymina@google.com> <20240403002053.2376017-8-almasrymina@google.com> From: David Wei In-Reply-To: <20240403002053.2376017-8-almasrymina@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 :(