🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22466

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

#22466
From: Uwe Kleine-König
Date: Wed, 25 Nov 2026 10:53
67 lines
13830 bytes
--6sn276mtbb7rvtiq
Content-Type: text/plain; protected-headers=v1; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: [PATCH v3 2/2] alpha: enable contiguous memory allocation for
 coherent DMA
MIME-Version: 1.0

Hello,

On Wed, Nov 25, 2026 at 09:54:08AM +0100, Marek Szyprowski wrote:
> Hi Magnus,
>=20
> 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 =3D (gfp & GFP_DMA) ? NULL : dma_alloc_contiguous(dev, size, gfp);
> >
> > to:
> >
> > page =3D (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.

Best regards
Uwe

--6sn276mtbb7rvtiq
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmsGvgoACgkQj4D7WH0S
/k7oNAgAknak/QZHg7BqHZFzHCe4qtzYco0MHY20TLpuveFkHfRuLa9UVG2bG0Ww
LQZfbq0hnFip66k6fjmWJ+mGt0QyF7sJj/DpkCtXlI6aQtnnm3D3slJhpH/bWjue
fk1SdxjYh64pzlg1UF9rEJri73sW9fln2Gz2EK1iHllG2Z1XRGwb4bBzh6WpzAxc
AuLAWN7R4PJvFLQ+kNkR4YocW5+EV0RnYb7/i7Fb9ABP1MxCxi+4OM8+uD8MGuGZ
OFggCxgES6vXm2Ostds9EY3vRvG+zs6/ZpyofM5BxVfPInkgG1teIzoXDpivIgkA
C+dJzsR+ixI93VaJu1B++KrDBjHhlw==
=UmCO
-----END PGP SIGNATURE-----

--6sn276mtbb7rvtiq--
Technical Details
Message-ID: <awa6Owm3eDW3EitJ@monoceros>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371241-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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371241-linux-kernel-netdev=dewy.ru
From: u.kleine-koenig@baylibre.com (Uwe Kleine-König)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v3 2/2] alpha: enable contiguous memory allocation for
 coherent DMA
Date: Wed, 25 Nov 2026 11:53:00 +0100
Organization: Usenet Network
Message-ID: <awa6Owm3eDW3EitJ@monoceros>
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>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="6sn276mtbb7rvtiq"
Injection-Info: usenet.network;
	logging-data="186007"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:/6T/vRB/B1kbPy1Q9e8ju2iBjTg= sha256:MdXQ4y9prz44O1u4hKsTkJnhVF0ZF8lBdLIys8nqXZ0=
	sha1:eCloez5+lh36oHBXKSv0o9c/DsA= sha256:qXePeT/eGoXmaOo+BXQnPCBdjyT6OOQjHUK/a4C0RL0=
Content-Disposition: inline
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 2AA6A125E56; Wed, 25 Nov 2026 13:53:28 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=baylibre.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 KcB6BCHB0cuV;
	Wed, 25 Nov 2026 13:53:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371241-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=baylibre.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 314D5125E53; Wed, 25 Nov 2026 13:53:15 +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 6E0BD3D882; Wed, 25 Nov 2026 10:53: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=1795603991;
	b=n/DwxeaMw8PuLqRj8FGw1zRW42TS9PCcgl3oX//Wnu1rrLNr8FsL5uKqP9kav2YvXs1T
	 r09MIxWTgfsjsuDFTmOBcEo0cuS5N3+kVjDUBF6JnF2xx1t0WSLWriUVrEXr9zBiY173o
	 Yn0kteN4WP+WeSoBpoyRcVTmvX5A10mXTNsW/V7qFinLRNylBev1OZz6SvOiwrl6vs6ea
	 sYXSIkhRrDy4NYBYLf2SsH1LzkL9hWBvjc0s1lO5gfDanLHXfYGZZchbVZjdVlSA9Rzj1
	 paK4eJH3xfYo+Z7DPbofni3PzdblzxDNdZ0iPJV8hXzUk6DdF23fNZjzdfAS4cZ4hxA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795603991;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:Date:From:To:Cc:Subject:Message-ID:
	 References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To;
	bh=GtyqZEMexnqUKbDqv2TlW/7VEDcPuxK4TtntSukqHfg=;
	b=qhK+1VK89uSwQLTU0oqkIjUSE/ky3jBkWof22fRAnAtUJJjAIIjoSOuvKV4qvu2z7Wn6
	 2a2w6PnXQ9qUMEzio5vPUBlzHtQ3RQzmzjb5NPIpkV+/0xKpzfultIK1sq+pDfmwFy/Ki
	 oDePLl16Uwkn1k4iltH9BRcWv3+599ouB5of1hEkTdvxN2PftYOdfqIbgPRFAjES6fvo8
	 hrpp76aKQaQQ48ComWv5I5OQXxLQdRv8J2k6RTUBctzDWrhaFaTXk5wwDHf3quZA3hF1k
	 mufRuo4ifY1DMoLeMSBuGQaYuhTtmkErdlTQF9JP/mMR/TGvo9V4f4zQL9DirZ8xA/w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=ZQLLNSep;
	dmarc=pass header.from=baylibre.com;
	spf=pass smtp.mailfrom=baylibre.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 36A06606A327;
	Wed, 25 Nov 2026 10:53:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=ZQLLNSep
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.42
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795603985;
	b=kWVRQW+JQDfCYkshF08r2RKJtOS379KCkzpj8jbO+hKkJ71fACXQrCUJrFR+JOpDqUWg
	 VO/HpgyRkGYpAG6IA1wOMH0t5VyNqkI1BxroBojyuRbFS4OV/iOLKbMDY/cPT0nKIpIxT
	 jieh6d3akL1V4Hdu0Q8HWakxlMLmKoGMLL68ARXjdY3R0IDaLJ1+ZOPfeSDBTcMCKs2vQ
	 T7ogmthuG9+ASYSkU7XO+DmfIvGOvNQbVqqcNDYwuXyB4TkbfP6M2PqBm/xhmgM0Yj8Aw
	 KuruG8AJrEtSBskTxniE/3XCQc1PnUqENf0QQp8vV39Lc/gWidsLki8foavUqQ6CvHg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795603985;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To;
	bh=GtyqZEMexnqUKbDqv2TlW/7VEDcPuxK4TtntSukqHfg=;
	b=LInQEctNSubd/HTMPt1505tebpXIhCNru6APfLqEYhNRIvIqACgKZa6EmDSljXeiipbu
	 vWsKO5n9PTy4u0cL43DSAdXsVGrxsaFFSleY4JhIlIXAt/wVzai2jmznA9mmpW3op0PTh
	 YSiA/f+khguMmUQcDDQ8bqS6MxyosCOUJyXt6cuW1+K2pbXqnwrvvwClxPwSSIMt91MrZ
	 jGweOj2d2xr6OAwzs2JllvbXQd4ovvrmgBFjWVXHngW4eDE1UtReuucCJZdHBlAke4DYe
	 l8GPeXcUKoVXskAC0nqPsZ+6h7xFF6uYi1t/7z9NGud0F/At+Iazk9FdqGOxHxLQFxQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=baylibre.com;
	spf=pass smtp.mailfrom=baylibre.com;
	dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=ZQLLNSep;
	arc=none smtp.remote-ip=209.85.128.42
X-Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CD7A606A329
	for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 10:53:04 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7CD7A606A329
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=baylibre.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com
X-Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4bb9d8e8e90so27615545e9.3
        for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 02:53:04 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=baylibre.com; s=google; t=1795603983; x=1796208783; darn=vger.kernel.org;
        h=in-reply-to:content-disposition:content-type:mime-version
         :references:message-id:subject:cc:to:from:date:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=GtyqZEMexnqUKbDqv2TlW/7VEDcPuxK4TtntSukqHfg=;
        b=ZQLLNSepQaoHarrnqWeyG4f8VwH9MS+htiIaGhKRruFOrQbKn+J9w/l08zzFlA5J5c
         umSjq/J9LJyNcElsTl0fwemLQy5VpuESexyNF7A+r8IyufkqFyWYa8R/6aOM5wQ8nQEd
         qyi6yBtbjHxdkT3++ADg85sE3dTkBryDS7/uruqwp7VlLMuMk/PhLksXBqm88a3484XP
         Z02GhcPzwGG5XoLCIxR2rjn7pdeoq45tX+Fb78WOZpyT9iOjH9a0cNp+jcDDdqNvfKq/
         MHPaESzBn79lc/KQpTvzeq7MAF4+5FydeFO15G5Ei7yYiOhiMI+MEneGwF8ANdHRPoN7
         FZ7Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795603983; x=1796208783;
        h=in-reply-to:content-disposition:content-type:mime-version
         :references:message-id:subject:cc:to:from:date:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=GtyqZEMexnqUKbDqv2TlW/7VEDcPuxK4TtntSukqHfg=;
        b=TSZGPrnRHOsrQ9FWHt1Gzv8HBg2GRu0Mjgvp3s98tOQd7FQVs/MgFQWIqI6/M7K44I
         TspsSkd5jTTWgzKrET23lW8EMyW8w4isluvocPiH0hHJkopL5wGbFlmaw0/kHWlUyn54
         D+8DnLh3ZhlOuA4O7SeWUQ3kPbCbRR3r9nLJgaybCZXowll88QKOcVTCppxmkBgI0hTm
         oekybOsbL+5SSDGb4bisAz7EagE6F47DuGo5csHxfut5OuLgJ2vyWwY/21ETGpGe+COH
         ZUaBMnMq/40+UJD4PkDohfpHXBw9gzUwiApFH/chU1pZtCV5/gQPo5oj+BUS8QccPhrI
         jdkA==
X-Forwarded-Encrypted: i=1; AL+hErEfUhupaHDBx0Tr7mocPG1pOVloAq4zIuMJzyLWhaFphl2KLxcrDUHvWd2pZR7kKA3ymQoZrlI=@vger.kernel.org
X-Gm-Message-State: APuU4Z8oDqqjwLcM0EkMKQOnQNoMCpROety9jpABIgYcpbvVsAo9bF8F
	ou9z/FSu6ARv4MqDp5aRl35ifyzx6lfebKLhxtqM03SGt9NoRRewMC5VVyqiGxNslOogWIeu2/0
	feWDQ
X-Gm-Gg: AZFdTZdH1p7ZdTIY4+yjDhdFOpZxw/uabWkhp+IyBBdr5MSAzCodM083BgwDT+rb8e4
	51FFtlqoyYlDV28Z/Qun/KXHntNofkf/P0ZxLiUuc8wtPfd+n+9a92fKy9RUhtIbjKphNVueEWK
	fgIqRgKdG5FKUDWpHeXJSRJUuIWzGzdX/VXmJiotWmu6WNk4bEc6dznBpi6yg6faCVUTE0C+O0P
	Y7o4QFBK1jrntilC6knp9v6Y+ftcNEXh7d7ZyWm/Zkho41Bxz/9wGYUjjKJNzyXGdZ+B9KDPN7L
	56NxqA8THFOAqBK7Pc0TyfBed4cNMxLpqs7OcxJA90mMZfqE/sU8FbrXKsVuqiNPai/Ow4NSUrd
	l0uoHrUXLWQ/dQPQZN2VXPLwsNRUjfO7TCyUCDeVyOLC1weIfBJsykmM24LkgFNgGv3K5UP4zY3
	4g1Ds+xJBZ8AbPtDw21FdheQsp6YmX9NgI6n2gNKbDtO7BEBJpaSjEUBSxYH+DDsNa6xY54pz+a
	JEt8pkUO6JyemM2LaVIHndBN8hjXixHUZwXuO9rNItg/8uRJgzzwmv9yGBMIMUXXmAkFY4PlE4X
	JdE6W6XNmJ/nHr0PKdluCpqjjPmXPjRKEWAXTGKXGQftGxmhCIaIqvDPHQicdLFMMWiUILsH8aY
	hxNARdMlZxPq3kRqP
X-Received: by 2002:a05:600c:638f:b0:4aa:2339:a375 with SMTP id 5b1f17b1804b1-4bb8880607cmr329616615e9.13.1795603982845;
        Wed, 25 Nov 2026 02:53:02 -0800 (PST)
X-Received: from localhost (p200300f65f19a9043ef7230869dfba63.dip0.t-ipconnect.de. [2003:f6:5f19:a904:3ef7:2308:69df:ba63])
        by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-4bb853a12acsm539176075e9.8.2026.11.25.02.53.01
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Wed, 25 Nov 2026 02:53:02 -0800 (PST)
X-Cc: 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-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-In-Reply-To: <3467269e-9929-4c9f-bc19-847976f49527@samsung.com>