Article View: linux.kernel.netdev
Article #7972Re: [RFC 04/11] dma-mapping: add dma_alloc_attrs_node() and dma_alloc_coherent_node()
From: Jakub Kicinski
Date: Tue, 27 Oct 2026 15:53
Date: Tue, 27 Oct 2026 15:53
21 lines
8496 bytes
8496 bytes
On Tue, 27 Oct 2026 10:03:43 +0100 Björn Töpel wrote: > > +:: > > + > > + void * > > + dma_alloc_coherent_node(struct device *dev, size_t size, > > + dma_addr_t *dma_handle, gfp_t flag, int node) > > + > > +Same as dma_alloc_coherent(), but places the memory on the given NUMA node > > +rather than on the node of the device. This is useful for memory accessed > > +frequently by both the device and a CPU on a different node, for example > > +descriptor rings serviced by that CPU. Pass NUMA_NO_NODE for no preference. > > nit: maybe mention that callers that want the device-node semantics need > to pass dev_to_node(dev) themselves? Let me just remove the NUMA_NO_NODE suggestion.
Technical Details
Message-ID:
<20261027085345.2a99169e@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352533-linux-kernel-netdev=dewy.ruReferences:
<20261027022528.633359-1-kuba@kernel.org> <20261027022528.633359-5-kuba@kernel.org> <87ik2n5xcg.fsf@all.your.base.are.belong.to.us>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-352533-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [RFC 04/11] dma-mapping: add dma_alloc_attrs_node() and dma_alloc_coherent_node() Date: Tue, 27 Oct 2026 08:53:45 -0700 Organization: Usenet Network Message-ID: <20261027085345.2a99169e@kernel.org> References: <20261027022528.633359-1-kuba@kernel.org> <20261027022528.633359-5-kuba@kernel.org> <87ik2n5xcg.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="1575367"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:YAUfgrJ5/hwHl9anySNEBGN6ITE= sha256:jV0fRqsWMoVY7s9AslhC1nGnpY16Xb225DiqFWlJYKE= sha1:uL/m59bG2MaAnt6xzZynfmGYWzU= sha256:nfdWB3Bpeilr8FPYG5wNltomAwkyg9vcupZD7cnAuJs= 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 16C7E125C08; Tue, 27 Oct 2026 19:04:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org 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 DPFJBNbErE3U; Tue, 27 Oct 2026 19:04:06 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352533-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 01842125C06; Tue, 27 Oct 2026 19:03:56 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 8B4E960FE1; Tue, 27 Oct 2026 15:54:06 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793116432; b=VR06jeEbz66ZaolfgpEvlxdq11NZN6ObXx+4F3z4eoAAKjQ0mUmubRAM4wNbtUoxG6kF 9k0pIT9MPzn14zaPKf7WC9QoM49ihAmKce9BPtsKyd55G3fJy+CGQhD7WSibshAz1xBZh j6KoDzIykXXFBKn6xfbw166jKRbo+ntTms2uDQyslGaRNGWNlVVBrwtGgHmpLu1x8Yt5i NtI1er9yxqcSkqI/kroEdlajpEi9vm5i27/gyfVs6gk+uRx1UDvqebNi/8gZKvyruFJx9 FfdttJUMt/rgPIqe/u01HwLoNSV19CGKRX7DibcwOYuDW3vCWin+JgiGoomFMK5vweA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793116432; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=+0hZiKgcZsHFq0w/7lZGv1c9XJqhADo8OLnx86Afq6I=; b=ZQL7n8tCYZXQUIeuAIBolR7B1/4BWfUNvcZNjL7oiiSM0nWgg8JFTBf+UTXTaCxy3jAH BrEomU/5/M6PGxCLuWdXLZuBKeVLJ0d+8K2p+PBEM2ScQo8Jvte/yazSOI0YuEFHzno3n 8shz0nJHsUhD4bgrWo513+OfqdNDetVuPGaP22ARvat4RI874bOOk14WaCkJVW+irzpO5 Xzi4oraLXhbaDkzXw9zT2+D8+LCd0RiZ4xVgH1HU87Z2FAiJrRfT9tIQRvebvxh7x7KNB yh03qw8ZlKbkovNbeJDay3LHF4t0zfEBBTme+2LPiW7CmYK08r7R9lOFnsaljs105Bw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="fKjfHe/2"; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3C98606A330; Tue, 27 Oct 2026 15:53:52 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fKjfHe/2 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793116426; b=MkMFlp1wUkt6l02lXaXop5b7HfgpMsKx8DCHqryRFgmdrasbyT7XkdD2cZ6ycfQPh7UJ SqcQPIdLnLO5nZ8jcgGrgesGEgxXdBrMpRkn02ghk9QZEGQEiJderIa509+7RIK9LUJNZ 5L1/mdO+k9rEJyQB1nyxQbULNhoXw+y34uAKz0A5E+go1SJ34Nj67o2eOcMDaaLEQrGhg WW3fGxELYPh3Baky/3Uagqt/MQ0Nt2ZeeeWxVU7S1tJKU2iDB1+PvPXZkQVjC5oOiUvBX i39I45Momxt1EYYRYO9/xYqHr4Zd2HhmTp0eN/YUAUTjB0NgWlnTkHBnYSNmo6Me7KQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793116426; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=+0hZiKgcZsHFq0w/7lZGv1c9XJqhADo8OLnx86Afq6I=; b=zgp3UxIzO8EjCcbtwnNEIHTNtQaxWWUvHjnY1uiGnWpSuzstLz5SJ7PZcbfB7ps6pgRd uU2zsi2oghd4SS7Xvx8YaVCdIIhE7Iyyr7q/4zbRnhcHeu+1YCGR/INeaFHHzAAu4Z35L 36Rz/L3VYomIqCRSBCHLpvRYy6aTGMcsF9u9GpK8QTqlVdlh9cgC29R/0ilslAMkvVcXD qZDZ18Yd2h2yeZzayu2pj3bzP0RIUaXVVCKby9NlNJ8CrxgF7VA/VVAdCgB7JD5mkhqOx dJcnarzog8uGlUCa0kisH7nJDe3yipGvqIL5ylUIfYk6NSKV+F9uHe6sq0ZMcuj28IA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="fKjfHe/2"; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 998F5606A320; Tue, 27 Oct 2026 15:53:46 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E26CC1F012C1; Tue, 27 Oct 2026 15:53:45 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793116426; bh=+0hZiKgcZsHFq0w/7lZGv1c9XJqhADo8OLnx86Afq6I=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=fKjfHe/22YcSPbPgSxjYdC1lHhVznvaZHKwfQ+YP2ZkaDSDIRU4TAFoy3A2VOsCIg smvoxGhABUMLOaoUfsTSEMSB8I96UNiFyD80bM+u+25n8amgQqgNSSn7SbGYI6tCaI eQ3I8T8Hwn0KJx/lk+W0vQ7yn1UzCDBkR7IDqN9TBEvgwD3mGn/y5NY440DMCHrxfW L2nMIPaSBPhmDDiRoZrYFY3sPV5d2ILr/1HnoE5ERXQkZXugYeDb/YDMHYpowN6Ghz M8KBWnNfbqy2Ew56ut0YoLaq4p24nfUJZ3fK4520VGZq6aEz+0ROrnlhQKv3387MO8 tX0rXnCaSq0wg== X-Cc: robin.murphy@arm.com, m.szyprowski@samsung.com, tglx@kernel.org, dave.hansen@linux.intel.com, x86@kernel.org, joro@8bytes.org, will@kernel.org, leon@kernel.org, mbloch@nvidia.com, iommu@lists.linux.dev, netdev@vger.kernel.org X-In-Reply-To: <87ik2n5xcg.fsf@all.your.base.are.belong.to.us> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list