Article View: linux.kernel.netdev
Article #2751Re: [RFC: DMA_PMD 00/22] DMA_PMD: PMD_SIZE-backed IO buffer pools
From: Robin Murphy
Date: Tue, 13 Oct 2026 10:42
Date: Tue, 13 Oct 2026 10:42
40 lines
8501 bytes
8501 bytes
On 12/10/2026 8:43 pm, David Hildenbrand (Arm) wrote: > On 10/12/26 16:45, Luigi Rizzo wrote: >> On Mon, Oct 12, 2026 at 3:51 PM David Hildenbrand (Arm) >> <david@kernel.org> wrote: >>> >>> On 10/3/26 23:22, Luigi Rizzo wrote: >>>> Here is a subsystem called DMA_PMD on which I would like feedback on >>>> architecture, possible enhancements, or kernel components that could be >>>> reused to avoid duplication. >>> >>> Here is a feedback to a subsystem called DMA_PMD ;) >>> >>> Why is basing this on PMDs (and embedding it in the name) the right approach? >>> >>> On architctures with large PMDs (512 MiB on arm64 with 64k), would we really >>> want to use 512 MiB pages, or rather something smaller (e.g., 2 MiB) that might >>> possibly also have TLB benefits (cont-pte)? >> >> I had to call it something... an earlier prototype used the name IOMMU_2M, >> but I didn't want to suggest that the design was limited to 2M (it is not). >> >> Aside from the name, the _current_ prototype restricts to 2M allocations, >> exactly because too large units are expensive and wasteful. >> >> In the code, decoupling the allocation size from the PMD size is trivial. > > Yeah, we should do that. > > We should probably just find a way to describe that this is a POOL that focuses > on physical contiguity in some configured granularity. And since it's intended for DMA we could call it dma_pool and oh look it already exists... Sure the current implementation is capped at PAGE_SIZE for allocation (and thus mapping too), but I don't see why that couldn't just be made more flexible. Thanks, Robin.
Technical Details
Message-ID:
<4fda41ed-741b-4c5f-ae83-e3ea5a447441@arm.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345561-linux-kernel-netdev=dewy.ruReferences:
<20261003212241.3432303-1-lrizzo@google.com> <0cc1cac1-a500-489b-9c1b-b49598b5550b@kernel.org> <CAMOZA0JaiKsRgDdjHkL_N+MshhcyLSv+cT9SzEbNsC_sumHvOw@mail.gmail.com> <b31efcd5-149c-4edf-81a2-1744d363c390@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345561-linux-kernel-netdev=dewy.ru From: robin.murphy@arm.com (Robin Murphy) Newsgroups: linux.kernel.netdev Subject: Re: [RFC: DMA_PMD 00/22] DMA_PMD: PMD_SIZE-backed IO buffer pools Date: Tue, 13 Oct 2026 11:42:09 +0100 Organization: Usenet Network Message-ID: <4fda41ed-741b-4c5f-ae83-e3ea5a447441@arm.com> References: <20261003212241.3432303-1-lrizzo@google.com> <0cc1cac1-a500-489b-9c1b-b49598b5550b@kernel.org> <CAMOZA0JaiKsRgDdjHkL_N+MshhcyLSv+cT9SzEbNsC_sumHvOw@mail.gmail.com> <b31efcd5-149c-4edf-81a2-1744d363c390@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2036388"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:42lPT4X8THtlrqbNBp6aSuK0hn4= sha256:XMSBT4BtMSH/vnxmD5MBY4ViqNuZFDHdwTZ5yBQeDi4= sha1:gMLm4fyAl9+FmGwxL0RHe+y7cM8= sha256:87t1qSBRkG4vydJbfWsuccEmg0tfBMSrr9CEAmgZqxg= Content-Language: en-GB List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 750DC10FE23; Tue, 13 Oct 2026 14:36:49 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.45 X-Spam-Status: No, score=-0.45 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=neutral reason="invalid (public key: DNS error: query timed out)" header.d=arm.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nnG6YZkkVkE1; Tue, 13 Oct 2026 14:36:37 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-345561-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=arm.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id E9E3110FE17; Tue, 13 Oct 2026 14:36:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id C425F1004CD; Tue, 13 Oct 2026 10:43:11 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C53114B04A8; Tue, 13 Oct 2026 10:42:18 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="p4vMjRtm" X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F6703A0E80; Tue, 13 Oct 2026 10:42:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791888138; cv=none; b=ufEfuDjQf+wAjJHG04I+f4sRl+6R4uJF5Ih7BlHlRdjbcwDRDJ7/CkrwnEJCgda8n3NmT6baAzGHCiwrtUTnvTCmFd6kymOKVrcVWyp/qFneVfFDACBtA68v81eIYeU3lZOr5YFjH8uwfBLSP1NR/Igmlied2n4yggIIE7YBt9Q= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791888138; c=relaxed/simple; bh=W9IOmZd6NCBQxQe8yp/0nFe31/tEy/JGEmdFhfz3Zx0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Yhq9SLTs0K8baeyNt/RVdBgLyeGe8YFeHSrsnbJXGXqokSudPU0s12TXAFaHUUGuVbhrdPTzkuMygjksv3ugjfeyvcOEw0iXOQ4s6Q5aHbQTpV3UXyaJpadH0TqOjiYSQt10XFRMTRCPQJRhhxWN+RfghnkndrpOKHjTQ9RLnBg= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=p4vMjRtm; arc=none smtp.client-ip=217.140.110.172 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 53FBA169C; Tue, 13 Oct 2026 03:42:13 -0700 (PDT) X-Received: from [10.2.212.23] (e121345-lin.cambridge.arm.com [10.2.212.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C226D3F7B4; Tue, 13 Oct 2026 03:42:11 -0700 (PDT) X-DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1791888136; bh=W9IOmZd6NCBQxQe8yp/0nFe31/tEy/JGEmdFhfz3Zx0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=p4vMjRtm+hGJY8UPjqMDOtxJKflXmrP2vqY/17xouBvpxZsfR430vOeHQp+g4HZHp i7cTDvCFclitDTgkIqF0/Rs5AUZgo0y+FddOHuWp92YB0Xjt5EVyzFCvtHFSv8ObTr iK08tMyzkAMpaUd65pUDChJk7GDyTxVjCmLAWF0c= X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-User-Agent: Mozilla Thunderbird X-Cc: Luigi Rizzo <rizzo.unipi@gmail.com>, Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, Christoph Hellwig <hch@lst.de>, Marek Szyprowski <m.szyprowski@samsung.com>, Andrew Morton <akpm@linux-foundation.org>, Vlastimil Babka <vbabka@kernel.org>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J . Wysocki" <rafael@kernel.org>, Danilo Krummrich <dakr@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Jesper Dangaard Brouer <hawk@kernel.org>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Willem de Bruijn <willemb@google.com>, Kuniyuki Iwashima <kuniyu@google.com>, Joshua Washington <joshwash@google.com>, Harshitha Ramamurthy <hramamurthy@google.com>, Saeed Mahameed <saeedm@nvidia.com>, Tariq Toukan <tariqt@nvidia.com>, Tony Nguyen <anthony.l.nguyen@intel.com>, Przemek Kitszel <przemyslaw.kitszel@intel.com>, Alexander Lobakin <aleksander.lobakin@intel.com>, Michael Chan <michael.chan@broadcom.com>, Pavan Chebbi <pavan.chebbi@broadcom.com>, iommu@lists.linux.dev, netdev@vger.kernel.org, linux-mm@kvack.org, driver-core@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <b31efcd5-149c-4edf-81a2-1744d363c390@kernel.org>