🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25182

Re: [PATCH net v4 07/10] net: au1000: restore RX buffer addresses when restarting the MAC

#25182
From: Simon Horman
Date: Tue, 01 Dec 2026 11:03
23 lines
8683 bytes
On Tue, Nov 24, 2026 at 07:45:54PM -0800, Florian Fainelli wrote:
> 
> 
> On 11/24/2026 5:28 PM, netdev-bot+sashiko@kernel.org wrote:

...

> > There's no runtime difference. MIPS_AU1X00_ENET depends on
> > MIPS_ALCHEMY, which only supports little-endian, so writel() and the
> > plain store write the same bits.
> > 
> > Would a plain store match the surrounding code better, like this:
> > 
> > 	aup->rx_dma_ring[i]->buff_stat =
> > 		lower_32_bits(aup->rx_db_inuse[i]->dma_addr) | RX_DMA_ENABLE;
> > 
> > The other option is to mark rx_dma_ring and tx_dma_ring as __iomem
> > and convert every access to readl()/writel().
> 
> These are good suggestions as non bug fixes but for now, this will do.

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261201110304.GU804035@horms.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-374960-linux-kernel-netdev=dewy.ru
References: <20261121004809.1690280-8-f.fainelli@gmail.com> <179557011055.3135.6140198422373932770@kernel.org> <b14f881d-78e2-420f-8395-6f10028fe597@gmail.com>

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-374960-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v4 07/10] net: au1000: restore RX buffer addresses
 when restarting the MAC
Date: Tue, 1 Dec 2026 11:03:04 +0000
Organization: Usenet Network
Message-ID: <20261201110304.GU804035@horms.kernel.org>
References: <20261121004809.1690280-8-f.fainelli@gmail.com>
 <179557011055.3135.6140198422373932770@kernel.org>
 <b14f881d-78e2-420f-8395-6f10028fe597@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1692081"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ZyU2eDNLG/NG2MEzr/2yR0RQhsQ= sha256:l4TFwGYoI5knlF/eXK5qW0Au+N1aPnIVOuabYQQ0F98=
	sha1:+BRE5InHjyDYxpumWKNS5apUIq8= sha256:fz9ledpD1OHf6zlDrf7dBulti4tSPDrEshGBFhqNT84=
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 B1C7211733E; Tue,  1 Dec 2026 14:03:46 +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 g-om71kvYEmB;
	Tue,  1 Dec 2026 14:03:44 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374960-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 B2CB3117339; Tue,  1 Dec 2026 14:03:29 +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 5373B2EEE9; Tue,  1 Dec 2026 11:03:13 +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=1796122991;
	b=s43/FfLECATOsbQbPkgP33xrGYCj+EjSlYQWKzOZS6IqQr1c1JxpTmBmtYQqvxA/+zaF
	 pLgqCPn4311PoGuPTzgh+BYlHIxUCWunICjwlflfK1Hf9j7S/0cyCCB3tiPqET4b9zTKx
	 n7LZSF051wnArIf7ncE2xmgDwJ/Iy8uS3tlWrn/zpBfstlLnwSt9iqGEm0BhD+CKNQf4K
	 ccen7TOXr3eYFsfbpIECqm4w3tLmDDKWjiluPLsNchkTlJ/1qso6Y79Xrrk6snaEqgi23
	 aJ7P4gBBdklOP2j29oVG0iVVyTZutfvIoMxycUarEwY9F7kTx66Lyo1rSHU+fFenjGg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796122991;
	h=X-Original-To:Received:Received:DKIM-Signature: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=6nGmuMpZCEZjQGVyIa1Jy4kE8hiANe0cjnA4MaoQdt0=;
	b=y/JdfyGuqmDULjX28mJrCXh41NVaA2AyfcXJtE+wE9NV3lPeibGA8/amTsEEREXocWOD
	 R+vCEmN4PP9/72niwA7iB9tU27fFDWGkIo5e4f8/rDXE+thFxOp+Hs5MBqevGEn4MQCk/
	 TiO/FZ13YYe7/LwCyiSLhJB8azGrolR/Tc1OWATqFLg7EECHiE000iCK6vHHPjQ/mPoJ4
	 JO+eh2FJA7RSAInZ9bvsDHjss0ix2BpMf0VbBQEzaLtR9wsvDoCYvireK+EGx75Y/tCbJ
	 qup55tcJpBeDLC6dfcNX6iQfj16Tcffyxo4d4KGG7p8dLptJvkp3NRMTMWEDeCVnpyQ==
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=ZFtHTWT4;
	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 669E4606A33F;
	Tue,  1 Dec 2026 11:03:11 +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=ZFtHTWT4
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=1796122990;
	b=2rM3D7hdmiXi0w9FYIwWvC4dBAHep8YFkwsrO22JNSX3zaIIlYXSlkMzsmfIk+WhwtOX
	 rMhUmRSCOf1auTi6OxL15mzB4GfUs03591HsEJhxQL7JCU5ZCd/f3U/dS/PPWZBicCb4L
	 l9M5rvkzsKMNRAlfLN9NnpVGuKNRBWg0huVE7QuZOyPzD0cR5kAETcjJVQcCDy5I0c1em
	 hIFgXahCpan60iME5VjWVfwqT5V4ivtVCMI9s3lBqV6urfTrxWk0Rdbw/3uHfepKf1Zmj
	 oLCbAYrTs6SZ7R1/qzs1UdsM0IpUBzSju51DscNHWNNeD4DQPbro99RHeyqZ1RBV1Ew==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796122990;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=6nGmuMpZCEZjQGVyIa1Jy4kE8hiANe0cjnA4MaoQdt0=;
	b=oOewryH/9l3z8yKp4wGWAsu1Ax21VbQsQh3NZFFGpJgJLc78izxyGMvV17FSbtAwcDJx
	 Pk+DmFJn216Xsr8zAUVKqOrdlIPWk1dax60lythZQtcpj6Jnurg9M73f/XvSyFl1ZCs9q
	 3Z2aQlkqiK2fDLuAPelYcRsqpgPwhmkzPsPqUlM5Mu5AdcG9JXvUsUHO5eGe5+JLl5dWb
	 VMexbaMK2BUyhN94zEFXBUk5pqhR2NKSNUY25k3BhQCib5sz+B249rSiUETF69F1m0KBM
	 g50eFYnnOsVdXWID6WIND5T6Un3RhkD+4kzlAriFYAjaaHg5VvtVYmxKDZAO0hzW50Q==
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=ZFtHTWT4;
	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 86504606A320;
	Tue,  1 Dec 2026 11:03:10 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CC3C1F00923;
	Tue,  1 Dec 2026 11:03:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796122990;
	bh=6nGmuMpZCEZjQGVyIa1Jy4kE8hiANe0cjnA4MaoQdt0=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=ZFtHTWT4vy0KqoD2oezeGSY8n8KmBI9RHf6oiq5St6wOqJOPjPFiIbLgBNSQhwVqV
	 41ySlxKo3KVKzV10oKAh275aLp0WApZ5aOUbHr+jUndOz/e48U3KgHrZkwevD7SIQ/
	 wGcqWDd7b4taChqwp9m6sJK94At38e+hPjDInHP0JBNB5Nxw2n1pbTc4liOCWTaGc6
	 Aw4NzN6Me/jblE4ufoYfx0uBWml/zVL36jppLc1KpVPyKgMmhzMEiqSMpIb9L0OvBb
	 irYrVKQWk8nECgm9rO6OR4TVZNeUYmaz7R8fd17qLY5fIGkUTKDMNV7tw1MsNax2Hr
	 eWqrPrWAQgNag==
X-Cc: netdev-bot+sashiko@kernel.org, netdev@vger.kernel.org,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, hkallweit1@gmail.com,
	linux@armlinux.org.uk, shaojijie@huawei.com, runyu.xiao@seu.edu.cn,
	mmyangfl@gmail.com, hvr@gnu.org, danny.kukawka@bisect.de,
	mugunthanvnm@ti.com, sebastian.hesselbarth@gmail.com,
	linux-kernel@vger.kernel.org, manuel.lauss@gmail.com
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: <b14f881d-78e2-420f-8395-6f10028fe597@gmail.com>