๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22018

Re: [PATCH net-next v9 05/14] net: ethernet: cortina: Correct free queue DMA mappings

#22018
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 18:29
62 lines
10299 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] Commit "net: ethernet: cortina: Correct free queue DMA mappings"
  fixes a user-visible RX bug but has no Fixes: tag and no Cc: stable.

--

net: ethernet: cortina: Correct free queue DMA mappings

This patch keeps each free queue page's DMA base separate from the
fragment iterator in geth_freeq_alloc_map_page(). It also removes the
replacement unmap, which hit the wrong buffer. The page lookup is
reworked to derive fragment offsets from the saved DMA base under
freeq_lock, and mappings that do not fit in the 32-bit hardware
descriptors are now rejected.

> The locked linear scan is temporary: the following "Index free queue
> fragments with XArray" patch removes it. Backport this change together
> with that patch, "Preserve in-flight free queue pages" and "Recycle
> claimed free queue pages", which complete the mapping lifetime and DMA
> synchronization fixes.
>
> Signed-off-by: Linus Walleij <linusw@kernel.org>

[Severity: Low]
Should this patch carry a Fixes: tag and Cc: stable?

The commit message describes a user-visible RX regression: frames dropped
with "could not find mapping", or the wrong page attached to the skb and
the wrong page reference dropped.

Blame on the baseline puts the whole block in the original driver
submission:

  - the dma_map_single() result being advanced by the fragment loop
  - the replacement dma_unmap_single() reading back the new buf_adr
  - the "gpage->mapping = mapping" assignment

That submission is:

  4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")

The backport request is only in the prose above. Stable and AUTOSEL
tooling relies on Fixes: and Cc: stable trailers to pick up patches. As
things stand, this fix and the three follow-up patches it depends on might
not get picked up at all, or only some of them might.

Would it make sense to add this?

  Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")

It could also help to state the dependency on the follow-up patches in a
form stable tooling can use. Another option is to give the related
patches in the series matching tags.

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120-gemini-ethernet-fixes-3-v9-0-298671d799d5%40kernel.org
Technical Details
Message-ID: <179554499289.3135.9641556337267478791@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370674-linux-kernel-netdev=dewy.ru
References: <20261120-gemini-ethernet-fixes-3-v9-5-298671d799d5@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370674-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v9 05/14] net: ethernet: cortina: Correct free
 queue DMA mappings
Date: Tue, 24 Nov 2026 18:29:52 +0000
Organization: Usenet Network
Message-ID: <179554499289.3135.9641556337267478791@kernel.org>
References: <20261120-gemini-ethernet-fixes-3-v9-5-298671d799d5@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="9438"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:z7zgTCeIJ2W8eSieq0Qsu/iya5k= sha256:527ZYTJ6NM9qcF7nxGW/11IY9VYGHpEaIEpdqRztmqE=
	sha1:vnYguiZjezVbY7ACo9OUzMXYZSM= sha256:GS8VDIEbcmJ8j4loEjEi7fNnBgXSehSFVEVhnpKpc6w=
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 7E741125E2D; Tue, 24 Nov 2026 21:30:18 +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 s92lLi1IsVlG;
	Tue, 24 Nov 2026 21:30:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370674-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 75153125E22; Tue, 24 Nov 2026 21:30:06 +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 A4A5D37CAC; Tue, 24 Nov 2026 18:29:55 +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=1795544995;
	b=fCOFsw+MTEBdEwXMyg7mEkCAyUE6Q1ZIz0lBk00h/n+k+LzZkwnFcuDqtOkmdEHdBqVP
	 B+Pw8OF0P6Ro9FuqtuWU247AfcjZxVvQRBtSOjp5sEdGSPkXSJ7OVtce83j8sbdapl8Na
	 gNqRotfgw7t6bsScMi3LMe/HvWUetwQa5uDrhCBqWJlILDRe8+KZzlEiEqLS4PYtn5z1i
	 +PGWlHq0MfXFy3rKxbu70Le7BwdQthrsx1ZTZjuHovAky3XaH+li1od8mvg+xhFOm94SE
	 pg5CMo/V65bdkeNPcpjGhmI58q8g3VnByPuniH6xrfhtQHMYuxP4hFNlXe2GoyXqfIg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795544995;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=vrTyhZhYEo6i2Q92C95rkSIqw8Jb0w5TP8tyi2s2cL0=;
	b=XpW0syV9tWHdjhrKsDAP1xzriPUprdCMiZFr3qHDRxYP59K6O1ER1N8M6K8h8tKsznmO
	 bffpowfi9nrcYjlho1dbPdgx6TqwzbGkFkHO9EZe54FtQ25BG4LzSvCXD6ezmJhtuY979
	 6grkD7AAZWH+QliVZIftfedbdMHKbNoLkYfAhxoABhBJ3hf44yi11StvCX+pHWz1v5o/s
	 C3v2jtm6Kn9bfWCxDcPVZ5Bwnh0oKRIVFTlaeFDahzdpU3rJ+qW4fUq9aI3ZNUAoXlYKz
	 HBID+TCsp6Yx+r7DfRs3tRqMsRpA0fSBt6xhEeV3tPwjS3HDGqM8bgTUkRPtXztj7gA==
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=XAUL68yG;
	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 6A2CB606A32D;
	Tue, 24 Nov 2026 18:29:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XAUL68yG
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=1795544994;
	b=lkbqhAZZMLoXjHdN0xixZXiYyGKCaUWZI3Uo1aawqNjQLrurdMJACnrWxM5f+dg2Ecl6
	 rQqpTlQhATYrzS37+x3e6NzyQ3v70MlNmEbLx6h/1vEusOkaxz2OeS2bbiiuP/edCyKJ+
	 lMhswaZ0AZgNcaW2ZF7mVn5tQjsBRqbjTZmqo5xhfGL7OJvNxAc5mJOPII1t3a+GNPQlJ
	 nCExNWzsWw5QmbdJBHXDqu57tPMOfr7ANch9U1vpf4b+NtQibAlJ9Duze55GjnHIXGgLl
	 h4rIPNyot8lji/x1Fg6VaHdslfes0Z0avVU2NReq4edfmf8vzzJkeEc+yvdF/30f6Ow==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795544994;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=vrTyhZhYEo6i2Q92C95rkSIqw8Jb0w5TP8tyi2s2cL0=;
	b=TAg0wSACvJzYeEWGka6qkpyS5K3Wh+flopVwxZ4TUYSeLDGu6e5kralSOuS2nX3/poRQ
	 oYqz88kQlm0F93zfj+7jk+2p/ToaKEOVLPyJzTVG2inOy7bJnm0C1oUr4VQkWkcNF3E8P
	 hSv5PtfKNmAVaW8V1AMLVAcmuTbRr3naEWwz8S5yIASMcFy+J7qjM2ggHBtc/PwngrgbM
	 CKdkgnmgGlkLNswFqFBEq7u9tjm6jk34kvTZTVSQoMM65jVQFF7FgtGkvmOSi0wNK8eVf
	 CSPZkltF3rTYv4C6ls1Uja2liqw3F3+PMkweAFIFePmObBCtt8DAyW6tXSOEOKyPSwQ==
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=XAUL68yG;
	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 884B4606A32C
	for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 18:29:54 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61A551F000D0;
	Tue, 24 Nov 2026 18:29:53 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795544994;
	bh=vrTyhZhYEo6i2Q92C95rkSIqw8Jb0w5TP8tyi2s2cL0=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=XAUL68yGaRk9iNAr/HyU7jTcsNyzo4XLIgVom/SlL9hJkpto3wnaJSndKFwMulmFr
	 8N+Io+T3zTDDshe8A0dxD98CI9GFuN7AeACsFn3HjYtHxzDZmX5eYQ8z0rgt9Tsk78
	 FeBrS/06f1SkRCgMnDhqETYPrdQxbD5dibaPFPq3xVhbL9noTic0/8ZYxnTSucOgYb
	 AlIuPmFSZAxWkM5jyGOxERJovDPNU3jvxPIdL5tykFb0sW/Hqm7ks0bMnIQTJAV0N3
	 mf7cDCz6bd3K5X5OD71iMXfcSBv5syyXYINvDuVZDQGWe6uJR5mGf6T1/Lk8FDxIdV
	 EdZ4syOhakpvw==
X-Cc: ulli.kroll@googlemail.com, andrew+netdev@lunn.ch, davem@davemloft.net,
 kuba@kernel.org, pabeni@redhat.com, mirq-linux@rere.qmqm.pl,
 mhun512@gmail.com, edumazet@kernel.org, netdev@vger.kernel.org
X-In-Reply-To: <20261120-gemini-ethernet-fixes-3-v9-5-298671d799d5@kernel.org>
X-sashiko-severity: Low
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