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: Sun, 19 Jul 2026 09:35:19 +0200 [thread overview]
Message-ID: <20260719073519.10947-1-kuncy7@gmail.com> (raw)
In-Reply-To: <CAJq09z4TX=LFOX7iq2g_JwkjtLM1U_Q=aYvAkd123LgOwZNyUw@mail.gmail.com>
Hi Luiz,
Two updates from the bench: last night's cold-soak result, and a
correction about the reset GPIO.
1) A 3-minute pre-init wait PREVENTS the bad state.
Last night's image carried a plain msleep(180000) at the top of
rtl83xx_probe(), before anything touches the chip - and nothing else
on top of the v6 series (no busy-wait, no 0x060C writes). After ~10 h
powered off, the first init landed clean for the first time: 0 FCS
errors on the SerDes CPU port, 0 drop events, DHCP lease right away,
0% loss on the trunk. Every comparable soak before (same hardware,
overnight off, no wait) came up degraded. Single morning so far - I
will repeat it - but this is the first thing that has *prevented* the
state rather than cured it after the fact.
During those 180 s the chip is powered and out of its (bus-level)
reset, just untouched by the driver. So your time-vs-state
discriminator leans "time": the very same init sequence that lands
bad when run at t=3.5 s lands clean when run at t=187 s. It does not
fully separate "the switch needs time" from "something else on the
board needs time", but nothing else shows any distress at t=3.5 s -
the SoC-side MAC/PCS come up fine, and even in the bad state the
switch's transmit direction is byte-exact clean.
2) Correction: the realtek driver performs NO hard reset here.
I mis-stated this earlier: reset-gpios on this board sits on the MDIO
*bus* node (the IPQ5018 MDIO bus driver toggles it once at bus init),
not on the switch node. rtl83xx_probe() therefore sees neither
reset_ctl nor a reset gpio and the hard-reset branch never runs - I
confirmed it with a print inside that branch. So the curing re-probe
is a pure *soft* full init (detect + complete setup/jam-table
sequence, the only chip reset being the soft one in setup), no pin
involved. The "double reset in probe" scenario does not apply on this
board at all.
3) Next steps, along your suggestions:
- Bisect the required off-time with the no-wait image, to get
reproductions on demand instead of one per night.
- On the next on-demand bad state: full register dump via regmap
debugfs, bad state vs. post-cure, plus the reset-bit isolation.
- Then bisect the wait itself (180 s -> 90 -> 45 ...) to find the
threshold - that number should hint at which physical process we
are waiting out.
Best regards,
Stanislaw
next prev parent reply other threads:[~2026-07-19 7:35 UTC|newest]
Thread overview: 15+ 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 " 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 [this message]
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
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=20260719073519.10947-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
Powered by JetHome