netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dsa: using multi-gbps speeds on CPU port
@ 2019-05-15 12:39 Maxime Chevallier
  2019-05-15 13:27 ` Andrew Lunn
  0 siblings, 1 reply; 13+ messages in thread
From: Maxime Chevallier @ 2019-05-15 12:39 UTC (permalink / raw)
  To: Florian Fainelli, Andrew Lunn, Vivien Didelot, Russell King,
	netdev, thomas.petazzoni@bootlin.com, Antoine Tenart,
	Heiner Kallweit

Hello everyone,

I'm working on a setup where I have a 88e6390X DSA switch connected to
a CPU (an armada 8040) with 2500BaseX and RXAUI interfaces (we only use
one at a time).

I'm facing a limitation with the current way to represent that link,
where we use a fixed-link description in the CPU port, like this :

...
switch0: switch0@1 {
	...
	port@0 {
		reg = <0>;
		label = "cpu";
		ethernet = <&eth0>;
		phy-mode = "2500base-x";
		fixed-link {
			speed = <2500>;
			full-duplex;
		};
	};
};
...

In this scenario, the dsa core will try to create a PHY emulating the
fixed-link on the DSA port side. This can't work with link speeds above
1Gbps, since we don't have any emulation for these PHYs, which would be
using C45 MMDs.

We could add support to emulate these modes, but I think there were some
discussions about using phylink to support these higher speed fixed-link
modes, instead of using PHY emulation.

However using phylink in master DSA ports seems to be a bit tricky,
since master ports don't have a dedicated net_device, and instead
reference the CPU-side netdevice (if I understood correctly).

I'll be happy to help on that, but before prototyping anything, I wanted
to have your thougts on this, and see if you had any plans.

Thanks,

Maxime

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

end of thread, other threads:[~2019-05-17 18:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-15 12:39 dsa: using multi-gbps speeds on CPU port Maxime Chevallier
2019-05-15 13:27 ` Andrew Lunn
2019-05-15 14:02   ` Maxime Chevallier
2019-05-15 16:09     ` Florian Fainelli
2019-05-15 16:19       ` Russell King - ARM Linux admin
2019-05-16  6:56         ` Vladimir Oltean
2019-05-16 12:58           ` Andrew Lunn
2019-05-17 15:10       ` Maxime Chevallier
2019-05-17 17:37         ` Ioana Ciornei
2019-05-17 18:03           ` Russell King - ARM Linux admin
2019-05-17 18:10             ` Florian Fainelli
2019-05-17 18:23               ` Russell King - ARM Linux admin
2019-05-15 16:12   ` Russell King - ARM Linux admin

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