From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
Cc: andrew@lunn.ch, Heiner Kallweit <hkallweit1@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] net: phy: qcom: qca808x: Add .get_rate_matching support
Date: Mon, 15 Sep 2025 13:09:39 +0100 [thread overview]
Message-ID: <aMgCA13MhTnG80_V@shell.armlinux.org.uk> (raw)
In-Reply-To: <aMfUiBe9gdEAuySZ@oss.qualcomm.com>
On Mon, Sep 15, 2025 at 02:25:36PM +0530, Mohd Ayaan Anwar wrote:
> [ 7.937871] qcom-ethqos 23040000.ethernet: IRQ eth_wake_irq not found
> [ 7.944581] qcom-ethqos 23040000.ethernet: IRQ eth_lpi not found
> [ 7.953753] qcom-ethqos 23040000.ethernet: User ID: 0x20, Synopsys ID: 0x52
> [ 7.960927] qcom-ethqos 23040000.ethernet: DWMAC4/5
So we're using stmmac as the MAC.
> [ 8.348697] qcom-ethqos 23040000.ethernet eth0: PHY stmmac-0:1c uses interfaces 4,23, validating 23
> [ 8.358304] qcom-ethqos 23040000.ethernet eth0: interface 23 (2500base-x) rate match none supports 6,13-14,47
This shows that the PHY supports SGMII (4) and 2500base-X (23). However,
as we only validate 2500base-X, this suggests stmmac doesn't support
switching between SGMII and 2500base-X.
> // I changed the link partner speed to 1G here:
> [ 74.031182] qcom-ethqos 23040000.ethernet eth0: phy link down 2500base-x/Unknown/Unknown/none/off/nolpi
> [ 74.031773] qcom-ethqos 23040000.ethernet eth0: Link is Down
As the PHY will be programmed to only advertise 2500base-T, this is
expected.
> For reference, this board is using the same MAC as [0] which works
> perfectly fine with the AQR115C PHY. I got the (wrong) idea to add
> .get_rate_matching after comparing the two PHY drivers. The MAC driver
> is stmmac/dwmac-qcom-ethqos.c
AQR115C can be configured to support rate matching.
What *exactly* is the setup with stmmac here? Do you have an external
PCS to support 2500base-X, or are you using the stmmac internal PCS?
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2025-09-15 12:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-14 15:06 [PATCH net-next] net: phy: qcom: qca808x: Add .get_rate_matching support Mohd Ayaan Anwar
2025-09-14 18:10 ` Russell King (Oracle)
2025-09-14 18:37 ` Andrew Lunn
2025-09-15 8:55 ` Mohd Ayaan Anwar
2025-09-15 11:58 ` Mohd Ayaan Anwar
2025-09-15 12:09 ` Russell King (Oracle) [this message]
2025-09-15 14:54 ` Mohd Ayaan Anwar
2025-09-15 15:11 ` Russell King (Oracle)
2025-09-15 15:41 ` Mohd Ayaan Anwar
2025-09-16 22:19 ` Russell King (Oracle)
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=aMgCA13MhTnG80_V@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mohd.anwar@oss.qualcomm.com \
--cc=netdev@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).