Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: dsa: realtek: rtl8365mb: fix CPU port on HSGMII after boot
@ 2026-11-27 13:15 Juraj Sladek via B4 Relay
  2026-11-27 13:15 ` [PATCH net 1/2] net: dsa: realtek: rtl8365mb: reset SerDes data path when conduit comes up Juraj Sladek via B4 Relay
  2026-11-27 13:15 ` [PATCH net 2/2] net: dsa: realtek: rtl8365mb: soft reset switch core after " Juraj Sladek via B4 Relay
  0 siblings, 2 replies; 4+ messages in thread
From: Juraj Sladek via B4 Relay @ 2026-11-27 13:15 UTC (permalink / raw)
  To: Linus Walleij, Luiz Angelo Daros de Luca, Alvin Šipraga,
	Andrew Lunn, Vladimir Oltean, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Russell King
  Cc: Johan Alvarado, netdev, Juraj Sladek

On the TP-Link Archer AX55 v1 (Qualcomm IPQ5018, RTL8367S on port 6 over
a 2500base-x/HSGMII fixed link to the IPQ5018 GMAC), wired networking is
dead after a significant share of boots, which OpenWrt users of the
device have been working around with power cycles.

Two different failure modes show up, both on the CPU to switch direction:

 - every frame from the CPU is received by the switch with an FCS error;
   patch 1 fixes this by resetting the SerDes data path again once the
   conduit is up and the link partner transmits;

 - frames from the CPU are received fine but never forwarded (or
   forwarded corrupted); patch 2 fixes this with a switch core soft
   reset a few seconds after the conduit comes up.

The root cause of the second mode is unknown to me. The vendor driver
does not use SW_RST; it does load and start firmware on the embedded
DW8051 for the HSGMII link, which this driver deliberately keeps in
reset, so the firmware may be what normally covers this. If anyone at
Realtek or with documentation can explain what PORT_DEBUG_INFO_CTRL3
(0x091A) reflects, or a more targeted reset, I am happy to test it.

Things I could not verify: whether SW_RST clears the hardware L2 table
(the static FDB entries programmed for the CPU port); traffic and the
VLAN-aware bridge setup keep working after it. Only the HSGMII case on
the IPQ5018 was tested; SGMII uses the same code path.

Test details are in the commit message of patch 2.

Signed-off-by: Juraj Sladek <juraj.sladek@littleit.sk>
---
Juraj Sladek (2):
      net: dsa: realtek: rtl8365mb: reset SerDes data path when conduit comes up
      net: dsa: realtek: rtl8365mb: soft reset switch core after conduit comes up

 drivers/net/dsa/realtek/rtl8365mb_main.c | 116 +++++++++++++++++++++++++++----
 1 file changed, 103 insertions(+), 13 deletions(-)
---
base-commit: 28a371228d4eb4857cc31eeb1a0d7d01e9c3ea2f
change-id: 20261127-rtl8365mb-hsgmii-fix-eb9bd1d0dd87

Best regards,
-- 
Juraj Sladek <juraj.sladek@littleit.sk>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-27 23:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 13:15 [PATCH net 0/2] net: dsa: realtek: rtl8365mb: fix CPU port on HSGMII after boot Juraj Sladek via B4 Relay
2026-11-27 13:15 ` [PATCH net 1/2] net: dsa: realtek: rtl8365mb: reset SerDes data path when conduit comes up Juraj Sladek via B4 Relay
2026-11-27 23:09   ` Mieczyslaw Nalewaj
2026-11-27 13:15 ` [PATCH net 2/2] net: dsa: realtek: rtl8365mb: soft reset switch core after " Juraj Sladek via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox