🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23402

Re: [PATCH v3 2/2] alpha: enable contiguous memory allocation for coherent DMA

#23402
From: Marek Szyprowski
Date: Fri, 27 Nov 2026 08:04
59 lines
12237 bytes
On 25.11.2026 12:52, Magnus Lindholm wrote:
> On Wed, Nov 25, 2026 at 11:53 AM Uwe Kleine-König
> <u.kleine-koenig@baylibre.com> wrote:
>> On Wed, Nov 25, 2026 at 09:54:08AM +0100, Marek Szyprowski wrote:
>>> On 25.11.2026 00:22, Magnus Lindholm wrote:
>>>> Thanks for catching this and identifying the interacting commits.
>>>>
>>>> I reproduced the error on next-20261123. In
>>>> arch/alpha/kernel/pci_iommu.c, I changed:
>>>>
>>>> page = (gfp & GFP_DMA) ? NULL : dma_alloc_contiguous(dev, size, gfp);
>>>>
>>>> to:
>>>>
>>>> page = (gfp & GFP_DMA) ? NULL :
>>>> dma_alloc_contiguous(dev, size, gfp, dev_to_node(dev));
>>>>
>>>> This fixes the allmodconfig pci_iommu.o build. A full DP264 UP build
>>>> with CMA enabled also passed, as did an object build with CMA disabled.
>>>> The full allmodconfig build hit an unrelated cgroup sample error
>>>> involving PATH_MAX and LINE_MAX.
>>>>
>>>> I'd prefer to keep the Alpha tree independent of the DMA series.
>> That's up to you, but in my eyes merging in the immutable branch
>> provided by Jakub into your tree (or rebasing on top of it as suggested
>> by Marek) is really the easiest option. That way you don't have to wait
>> for the change to hit Linus' tree and there is no further need for
>> coordination or others paying attention to not create non-bisectable
>> commit graphs.
>>
>> However looking at the immutable branch I see it contains both the dma
>> API change and then separately various adaptions to ethernet drivers.
>> IMHO the immutable branch should only contain the API changes (that is
>> the commits up to 31f7e12d621b) to reduce the amount of possible
>> conflict.
> Thanks, that makes sense. I guess best is for me  to rebase the Alpha changes
> onto the shared DMA API changes and update the caller in my CMA commit.
>
> As you point out, using only the four API commits through 31f7e12d621b
> would avoid bringing the Ethernet driver conversions into the Alpha tree.
>
> Jakub, Marek, would that commit be a suitable immutable base for this?

Yes, that would also work.


> A separate stable tag at that point would be helpful.
>
> I'll then rebase, retest, and notify Mark before updating for-next.

Here is a stable tag for You, I'm sorry for the delay:

https://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux.git dma_alloc_coherent_node_api

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland
Technical Details
Message-ID: <a9a5161a-195f-497e-9dae-76142a4b5997@samsung.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372530-linux-kernel-netdev=dewy.ru
References: <20261115103809.1288167-1-linmag7@gmail.com> <20261115103809.1288167-3-linmag7@gmail.com> <awVzJMLVw4wUSqky@monoceros> <CGME20261124232303eucas1p10f2da7a94c8aa19fa4e406d089c1367e@eucas1p1.samsung.com> <CA+=Fv5QJxoxEoKxRpm5Hisdf=y+VpmM-s_VBC1tDQ2FTCfb08w@mail.gmail.com> <3467269e-9929-4c9f-bc19-847976f49527@samsung.com> <awa6Owm3eDW3EitJ@monoceros> <CA+=Fv5RttOgZp9vftYN2XfmV31TyC_o_eSejruM_bbf6v7zfBQ@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372530-linux-kernel-netdev=dewy.ru
From: m.szyprowski@samsung.com (Marek Szyprowski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v3 2/2] alpha: enable contiguous memory allocation for coherent DMA
Date: Fri, 27 Nov 2026 09:04:55 +0100
Organization: Usenet Network
Message-ID: <a9a5161a-195f-497e-9dae-76142a4b5997@samsung.com>
References: <20261115103809.1288167-1-linmag7@gmail.com> <20261115103809.1288167-3-linmag7@gmail.com> <awVzJMLVw4wUSqky@monoceros> <CGME20261124232303eucas1p10f2da7a94c8aa19fa4e406d089c1367e@eucas1p1.samsung.com> <CA+=Fv5QJxoxEoKxRpm5Hisdf=y+VpmM-s_VBC1tDQ2FTCfb08w@mail.gmail.com> <3467269e-9929-4c9f-bc19-847976f49527@samsung.com> <awa6Owm3eDW3EitJ@monoceros> <CA+=Fv5RttOgZp9vftYN2XfmV31TyC_o_eSejruM_bbf6v7zfBQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="678626"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oDJ6qkDwuOc7TxrZzGl6KdiU/no= sha256:TDUWBy7RBcmggSlg2WwzpepHj2crW2+28tq0D/S+BZo= sha1:/1HMlIC1SFzPc2wmhzsleBwADAc= sha256:P2/c8u4hwHLXdcFb5sGogOTecQKgkMj4MuYRXz4/3bs=
Content-Language: en-US
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 4492E125F14; Fri, 27 Nov 2026 11:05:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.152
X-Spam-Status: No, score=-3.152 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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=pass (1024-bit key) header.d=samsung.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 cayKAI403SYZ; Fri, 27 Nov 2026 11:05:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-372530-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=samsung.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id ACB85125F12; Fri, 27 Nov 2026 11:05:12 +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 01EC327972; Fri, 27 Nov 2026 08:05:11 +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=1795766707; b=zMVsoSlfHDQtJsQgNw+YlRBtvfeUxJPt/SWZWTjsPJ5ss4iIkuYvT9aWZv+U010JjJHB /4rGvQ6B4SXww3OQCOWVpD7umNroqY6twp6GFGzfFJqeGjuRYmIsejH30DbjyQPhK3hKn aer9B7yU3h6GUN7uVPsZdY8HgzYPY85ToLnLqEXY1A9yl+IrzsSOxNPgXDvc1crLtoq+A Anrc3DlBML/tRZvrBZuzTkh20bfvm0lYwoe9TeniE/UuEjzS0vdoFAs+2lBiukBtLOFTv OPLcek1jhwGTsCcqCRLoNN94sDz+PQ7vCTIvZZod/+hLg+F9bUamGLg7azLgwJ+ObRw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795766707; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter: DKIM-Signature:Received:Received: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: Content-Language:From:In-Reply-To:Content-Transfer-Encoding: X-CMS-MailID:X-Msg-Generator:Content-Type:X-RootMTR:X-EPHeader: X-CMS-RootMailID:References; bh=b9EsOhhl5MbUkBFLbXLeMzsujw/yfpfNAxfoGKVG51k=; b=Q0RvOInlcmoxtxIUa3fohmLD3VGIkMVAiAx5twLlPm+ciV78LajMAjw5vfqBtzdMjMeM jlW115SILwfcsj59t7tSzggTy1boNfuUzItklQqrxRRms0F73SXVDgQ5e+WN5QDeit+o+ 87d1kGBQ53r/+E3wZ8bghaElaHzLOquHOGaWaOxwsRd1Z10RnQjwZzboY+fUFbADpZ8+H lfrJBkAf0JxmCoSvJruVubc34czvGzHqULRj/HdNdLtEQj6REhgwkTHvAj3M+wuzsDzR5 g7kJqxJgBa7vxopB1ZogwdVeYPyCZBsleGO3a2soZB1FQZhkyeSjqbgLssOY1760kVA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=lmKLhork; dmarc=pass header.from=samsung.com; spf=pass smtp.mailfrom=samsung.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 38909606A336; Fri, 27 Nov 2026 08:05:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=lmKLhork
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=210.118.77.12
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795766706; b=AODHRkYdH5w/bD3f4r0HoY+HBpkChh1yJA/xFiRdugSqPWhoQOrgp2qPGOddrk5eyf3G bOEgQ8dXG+rp2Sb6tyumMvKkzUozS2H2yDDBItcbGA3qIERAfWUypkh2aSRcdYRjFxLh0 FPM5k43H0QihlhEMlxTLEP0q8GTGgF30FxaxhBHLpGR0xs6dEi6aztaJZ41y7AQzI23Yr 7wcJh1NNhQdBlkNpwt/BREXK6A0aOV7bUNZf4H2hadLPAF5t2dSgwS4+l1K79BSbmsR83 HGIFnH3/0lSLjmAh/wfCDstPNxO0PIB5DtdmuDeN1v/LxsHPlA/lDrqTA+aBJJ10dBQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795766706; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc: Content-Language:From:In-Reply-To:Content-Transfer-Encoding: X-CMS-MailID:X-Msg-Generator:Content-Type:X-RootMTR:X-EPHeader: X-CMS-RootMailID:References; bh=b9EsOhhl5MbUkBFLbXLeMzsujw/yfpfNAxfoGKVG51k=; b=AYnvdsyc9RBR1LS3lYJfUiCxvLFznwTfFnHrBmjcWionuRTRDAIzHnqKCdSFEKanSSOR bDoT+2H7A20XZDrYFbB6KPQnawyRwC7/cDw6+JKrpdxXUso+oc2CAdIUsR/29JTBO5B9e NhOZvu7a7qXtoGrlcxxawdQxOHGN7rR5GpPAUf+el2F2jYSVv96w5l2xnk9734xdl3njh D3BQ+IaY5vm5wRM+MPlaSNFn7ryolwg3lQW699A0KMVZI+P3k0LjuL8FPCYwERLQbaBY6 XdxlHuYdO9Es51D/RNmefJfAml6SrgqsLHzeT0tnlvfKVUTkA/7yTnXepMC5SZ7CnQA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=lmKLhork; arc=none smtp.remote-ip=210.118.77.12
X-Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C5A2606A323 for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 08:05:04 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9C5A2606A323
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com
X-Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20261127080456euoutp024c918844678591561c5a160979ea176a~r2EvpQ90b0967709677euoutp02W for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 08:04:56 +0000 (GMT)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20261127080456euoutp024c918844678591561c5a160979ea176a~r2EvpQ90b0967709677euoutp02W
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1795766697; bh=b9EsOhhl5MbUkBFLbXLeMzsujw/yfpfNAxfoGKVG51k=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=lmKLhorkbhc96ziVTzFCZyFRqhVWslhZeZnDqzPfl768Kl0OrzH63gjdzkdEkaj8p ezMVDO853DxbSEgRO37CBAhlVcOOzG7BjxOSX9wfF0FfHqCUPWKWrkX9hG6n+jp0eJ ym+Poojt1SNdAbG2//977sH6yzrW3gmKPixHvbNI=
X-Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20261127080456eucas1p1bd7e7242f8ec2c09eacb6e447ea94c14~r2EvOSE7M3256732567eucas1p1W; Fri, 27 Nov 2026 08:04:56 +0000 (GMT)
X-Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20261127080455eusmtip2fa0050c4f8fdaa9edae69f83622844aa~r2EuKqPjg1750517505eusmtip2x; Fri, 27 Nov 2026 08:04:55 +0000 (GMT)
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: Betterbird (Windows)
X-Cc: Jakub Kicinski <kuba@kernel.org>, richard.henderson@linaro.org, mattst88@gmail.com, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-next@vger.kernel.org, netdev@vger.kernel.org, iommu@lists.linux.dev, joro@8bytes.org, will@kernel.org, Mark Brown <broonie@kernel.org>
X-In-Reply-To: <CA+=Fv5RttOgZp9vftYN2XfmV31TyC_o_eSejruM_bbf6v7zfBQ@mail.gmail.com>
X-CMS-MailID: 20261127080456eucas1p1bd7e7242f8ec2c09eacb6e447ea94c14
X-Msg-Generator: CA
X-RootMTR: 20261124232303eucas1p10f2da7a94c8aa19fa4e406d089c1367e
X-EPHeader: CA
X-CMS-RootMailID: 20261124232303eucas1p10f2da7a94c8aa19fa4e406d089c1367e
X-Received-Bytes: 11978