lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191212204916.GG30053@lunn.ch>
Date:   Thu, 12 Dec 2019 21:49:16 +0100
From:   Andrew Lunn <andrew@...n.ch>
To:     Marek Behun <marek.behun@....cz>
Cc:     Baruch Siach <baruch@...s.co.il>,
        Vivien Didelot <vivien.didelot@...il.com>,
        netdev@...r.kernel.org,
        Denis Odintsov <d.odintsov@...viangames.com>,
        Hubert Feurstein <h.feurstein@...il.com>
Subject: Re: [BUG] mv88e6xxx: tx regression in v5.3

> Baruch, if the cpu port is in 2500 base-x, remove the fixed-link and do
> this:
> 
> port@5 {
> 	reg = <5>;
> 	label = "cpu";
> 	ethernet = <&cp1_eth2>;
> 	phy-mode = "2500base-x";
> 	managed = "in-band-status";
> };
> 
> Andrew, if the dsa driver is expected to do that, the code certainly
> does not do so. For example in mv88e6xxx_port_set_cmode you have:
>  /* Default to a slow mode, so freeing up SERDES interfaces for
>   * other ports which might use them for SFPs.
>   */
>  if (mode == PHY_INTERFACE_MODE_NA)
>          mode = PHY_INTERFACE_MODE_1000BASEX;

Yah, Ports 9 and 10 of 6390X are a bit odd. They can do 10Gbps. But
only if you set the correct phy-mode. Then they will default to 10G.
If these ports are not doing 10Gbps they can lend there SERDES
interfaces to other ports. There are a few boards which want this
lending, connecting lots of SFPs using these SERDES interfaces. And
there are other boards which do use the ports at 10G as DSA links. DSA
links also default to the maximum speed of the port, and that does
work if you set the correct phy-mode.

So in general, if the port supports > 1Gbps, you need to set the
phy-mode for CPU and DSA ports. It will then default to the maximum
speed for that mode.

     Andrew

Powered by blists - more mailing lists