🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26242

Re: [PATCH net-next] net: stmmac: dwmac-sun8i: set the RX FIFO flow control in the RX mode setup

#26242
From: Nicolai Buchwitz
Date: Thu, 03 Dec 2026 09:26
32 lines
10147 bytes
On 3.12.2026 10:05, Maxime Chevallier wrote:

> [...]

>>> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 
>>> b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
>>> index 613199da57c1..5a660d22b219 100644
>>> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
>>> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
>>> @@ -562,6 +562,12 @@ static void 
>>> sun8i_dwmac_dma_operation_mode_rx(struct stmmac_priv *priv,
>>>          else if (mode < 128)
>>>              v |= EMAC_RX_TH_128;
>>>      }
>>> +
>>> +    v &= ~(EMAC_RX_FLOW_CTL_TH_ACT | EMAC_RX_FLOW_CTL_TH_DEACT);
>>> +    v |= EMAC_RX_FIFO_FLOW_CTL |
>> 
>> This bit is now always set. Is that fine with TX pause off?
> 
> yes it's fine, I've tested that. As long as TX_FLOW_CTL_EN is clear
> in TX_FLOW_CTL, we don't emit pause frames so we're all good :)

Thanks for the clarification!

> [...]

Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>

Regards
Nicolai
Technical Details
Message-ID: <90abce2c3bbabca2b8d222cde292cd45@tipi-net.de>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376441-linux-kernel-netdev=dewy.ru
References: <20261203073137.958539-1-maxime.chevallier@bootlin.com> <8447f007330b046b0e074e0a9950b931@tipi-net.de> <1fcee81f-af10-4428-9317-e5585d0fe519@bootlin.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376441-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] net: stmmac: dwmac-sun8i: set the RX FIFO flow
 control in the RX mode setup
Date: Thu, 03 Dec 2026 10:26:13 +0100
Organization: Usenet Network
Message-ID: <90abce2c3bbabca2b8d222cde292cd45@tipi-net.de>
References: <20261203073137.958539-1-maxime.chevallier@bootlin.com>
 <8447f007330b046b0e074e0a9950b931@tipi-net.de>
 <1fcee81f-af10-4428-9317-e5585d0fe519@bootlin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2447878"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:OVeGX9hJna/osrOtYRO5CB33tB4= sha256:8Bv1HUjgdKHn8GxzSPyzAXF7hdwYkkb9wWPCwipwuSI=
	sha1:9/YE6XWEdDedIJDozFPq9SLi3Xw= sha256:ckHVu2uHI8e4lVAcajn2F5uVfADmAfUekBrmIT5vUCc=
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 6DC401178A3; Thu,  3 Dec 2026 12:26:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=tipi-net.de
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 P-YK_JD2xaoO;
	Thu,  3 Dec 2026 12:26:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376441-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id A723211789F; Thu,  3 Dec 2026 12:26:28 +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 A684E30ABE; Thu,  3 Dec 2026 09:26:24 +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=1796289982;
	b=c90NR0t22EWORaFSbo2Dj+yqBvnfSVqMjBcVsfgYGecjGItAh89YvbvkOBr9+keLDCT4
	 WgiWPSFWBwcRmGlLJyWmZeCDCjL3i17UnRNS+b6zv+H0CWA1o6ZGPgg4v3GIg1UOF549r
	 iYE0du2NgE46rqiPNQTKsrZmdWTrOfd8POM4znhEi3ZwFxx808pm2AtQL88qS4od6A7PU
	 buMH5Dkzckhdf6rQqZqXnGOX+x9B/FOYMv/WmPmrDfcyGmQpYxHjZTL/bKuDa5mg+MTeJ
	 MrTe/331CmAcSTqCm/T4Mt9H8+/95Nt1dL4kD1Tbcwfo1BBNRteMLacyQkvBAb95iIA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796289982;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=/7cWCBtczSV6WMsNKFbkAcEQKiUr1FuPfh7p7m0B6q8=;
	b=aaP+4asQVjTKVJl971Wsb7tr9Nm5phVEBBVXutEN5uipnfyJmuWcKoC4fF1PYhCLc/x6
	 5VxtRHz0tLaDT3rxTcpu2iy/KmnxL0Ceun3orfNt/532mF2sj295PETRuZnqkHeK6ZkxG
	 I2HD70kPE6mse54rxfJwpe16zYwOIX/5o1ppnUgsgnWpjLTs6Hc0yOyqW5OWcl2ioXr8r
	 1EHqautcsn9DEQBQ8ZIczjVUhNq7xK1uk/KhxgGmc9+1FDd21QuBG4BbrGr/+5ExmxM4D
	 19FXKUPtfpCDtibVlu1nGngLvwvKElModa2FsbE/6t19O6LPs0TEEMS0x/jJTbiX4DA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=f2FeyhMR;
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	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 9336F606A693;
	Thu,  3 Dec 2026 09:26:22 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=f2FeyhMR
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796289981;
	b=tkAt/Xy6Z4burCkvjKoDWNbSPLmMKEVzoQvsQp86n6LoNW5LvySfGaSKLfjWarz9aHaY
	 AxcytzftE/7qM1evGNC8/NXdYFvnakhnYiYzQnDA2JVYNap575fr/1Pcze29Ohl9prCbW
	 zoNuR05xYCtgLsLJyLDh534rnIiMLZehO75OjF9rUn4UpB9RRUpOb1AXJLPIRbQpigKXQ
	 4kN0D7timKCQV1lPBbVxHAdyHTEPQI53v/nHMJMsQA7px/lrAJmVf5cjljcyJ81gkKTt2
	 Fp2/3CEyXf4zz5WVV0MBoBJAL9qiqXCVdcqE9REVssZck9DTBiRwjJPs6Fbdak6qkbw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796289981;
	h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=/7cWCBtczSV6WMsNKFbkAcEQKiUr1FuPfh7p7m0B6q8=;
	b=axhb9utWfcJKjeRdvcpwZhHwbteCPaIproI70shxm/qh5JmMpdfbBMwPgphOYqyq4wGL
	 BqJH0qc4MvYc646A2wuyIGzVNEuXmeFfJDMjLz44Mz7NZkYUy+MsBo3BcTWWtwuF/eWLG
	 Xr6kjCOvOBLXoS55yBS7cvpJNtL1icV9KuqHGmjX5NE6y6XAoGf+O/2Gpu62U0h+eFNS4
	 tinHNhw6KzLnm2kf4mPJafzaFi5caS25TwGKwrPUx+DCaFPIPWwirXYHBwWG5MOBoxBCB
	 ruJFo5yVYVhWRGcOcgtP54kwcJvu1IRsPsWOyOv8O5BsoEot0UKBs9yK9+9mNpKbS4w==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=f2FeyhMR;
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E4C3606A687;
	Thu,  3 Dec 2026 09:26:19 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1E4C3606A687
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 2FD48A159E;
	Thu, 03 Dec 2026 10:26:13 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1796289977; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=/7cWCBtczSV6WMsNKFbkAcEQKiUr1FuPfh7p7m0B6q8=;
	b=f2FeyhMR1ldtod/ZvoMFY4p4IDlJoloZWHujlbzNochFuGY0Zm0i59a60UwY2l4y+2Gqd/
	DwlOQg085d6YUU1UejxVqbB4OvLnALn4gy6BJsHG7Dj4y4jmVo5yKStygQ5sdu3LHz8TGq
	LuME2O2P27XAle5a0TB8xJxa50h9lLLWY8qghJhN1YmET+ZGk+aLjR2Tn4f8vIgkWthnCo
	xrzJlP855TLLDGygPR4UjvIEGcAfHEiuTmp+ofR2IBpystmiQX4s6v/HDNINn34nU6mjoF
	14MCtU2MJ10azdgBOvbhwAuidJEwIdvXM4hIXMBBzWMa+8H3P3Gzp9KCpZYmmg==
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-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, Jakub Kicinski <kuba@kernel.org>,
 davem@davemloft.net, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni
 <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Willem de Bruijn
 <willemb@google.com>, Chen-Yu Tsai <wens@kernel.org>, Jernej Skrabec
 <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Maxime
 Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue
 <alexandre.torgue@foss.st.com>, Russell King <linux@armlinux.org.uk>,
 Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>,
 thomas.petazzoni@bootlin.com, Alexis Lothoré
 <alexis.lothore@bootlin.com>, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
 linux-sunxi@lists.linux.dev
X-In-Reply-To: <1fcee81f-af10-4428-9317-e5585d0fe519@bootlin.com>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3