netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: pcs: lynx: fix phylink validation regression for phy-mode = "10g-qxgmii"
@ 2025-03-31 15:39 Vladimir Oltean
  2025-03-31 15:46 ` Russell King (Oracle)
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Oltean @ 2025-03-31 15:39 UTC (permalink / raw)
  To: netdev
  Cc: Ioana Ciornei, Andrew Lunn, Heiner Kallweit, Russell King,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Russell King (Oracle), Maxime Chevallier, linux-kernel

Added by commit ce312bbc2351 ("net: pcs: lynx: accept phy-mode =
"10g-qxgmii" and use in felix driver"), this mode broke when the
lynx_interfaces[] array was introduced to populate
lynx->pcs.supported_interfaces, because it is absent from there.

mscc_felix 0000:00:00.5: MAC returned PCS which does not support 10g-qxgmii
mscc_felix 0000:00:00.5: failed to validate link configuration for inband

In reality we should be querying the SerDes driver of the attached lane
to restrict which PHY modes are truly supported, but we currently lack
that infrastructure upstream, so just add 10g-qxgmii to the array.

Fixes: b0f88c1b9a53 ("net: pcs: lynx: fill in PCS supported_interfaces")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 drivers/net/pcs/pcs-lynx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/pcs/pcs-lynx.c b/drivers/net/pcs/pcs-lynx.c
index c0238360eb40..07c570e2d7c1 100644
--- a/drivers/net/pcs/pcs-lynx.c
+++ b/drivers/net/pcs/pcs-lynx.c
@@ -536,6 +536,7 @@ static const phy_interface_t lynx_interfaces[] = {
 	PHY_INTERFACE_MODE_2500BASEX,
 	PHY_INTERFACE_MODE_10GBASER,
 	PHY_INTERFACE_MODE_USXGMII,
+	PHY_INTERFACE_MODE_10G_QXGMII,
 };
 
 void lynx_pcs_set_supported_interfaces(struct phylink_pcs *pcs,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: pcs: lynx: fix phylink validation regression for phy-mode = "10g-qxgmii"
  2025-03-31 15:39 [PATCH net] net: pcs: lynx: fix phylink validation regression for phy-mode = "10g-qxgmii" Vladimir Oltean
@ 2025-03-31 15:46 ` Russell King (Oracle)
  2025-03-31 15:54   ` Vladimir Oltean
  0 siblings, 1 reply; 5+ messages in thread
From: Russell King (Oracle) @ 2025-03-31 15:46 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: netdev, Ioana Ciornei, Andrew Lunn, Heiner Kallweit,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Maxime Chevallier, linux-kernel

On Mon, Mar 31, 2025 at 06:39:06PM +0300, Vladimir Oltean wrote:
> Added by commit ce312bbc2351 ("net: pcs: lynx: accept phy-mode =
> "10g-qxgmii" and use in felix driver"), this mode broke when the
> lynx_interfaces[] array was introduced to populate
> lynx->pcs.supported_interfaces, because it is absent from there.

This commit is not in net-next:

$ git log -p ce312bbc2351
fatal: ambiguous argument 'ce312bbc2351': unknown revision or path not in the working tree.

Checking Linus' tree, it's the same.

Are you sure lynx in mainline supports this mode?

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: pcs: lynx: fix phylink validation regression for phy-mode = "10g-qxgmii"
  2025-03-31 15:46 ` Russell King (Oracle)
@ 2025-03-31 15:54   ` Vladimir Oltean
  2025-03-31 16:04     ` Russell King (Oracle)
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Oltean @ 2025-03-31 15:54 UTC (permalink / raw)
  To: Russell King (Oracle)
  Cc: netdev, Ioana Ciornei, Andrew Lunn, Heiner Kallweit,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Maxime Chevallier, linux-kernel

On Mon, Mar 31, 2025 at 04:46:42PM +0100, Russell King (Oracle) wrote:
> On Mon, Mar 31, 2025 at 06:39:06PM +0300, Vladimir Oltean wrote:
> > Added by commit ce312bbc2351 ("net: pcs: lynx: accept phy-mode =
> > "10g-qxgmii" and use in felix driver"), this mode broke when the
> > lynx_interfaces[] array was introduced to populate
> > lynx->pcs.supported_interfaces, because it is absent from there.
> 
> This commit is not in net-next:
> 
> $ git log -p ce312bbc2351
> fatal: ambiguous argument 'ce312bbc2351': unknown revision or path not in the working tree.
> 
> Checking Linus' tree, it's the same.
> 
> Are you sure lynx in mainline supports this mode?
> 
> -- 
> RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
> FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

Oops, you're right, please ignore me. I was working on a rebase and I
didn't even think to check whether the driver support for this new PHY
mode wasn't upstream. Now I'm starting to remember how the QCA8084 also
required it, and Luo Jie upstreamed the core support without users, and
without the Felix driver patch.

pw-bot: cr

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: pcs: lynx: fix phylink validation regression for phy-mode = "10g-qxgmii"
  2025-03-31 15:54   ` Vladimir Oltean
@ 2025-03-31 16:04     ` Russell King (Oracle)
  2025-03-31 19:44       ` Vladimir Oltean
  0 siblings, 1 reply; 5+ messages in thread
From: Russell King (Oracle) @ 2025-03-31 16:04 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: netdev, Ioana Ciornei, Andrew Lunn, Heiner Kallweit,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Maxime Chevallier, linux-kernel

On Mon, Mar 31, 2025 at 06:54:36PM +0300, Vladimir Oltean wrote:
> On Mon, Mar 31, 2025 at 04:46:42PM +0100, Russell King (Oracle) wrote:
> > On Mon, Mar 31, 2025 at 06:39:06PM +0300, Vladimir Oltean wrote:
> > > Added by commit ce312bbc2351 ("net: pcs: lynx: accept phy-mode =
> > > "10g-qxgmii" and use in felix driver"), this mode broke when the
> > > lynx_interfaces[] array was introduced to populate
> > > lynx->pcs.supported_interfaces, because it is absent from there.
> > 
> > This commit is not in net-next:
> > 
> > $ git log -p ce312bbc2351
> > fatal: ambiguous argument 'ce312bbc2351': unknown revision or path not in the working tree.
> > 
> > Checking Linus' tree, it's the same.
> > 
> > Are you sure lynx in mainline supports this mode?
> > 
> > -- 
> > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
> > FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
> 
> Oops, you're right, please ignore me. I was working on a rebase and I
> didn't even think to check whether the driver support for this new PHY
> mode wasn't upstream. Now I'm starting to remember how the QCA8084 also
> required it, and Luo Jie upstreamed the core support without users, and
> without the Felix driver patch.

Oh no. A feature merged that didn't get any users, which happened six
months ago. :(

Can we please have a user of it in mainline soon?

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net] net: pcs: lynx: fix phylink validation regression for phy-mode = "10g-qxgmii"
  2025-03-31 16:04     ` Russell King (Oracle)
@ 2025-03-31 19:44       ` Vladimir Oltean
  0 siblings, 0 replies; 5+ messages in thread
From: Vladimir Oltean @ 2025-03-31 19:44 UTC (permalink / raw)
  To: Russell King (Oracle)
  Cc: netdev, Ioana Ciornei, Andrew Lunn, Heiner Kallweit,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Maxime Chevallier, linux-kernel

On Mon, Mar 31, 2025 at 05:04:20PM +0100, Russell King (Oracle) wrote:
> Oh no. A feature merged that didn't get any users, which happened six
> months ago. :(
> 
> Can we please have a user of it in mainline soon?

Yes, that looks easily possible. I'll send two patches when net-next
opens.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-31 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31 15:39 [PATCH net] net: pcs: lynx: fix phylink validation regression for phy-mode = "10g-qxgmii" Vladimir Oltean
2025-03-31 15:46 ` Russell King (Oracle)
2025-03-31 15:54   ` Vladimir Oltean
2025-03-31 16:04     ` Russell King (Oracle)
2025-03-31 19:44       ` Vladimir Oltean

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).