Skip to contentSkip to conversation

net: dsa: allow XAUI phy interface mode

PATCH In review Russell King 4 participants 7 messages Dec 8, 2017 – Dec 12, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: dsa: allow XAUI phy interface mode

XGMII is a 32-bit bus plus two clock signals per direction. XAUI is four serial lanes per direction. The 88e6190 supports XAUI but not XGMII as it doesn't have enough pins. The same is true of 88e6176.

Match on PHY_INTERFACE_MODE_XAUI for the XAUI port type, but keep accepting XGMII for backwards compatibility.

---
 drivers/net/dsa/mv88e6xxx/port.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/dsa/mv88e6xxx/port.c +1 -0
index a7801f6668a5..6315774d72b3 100644
@@ -338,6 +338,7 @@ int mv88e6390x_port_set_cmode(struct mv88e6xxx_chip *chip, int port,
 		cmode = MV88E6XXX_PORT_STS_CMODE_2500BASEX;
 		break;
 	case PHY_INTERFACE_MODE_XGMII:
+	case PHY_INTERFACE_MODE_XAUI:
 		cmode = MV88E6XXX_PORT_STS_CMODE_XAUI;
 		break;
 	case PHY_INTERFACE_MODE_RXAUI:
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 6 lines · Russell King

XGMII is a 32-bit bus plus two clock signals per direction. XAUI is four serial lanes per direction. The 88e6190 supports XAUI but not XGMII as it doesn't have enough pins. The same is true of 88e6176.

Match on PHY_INTERFACE_MODE_XAUI for the XAUI port type, but keep accepting XGMII for backwards compatibility.

Hi Russell

The backwards compatibility is for the ZII devel C, the DSA link between the two switches? I don't think there are any other boards using this.

I will ask around, but i don't think we need to worry about backwards compatibility. There is no region of flash set aside for the DT blob, etc. I always TFTP boot using the one from the kernel, etc.

Andrew

#2 lore raw
Quoted 10 lines · Andrew Lunn
Quoted 6 lines · Russell King

XGMII is a 32-bit bus plus two clock signals per direction. XAUI is four serial lanes per direction. The 88e6190 supports XAUI but not XGMII as it doesn't have enough pins. The same is true of 88e6176.

Match on PHY_INTERFACE_MODE_XAUI for the XAUI port type, but keep accepting XGMII for backwards compatibility.

Hi Russell

Quoted 7 lines

The backwards compatibility is for the ZII devel C, the DSA link between the two switches? I don't think there are any other boards using this.

I will ask around, but i don't think we need to worry about backwards compatibility. There is no region of flash set aside for the DT blob, etc. I always TFTP boot using the one from the kernel, etc.

Well, there's also kexec to consider, where it's better not to specify the --dtb option because that wipes out the modifications (such as the memory information) that the boot loader made to the pristine kbuild generated dtb. So, with kexec its preferable to use the existing dtb even with a newer kernel, or if not go through a full reboot to use a new dtb.

Whether anyone uses kexec on this platform though would be an entirely separate question, but I'm generally not in favour of breaking compatibility with already merged DT without good reason.

You do seem to be correct that this only applies (in mainline) to the ZII rev C board, so I guess including a patch to update its dts for the inter-switch connection would at least be sensible.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up
maintainer
#3 lore raw
Quoted 3 lines

You do seem to be correct that this only applies (in mainline) to the ZII rev C board, so I guess including a patch to update its dts for the inter-switch connection would at least be sensible.

Hi Russell

So lets have the backward compatible for a couple of kernel cycles, and modify ZII rev now to use the correct mode.

Andrew

maintainer
#4 lore raw
In reply to Russell King

From: Russell King <[email protected]>
Date: Fri, 08 Dec 2017 16:04:59 +0000

Quoted 8 lines

XGMII is a 32-bit bus plus two clock signals per direction. XAUI is four serial lanes per direction. The 88e6190 supports XAUI but not XGMII as it doesn't have enough pins. The same is true of 88e6176.

Match on PHY_INTERFACE_MODE_XAUI for the XAUI port type, but keep accepting XGMII for backwards compatibility.

Based upon the discussion of this patch I am expecting to receive a DT patch that replaces this one, and some time in the future the XGMII case statement providing backwards compatibility will be removed.

Please let me know if this is not the case.

THanks.

#5 lore raw
Quoted 10 lines · David Miller

From: Russell King <[email protected]>
Date: Fri, 08 Dec 2017 16:04:59 +0000

Quoted 7 lines

XGMII is a 32-bit bus plus two clock signals per direction. XAUI is four serial lanes per direction. The 88e6190 supports XAUI but not XGMII as it doesn't have enough pins. The same is true of 88e6176.

Match on PHY_INTERFACE_MODE_XAUI for the XAUI port type, but keep accepting XGMII for backwards compatibility.

Quoted 8 lines
Quoted 1 line

Based upon the discussion of this patch I am expecting to receive a DT patch that replaces this one, and some time in the future the XGMII case statement providing backwards compatibility will be removed.

Please let me know if this is not the case.

That's something like it - asked Andrew via IRC on Saturday:

Do we want to do the XAUI thing as one patch to avoid any breakage, and if so via whom?

and haven't had a response. Normally arm-soc folk want patches touching arch/arm/boot/dts to go via their tree.

So, until I know what to do, I can't proceed with this... and I've soo many outstanding net patches now that I'm losing track of where each patch I've sent out is. Sorry, I'm failing.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up
maintainer
#6 lore raw
Quoted 4 lines

That's something like it - asked Andrew via IRC on Saturday:

Do we want to do the XAUI thing as one patch to avoid any breakage, and if so via whom?

Hi Russell

Sorry for not replying. I was on a plane by then.

Quoted 6 lines

and haven't had a response. Normally arm-soc folk want patches touching arch/arm/boot/dts to go via their tree.

So, until I know what to do, I can't proceed with this... and I've soo many outstanding net patches now that I'm losing track of where each patch I've sent out is. Sorry, I'm failing.

I would put both patches via netdev, to avoid breakage. We have done this before for the ZII devel board, with the imx maintainers ACK. I don't expect any clashes in the DT file. The 10Gb port might be added soon, but i think there is enough separation in the changes they won't result in a conflict if they take a different path.

Do you want me to send a v2, with the additional DT patch?

Thanks
Andrew