Netdev List
 help / color / mirror / Atom feed
From: Stanislaw <kuncy7@gmail.com>
To: Johan Alvarado <contact@c127.dev>,
	Mieczyslaw Nalewaj <namiltd@yahoo.com>
Cc: Linus Walleij <linusw@kernel.org>,
	Alvin Sipraga <alsi@bang-olufsen.dk>,
	Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Russell King <linux@armlinux.org.uk>,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Luiz Angelo Daros de Luca <luizluca@gmail.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v6 1/2] net: dsa: realtek: rtl8365mb: add SGMII support for RTL8367S
Date: Tue, 21 Jul 2026 13:53:06 +0200	[thread overview]
Message-ID: <20260721115306.15144-1-kuncy7@gmail.com> (raw)
In-Reply-To: <CAJq09z4TX=LFOX7iq2g_JwkjtLM1U_Q=aYvAkd123LgOwZNyUw@mail.gmail.com>

Hi Luiz, Johan, Mieczyslaw,

Resolved, and it was not the driver: the cold-start trunk failure on my
Archer AX55 v1 was a failing power supply. Apologies for the noise, and
thanks for the time you all put into it.

The A/B/A that settles it, same image throughout (v6 series, no
busy-wait, no 0x060C writes, no pre-init delay), same ~10 h power-off:

  old PSU  -> bad on every cold morning (4 documented occurrences)
  new PSU  -> clean, twice (including a 10 h soak)
  old PSU again -> bad again, last night

The last line is the one that matters: putting the old supply back
reproduced the exact same signature - link up at 2.5G/Full, no CRC or
symbol errors on the link, but 326 FCS errors and 326 drop events on
the switch's CPU-facing port, nothing reaching the WAN wire, and the
switch->CPU direction byte-exact clean. Only the switch's SerDes
receiver is affected, and only until the chip is fully re-initialised.

In hindsight the earlier evidence fits: the 180 s pre-init delay
"fixed" it because it gave the supply three minutes to come up, short
power-cycles never reproduced it because the capacitors had no time to
discharge, and a driver re-probe cured it because... well, see below.

> Another test would be to dump all switch regs before the first reset
> and compare what is different from the state after the reset.

Done, via the regmap debugfs. The SerDes-related configuration is
byte-identical between the bad state and the healthy one afterwards:

  SDS_MISC (0x1d11)      bad 0x1f00   good 0x1f00
  SDS_OPTION (0x13c0/c1) bad 0x0000   good 0x0000
  ext-if mode (0x1311)   bad 0x1016   good 0x1016
  MISC_CFG0 (0x130c)     bad 0x0043   good 0x0043

So the driver programs the chip identically in both cases; the failure
is not visible in the register state at all. (The rest of the dump does
differ, but that is counters and statistics, and the "good" dump was
taken after the reset experiments below, so I would not read anything
into it.)

> I would expect the CHIP_RST (bit 0) to clear everything, but you
> never know...

Also done, on the bad state, in the order SDS -> DW8051 -> NIC -> GPH
-> CFG -> SW -> CHIP:

  SDS_RST, DW8051_RST, NIC_RST, GPH_RST: no change at all, the FCS
  error count stays exactly where it was and the trunk stays dead.

  CFG_RST, SW_RST, CHIP_RST: inconclusive. The counters go to zero, but
  so does the switch configuration, so the trunk cannot pass traffic
  afterwards for reasons that have nothing to do with the fault. I
  cannot tell from this whether the datapath was repaired.

  Full driver re-probe (reset + complete re-init): cures it, as always.

The useful half is the first line: none of the resets that leave the
configuration intact repairs the datapath. Whatever the marginal supply
does to that receiver, only a complete re-initialisation clears it -
which is consistent with the register dump showing no difference to
repair in the first place.

I will run one more cold soak tomorrow morning, back on the new supply,
to confirm the A/B/A closes cleanly rather than resting on a single
good/bad pair. I will only write again if that result contradicts the
above.

Nothing here asks for a change to your series. If the maintainers want
a Tested-by for the RTL8367S HSGMII path on this board, it has been
carrying traffic reliably for days now on a healthy supply.

Best regards,
Stanislaw

  parent reply	other threads:[~2026-07-21 11:53 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-12  4:31 [PATCH net-next v6 0/2] net: dsa: realtek: rtl8365mb: add SGMII/HSGMII support for RTL8367S Johan Alvarado via B4 Relay
2026-07-12  4:31 ` [PATCH net-next v6 1/2] net: dsa: realtek: rtl8365mb: add SGMII " Johan Alvarado via B4 Relay
2026-07-12  8:23   ` Maxime Chevallier
2026-07-16  6:40   ` Mieczyslaw Nalewaj
2026-07-17 12:51     ` Stanislaw
2026-07-17 16:28       ` Mieczyslaw Nalewaj
2026-07-17 22:12     ` Johan Alvarado
2026-07-18  5:40       ` Luiz Angelo Daros de Luca
2026-07-18  7:55         ` Stanislaw
2026-07-19  1:09           ` Luiz Angelo Daros de Luca
2026-07-19  7:35             ` Stanislaw
2026-07-21 11:53             ` Stanislaw [this message]
2026-07-21 14:32   ` Mieczyslaw Nalewaj
2026-07-12  4:31 ` [PATCH net-next v6 2/2] net: dsa: realtek: rtl8365mb: add HSGMII " Johan Alvarado via B4 Relay
2026-07-12 18:05   ` Mieczyslaw Nalewaj
2026-07-14  0:24     ` Johan Alvarado
2026-07-18  5:46       ` Luiz Angelo Daros de Luca
2026-07-13  8:14   ` Stacho_P
2026-07-21 14:32   ` Mieczyslaw Nalewaj

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=20260721115306.15144-1-kuncy7@gmail.com \
    --to=kuncy7@gmail.com \
    --cc=alsi@bang-olufsen.dk \
    --cc=andrew@lunn.ch \
    --cc=contact@c127.dev \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=luizluca@gmail.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=namiltd@yahoo.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    /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