AnsweredAssumed Answered

FMAN mEMAC: in-band-status supported for 10G?

Question asked by Tanjeff Moos on Apr 14, 2020
Latest reply on May 5, 2020 by Tanjeff Moos

Hi,

we made a T1023 based board where MAC1 is connected to an SFP+ module via XFI. The SFP+ module is connected via I²C to the SoC. We are using SerDes Protocol 0x95. The OS is OpenWRT with a kernel 4.14.137.

 

The first thing I noticed is that the DPAA driver does not support phylink. Therefore, it cannot talk to the SFP+ module via I²C (only MDIO is supported).

 

Therefore, I want to operate MAC1 in phy-less mode and added this to my DTS file:

eth3: ethernet@e0000 {
    managed = "in-band-status";
   /*sleep = <&rcpm 0x80000000>;*/
};

U-Boot adds some properties, e.g. phy-connection-type=xgmii, compatible="fsl,fman-memac" and pcsphy-handle=<0x1b>. The boot messages say:

[   13.462738] fsl_mac ffe4e4000.ethernet: FMan MEMAC
[   13.467570] fsl_mac ffe4e4000.ethernet: FMan MAC address: 00:00:5b:04:d2:17
[   13.482199] ------------[ cut here ]------------
[   13.493914] WARNING: CPU: 0 PID: 1 at drivers/net/phy/swphy.c:135 swphy_read_reg+0x120/0x1b0
[   13.502644] ---[ end trace 6db981a9a9b68335 ]---
[   13.507305] ------------[ cut here ]------------
[   13.519007] WARNING: CPU: 0 PID: 1 at drivers/net/phy/swphy.c:135 swphy_read_reg+0x120/0x1b0
[   13.527682] ---[ end trace 6db981a9a9b68336 ]---
[   13.566896] fsl_mac ffe4e0000.ethernet: FMan MEMAC
[   13.571713] fsl_mac ffe4e0000.ethernet: FMan MAC address: 00:00:5b:00:00:12
[   13.581331] fsl_mac ffe4e4000.ethernet eth0: Probed interface eth0
[   13.589992] fsl_mac ffe4e0000.ethernet eth1: Probed interface eth1

The warning in drivers/net/phy/swphy.c is due to an illegal speed set on the (virtual) phy. After boot, the interface eth1 is present, but unusable.

 

I also tried the fixed-link property in the DTS, but this seems to support only 10/100/1000M speeds. But I have 10G. So this didn't work, either.

 

My questions are:

  1. Is my observation correct that DPAA does not support phylink (and hence talking to SFP+)?
  2. Does  managed="in-band-status" support 10G XFI connections?
  3. Does fixed-link support 10G XFI connections?

 

Kind regards, Tanjeff

Outcomes