* CL37 autonegotiation not working on amd-xgbe
@ 2026-04-23 0:18 Patrick Oppenlander
2026-04-27 23:28 ` Jakub Kicinski
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Oppenlander @ 2026-04-23 0:18 UTC (permalink / raw)
To: netdev; +Cc: Shyam-sundar.S-k, Raju.Rangoju, kuba
Hi,
A recent change [1] stopped CL37 autonegotiation from working on
amd-xgbe hardware.
The driver thinks autonegotiation is succeeding, but no data is able
to transfer across the link. Here's an mdio/phy debug log showing the
link coming up successfully in the broken state:
amd-xgbe 0000:07:00.2 control-sfp: phy powered off
amd-xgbe 0000:07:00.2 control-sfp: CL73 AN disabled
amd-xgbe 0000:07:00.2 control-sfp: CL37 AN disabled
amd-xgbe 0000:07:00.2 control-sfp: starting PHY
amd-xgbe 0000:07:00.2 control-sfp: 10GbE SFI mode set
amd-xgbe 0000:07:00.2 control-sfp: 1GbE X mode set
amd-xgbe 0000:07:00.2 control-sfp: CL37 AN (BaseX) initialized
amd-xgbe 0000:07:00.2 control-sfp: AN PHY configuration
amd-xgbe 0000:07:00.2 control-sfp: CL73 AN disabled
amd-xgbe 0000:07:00.2 control-sfp: CL37 AN disabled
amd-xgbe 0000:07:00.2 control-sfp: CL37 AN (BaseX) initialized
amd-xgbe 0000:07:00.2 control-sfp: CL37 AN enabled/restarted
amd-xgbe 0000:07:00.2 control-sfp: CL37 AN Complete
amd-xgbe 0000:07:00.2 control-sfp: Auto negotiation successful
amd-xgbe 0000:07:00.2 control-sfp: CL37 AN result: Complete
amd-xgbe 0000:07:00.2 control-sfp: Link is Up - 1Gbps/Full - flow control off
I've tried SFP modules and switches from multiple vendors, and no
combination of hardware successfully autonegotiates after the change.
Unfortunately there appears to be no public documentation available
for amd-xgbe, so it's basically impossible for me to debug any
further. I've included a patch which "fixes" the issue, but given the
lack of documentation I have no idea what it really does.
If there's any more information I can provide to help diagnose the
issue, please let me know.
Patrick
[1] https://patch.msgid.link/20250630192636.3838291-1-Raju.Rangoju@amd.com
-- >8 --
From d17b2e685cc0e389f9c62b6cae735b2ef7d8c49b Mon Sep 17 00:00:00 2001
From: Patrick Oppenlander <patrick.oppenlander@gmail.com>
Date: Thu, 23 Apr 2026 09:37:51 +1000
Subject: [PATCH] amd-xgbe: fix CL37 autonegotiation
Broken after 42fd432fe6d320323215ebdf4de4d0d7e56e6792.
I can't find any documentation for this hardware, so this change really
just reverts the part of the commit which made autonegotation stop
working.
---
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
index e4334c12b3e15..7639961db0af4 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
@@ -377,10 +377,6 @@ static void xgbe_an37_set(struct xgbe_prv_data
*pdata, bool enable,
reg |= MDIO_VEND2_CTRL1_AN_RESTART;
XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_CTRL1, reg);
-
- reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_PCS_DIG_CTRL);
- reg |= XGBE_VEND2_MAC_AUTO_SW;
- XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_PCS_DIG_CTRL, reg);
}
static void xgbe_an37_restart(struct xgbe_prv_data *pdata)
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: CL37 autonegotiation not working on amd-xgbe
2026-04-23 0:18 CL37 autonegotiation not working on amd-xgbe Patrick Oppenlander
@ 2026-04-27 23:28 ` Jakub Kicinski
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2026-04-27 23:28 UTC (permalink / raw)
To: Raju.Rangoju; +Cc: Patrick Oppenlander, netdev, Shyam-sundar.S-k
On Thu, 23 Apr 2026 10:18:49 +1000 Patrick Oppenlander wrote:
> A recent change [1] stopped CL37 autonegotiation from working on
> amd-xgbe hardware.
Hi Raju! Are you looking into this report?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-27 23:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-23 0:18 CL37 autonegotiation not working on amd-xgbe Patrick Oppenlander
2026-04-27 23:28 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox