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: <8903b07b-4ac5-019a-14a1-d2fc6a57c0bb@eks-engel.de>
Date:   Fri, 7 Jun 2019 11:41:07 +0200
From:   Benjamin Beckmeyer <beb@...-engel.de>
To:     Andrew Lunn <andrew@...n.ch>
CC:     <netdev@...r.kernel.org>
Subject: Re: DSA with MV88E6321 and imx28


On 06.06.19 15:59, Andrew Lunn wrote:
> On Thu, Jun 06, 2019 at 03:47:06PM +0200, Benjamin Beckmeyer wrote:
>> On 06.06.19 15:35, Andrew Lunn wrote:
>>>> >From our hardware developer I know now that we are using a "mini" SFF 
>>>> which has no i2c eeprom. 
>>> O.K. Does this mini SFF have LOS, TX-Disable, etc? Are these connected
>>> to GPIOs? I assume the SFF is fibre? And it needs the SERDES to speak
>>> 1000BaseX, not SGMII?
>> Nope, no LOS no tx-disable etc. Yeah, the SFF is fibre. Exactly, it needs 
>> SERDES to speak 1000BaseX.
> O.K. Then try something like what ZII devel B does:
>
>                                        port@3 {
>                                                 reg = <3>;
>                                                 label = "optical3";
>
>                                                 fixed-link {
>                                                         speed = <1000>;
>                                                         full-duplex;
>                                                 };
>
>
> What this does not give you is any link monitoring. I don't have the
> datasheet of this device, but i assume it has two banks of registers
> for the SERDES? And you can get the sync status? Similar to how the
> 6352 works. But with a fixed link this will be ignored.
>
>>>> Switch				|	external
>>>> Port 0 - internal serdes 0x0c --|-------Mini SFF 1x8 Transceiver
>>>> 				|
>>>> Port 0 - internal serdes 0x0d --|-------Mini SFF 1x8 Transceiver
>>>> 				|
>>>> Port 2 ----------RGMII----------|-------KSZ9031 PHY 0x02(strap)--Transceiver
>>>> 				|
>>>> Port 3 - internal PHY 0x03 -----|-------Transceiver
>>>> 				|
>>>> Port 3 - internal PHY 0x04 -----|-------Transceiver
>>>> 				|			
>>>> Port 5 - CPU-Port RMII ---------|-------CPU
>>>> 				|
>>>> Port 6 ----------RGMII----------|-------KSZ9031 PHY 0x06(strap)--Transceiver
>>> So the current state is that just the SFF ports are not working? All
>>> the copper PHYs are O.K.
>>>
>>>     Andrew
>>>
>> The external copper PHYs are still not working properly, but if I set them to
>> fixed-link, I see data coming in with I start tcpdump on my device. Just with
>> some odd header but I'm not that far with DSA-tags and these stuff.
> If you build libpcap & tcpdump from the latest sources, it will
> understand these headers.
>
> 	Andrew

Hi Andrew,

thanks for all the help. We had a problem with the external PHY and our mdio bus.
Now all port are recognized. I set the Serdes ports to a fixed-link, but at the 
moment  I can't test them. Booting kernel 4.9.109 I'm having the interfaces now.
So first of all. success! Great.

So all ports are now in forwarding mode (Switch port register 0x4 of all ports 
are 0x7f), but I don't reach it over ping. Even the ARP request are not forwarded.
The behavior is vice versa. The port status register shows for all copper ports
0x1007 when no link is up so the PHYs are recognized correctly and I tested it 
while the port is up and down. Even the indirect read via PHY COMMAND is working 
with all PHYs now. 
Do I have to set up the DSA in any kind? Or have to set up forwarding mode in 
software?
	Benjamin

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ