Article View: linux.kernel.netdev
Article #10562Re: [RFC 07/11] eth: ixgbe: use dma_alloc_coherent_node()
From: Robin Murphy
Date: Tue, 03 Nov 2026 14:39
Date: Tue, 03 Nov 2026 14:39
28 lines
9812 bytes
9812 bytes
On 2026-10-29 3:47 pm, Jakub Kicinski wrote: > On Thu, 29 Oct 2026 10:17:07 +0100 Marek Szyprowski wrote: >>> Agree that it's odd that the caller need to know CMA internals, but I'm >>> not sure retrying the entire DMA allocation in the helper is the right >>> way. Can the fallback be handled in dma_alloc_contigous()? I would still >>> not do that in this series, but keep as is. >> >> Definitely, I would prefer to add such fallback to dma_alloc_contigous(). > > Alright, so to be clear the plan is to stick to the "may or may not, > good luck" semantics. Yeah, given the number of different allocation paths and conditions even in dma-direct and iommu-dma, let alone the omission of all the dma_map_ops implementations, I think we have no choice but to consider the node as a hint rather than a hard requirement anyway. It's just an explicit hint for callers to optimise for CPU access, rather than the implicit default hint of "local to the device" to optimise for device access. To that end, I'd be inclined to introduce the top-level API (i.e. patch #4) first, then start wiring up the propagation through implementations underneath it - might save a tiny bit of churn, and make the intent clearer IMO. Thanks, Robin.
Technical Details
Message-ID:
<43ba7b3e-d3fe-4aa6-b689-61c2a0ff7226@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-355728-linux-kernel-netdev=dewy.ruReferences:
<20261027022528.633359-1-kuba@kernel.org> <20261027022528.633359-8-kuba@kernel.org> <87ecdb5x8k.fsf@all.your.base.are.belong.to.us> <20261027085133.2832f2f5@kernel.org> <87wlr33z6z.fsf@all.your.base.are.belong.to.us> <20261027112003.330bbded@kernel.org> <CGME20261029084721eucas1p20638037770ab8e64e7c25196b49206e0@eucas1p2.samsung.com> <87se1o51wu.fsf@all.your.base.are.belong.to.us> <abae1606-cc43-4ad4-b486-3a6e6aeed1b9@samsung.com> <20261029084756.06a2a827@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-355728-linux-kernel-netdev=dewy.ru From: robin.murphy@arm.com (Robin Murphy) Newsgroups: linux.kernel.netdev Subject: Re: [RFC 07/11] eth: ixgbe: use dma_alloc_coherent_node() Date: Tue, 3 Nov 2026 14:39:11 +0000 Organization: Usenet Network Message-ID: <43ba7b3e-d3fe-4aa6-b689-61c2a0ff7226@arm.com> References: <20261027022528.633359-1-kuba@kernel.org> <20261027022528.633359-8-kuba@kernel.org> <87ecdb5x8k.fsf@all.your.base.are.belong.to.us> <20261027085133.2832f2f5@kernel.org> <87wlr33z6z.fsf@all.your.base.are.belong.to.us> <20261027112003.330bbded@kernel.org> <CGME20261029084721eucas1p20638037770ab8e64e7c25196b49206e0@eucas1p2.samsung.com> <87se1o51wu.fsf@all.your.base.are.belong.to.us> <abae1606-cc43-4ad4-b486-3a6e6aeed1b9@samsung.com> <20261029084756.06a2a827@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3225907"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:aX+uptEMEQ1KvvKMIVJIntj4QIE= sha256:j3J5fcvmQytABw/Qld7ELk5yLqlkzxL+L2d7D1LfBw8= sha1:ofIGl19Dpy/KRT5B2BLd5M6ymLY= sha256:Z6kWNmX3vTP69FErqA6Qatt6Twosjz4aSZ3SdD/e0oY= 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 E312C11298C; Tue, 3 Nov 2026 21:01:17 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.751 X-Spam-Status: No, score=-2.751 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.249, 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=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 P2fGby0z9qWc; Tue, 3 Nov 2026 21:01:06 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-355728-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 0AA8311295F; Tue, 3 Nov 2026 21:00:55 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id CFC533B154; Tue, 3 Nov 2026 14:39:27 +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=1793716767; b=BcjnNCj98uX5w6CsvQ66sWdnluhIMD/K879gYEMaBr3po7zIyQ60ndQjfjW1N/zEFEHY pQKYtZcCHPpkTjNBjisiIslayksIorJxLBNqLmAyh485q5KxTP1QBvNIWwl2Xh54lT84n H5SbwIcr2Qim2K7Lsnk2DvMCFqAsbdo42ORBVbq8TlKRncB8icqGHTj/ka5QFpBCWlfuq UQJHOa230LxtSUv+RVFuJog0kXi/HVdh9DPQnusBUqStjQgu0uWINM8Edc+gPXQz89Puk gCyBItMzjx7y2l4jtYGvhf3qkblOFWC9TiwAd8A2FXN5Oy09ZD60b2UIc+D5H9otsIA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793716767; h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature: Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: User-Agent:Subject:To:Cc:References:From:Content-Language:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=ZvTmdzQJQ43oJnpvkWJ5Ha/sqUIEicvQIILfKh9iJY8=; b=ONYAWGnQ59ZFgaGOQwvz0IwfLhfxOlVGcTTct3rwZj1SfBjaldObJtPydmzUSqkGhipu rFLIKmBHBZKB7J/r8t1UJX75hR4PJ2X0tKvGLM5LN6RpAUh+6vxzrXdxxzkjSJoRA3FS7 OOqG3Hw3cIaxBQy575okyek6xRr7FW6ucl4Fprc0Use9Pkmj7tvGlnzl4XfAozFsMt2tM DMR0wvniP+3tDh2KkhHtsACHtnDws2SMWTr19N25tVuR6+wlB/gYtzqpPdSzYMKYtWJl2 99snB7Q+O3emjv3ahl31Vk/ceZzMSYDofxZFdfwi1GzPub9BnlFZy7el49l6KfpIMkQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=LaByCU3w; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; 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 EDE4C606A333; Tue, 3 Nov 2026 14:39:26 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=LaByCU3w X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793716766; b=fIQxzccld53Uh2PdMmxrW2zLwAj+4BaglYx0qZ0yRPahaUKipfJYozYp3p0dgKj1iY6Q RpznsQjwulLpgV775fB028GT+GYY+D6h5cvXS3ehPEowiDMPdc2mq+Hm5sGDTJCtzgMkk 0g2lXnNEJWoomFfvmepmUvnKue/MyXMUIMvfdfzlb+WaZq2RXk9ihsVPknUuUce5k26A4 gV8+ZS7Od6FS7ykPZgqN25nAbZw/53/4FLBi/bHjt1zBLEYzruCVCScJaClcf5X9LrvDx 7cf7mVWlJ5YDinvd1KBxi/5CXtusOsSEIRDwcX19wvj96xCSSP/y48xYo16J8OREnnA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793716766; h=DMARC-Filter:Received:Received:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=ZvTmdzQJQ43oJnpvkWJ5Ha/sqUIEicvQIILfKh9iJY8=; b=Ah5U4b4XkuIFhcrSiEcN2Wpzt7eb+gPAm7FdCekoeZCo+iCbyOn5w1BrRLRh+ncPpp34 dYiXgxOfwh5mBnLr6XrO1RRWc1b2VjPk8H+8wN+1w9qjUYOCcrV7yKDeje5Qmhtmp0lqW tkEqzIIxVQdNRYzeXeOHzy7rX9nX3irTQjoK4DCyw2DvgFX2WRZR6/eI5C3aAeK4YvAqz 6zzXSL+VwLa60tGYiiAhly1l1Ucgr5dQ4cGFCHChxg9AColXcLv2ayrA4FqgRgmdEY3kd 8oBrA433n9zSZQvhmmv1Gr/tYqVwUB4knvSqLq1zvGooFqbnxipUTDB5L7zePAP081w== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=LaByCU3w; arc=none smtp.remote-ip=217.140.110.172 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD013606A32F for <netdev@vger.kernel.org>; Tue, 3 Nov 2026 14:39:24 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BD013606A32F 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 B56521595; Tue, 3 Nov 2026 06:39:20 -0800 (PST) X-Received: from [10.57.17.5] (unknown [10.57.17.5]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E3A093F628; Tue, 3 Nov 2026 06:39:21 -0800 (PST) X-DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1793716763; bh=RYow06Eosvjwu34uA+SyftMMj7+vHJ5DcRL0r3RV7Og=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LaByCU3wRJGLEndoTh2zoMl7+mZ3Q589iKCQ6NhRuNT32KH4J00zXQpqOegL/GyoK GRPzTmxO22giYyRXfWmLX7U0+lrOBEer0UPD6aN7Eytd5dYxANlMjBw5TA7KDfxhmI a4q/jhxhAhHSlxwmxqXGjYzSQ5tj9g1thQHv+9Wo= 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 X-User-Agent: Mozilla Thunderbird X-Cc: Björn Töpel <bjorn@kernel.org>, 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: <20261029084756.06a2a827@kernel.org>