From: Joseph Telaak <joseph@telaak.dev>
To: netdev-bot+sashiko@kernel.org
Cc: florian.fainelli@broadcom.com, jonas.gorski@gmail.com,
andrew@lunn.ch, olteanv@gmail.com, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
f.fainelli@gmail.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v3] net: dsa: b53: mirror CPU-bound frames to port 5 when port 8 is unused
Date: Thu, 3 Dec 2026 21:20:33 -0500 [thread overview]
Message-ID: <20261204022033.92258-1-joseph@telaak.dev> (raw)
In-Reply-To: <179630004040.3146.11125368359194350098@kernel.org>
On Thu, Dec 03, 2026 at 07:14AM, netdev-bot+sashiko@kernel.org wrote:
> This check covers every 531x5 part (BCM53101, 53115, 53125, 53128,
> 53134) whenever port 5 is the CPU port, tags are on and port 8 is not in
> DT. Does "unused in DT" reliably mean that port 8 is physically
> unconnected and can transmit with a forced link?
Not reliably. Port 8's interface comes from the IMP_MODE straps, which
select RGMII, MII, RvMII or GMII. In RGMII, GMII and RvMII the switch
drives its own transmit clock, so port 8 sends with nothing attached.
In MII mode the clock comes from the other side, so with nothing there
the mirror would get nothing. I only tested a BCM53125 strapped to
RGMII.
A MAC that is wired to port 8 but left out of the DT would get the
mirrored copies. With Rx disabled on port 8 (below), it can't send
anything into the switch.
Florian, Jonas: the public BCM53125 datasheet documents the IMP_MODE
straps but no register that reports them, and b53 only defines
B53_STRAP_VALUE (page 01h, 0x70) for the 53115. Is there one on the
531x5 parts? If so, v4 can skip the mirror when port 8 is strapped to
MII. If not, would you rather v4 enable it only on the BCM53125, which
is what I tested?
> Would it be enough for the egress mirror to keep PORT_CTRL_RX_DISABLE
> set here along with PORT_CTRL_DIS_STATE?
Yes. The mirror only needs port 8 to transmit, so v4 will keep Rx
disabled on it.
pw-bot: cr
Thanks,
Joseph
prev parent reply other threads:[~2026-12-04 2:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 0:13 [PATCH net-next v3] net: dsa: b53: mirror CPU-bound frames to port 5 when port 8 is unused Joseph Telaak
2026-12-02 22:51 ` Florian Fainelli
2026-12-03 12:14 ` netdev-bot+sashiko
2026-12-04 2:20 ` Joseph Telaak [this message]
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=20261204022033.92258-1-joseph@telaak.dev \
--to=joseph@telaak.dev \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=f.fainelli@gmail.com \
--cc=florian.fainelli@broadcom.com \
--cc=jonas.gorski@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--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