From: Florian Fainelli <florian.fainelli@broadcom.com>
To: Nicolai Buchwitz <nb@tipi-net.de>,
opendmb@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com
Cc: justin.chen@broadcom.com, phil@raspberrypi.com,
bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH net] net: bcmgenet: keep RBUF EEE/PM disabled
Date: Wed, 20 May 2026 11:45:57 -0700 [thread overview]
Message-ID: <59df32fc-59eb-429e-aca1-2c5a64c988fc@broadcom.com> (raw)
In-Reply-To: <20260520184320.652053-1-nb@tipi-net.de>
On 5/20/26 11:43, Nicolai Buchwitz wrote:
> Setting RBUF_EEE_EN | RBUF_PM_EN in RBUF_ENERGY_CTRL breaks the RX
> path on GENET hardware once MAC EEE becomes active. RX traffic stops
> flowing while the link stays up and the usual descriptor/RX error
> counters remain quiet. In that state the MAC still accepts frames
> (rbuf_ovflow_cnt keeps climbing) but RBUF no longer forwards them to
> DMA, so rx_packets is no longer incremented at the netdev level. On
> some boards the corruption ends up as a paging fault in
> skb_release_data via bcmgenet_rx_poll on an LPI exit.
>
> Reproduced on Pi 4B (BCM2711 + BCM54213PE) and confirmed by Florian
> Fainelli on an internal Broadcom 4908-family board with the same crash
> signature. RBUF_PM_EN is not publicly documented.
>
> This shows up more often now that phy_support_eee() enables EEE by
> default, but it also affects older kernels as soon as TX LPI is
> turned on via ethtool, so it is not specific to recent changes.
>
> Always clear RBUF_EEE_EN | RBUF_PM_EN in bcmgenet_eee_enable_set so
> the bits stay off across resets. UMAC and TBUF setup is left alone so
> TX-side EEE keeps working.
>
> Link: https://github.com/raspberrypi/linux/issues/7304
> Fixes: 6ef398ea60d9 ("net: bcmgenet: add EEE support")
> Cc: stable@vger.kernel.org
> Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Thank you Nicolai!
--
Florian
next prev parent reply other threads:[~2026-05-20 18:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-20 18:43 [PATCH net] net: bcmgenet: keep RBUF EEE/PM disabled Nicolai Buchwitz
2026-05-20 18:45 ` Florian Fainelli [this message]
2026-05-21 15:50 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59df32fc-59eb-429e-aca1-2c5a64c988fc@broadcom.com \
--to=florian.fainelli@broadcom.com \
--cc=andrew+netdev@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=justin.chen@broadcom.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nb@tipi-net.de \
--cc=netdev@vger.kernel.org \
--cc=opendmb@gmail.com \
--cc=pabeni@redhat.com \
--cc=phil@raspberrypi.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox