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] [day] [month] [year] [list]
Date:   Mon, 13 Dec 2021 16:34:06 +0100
From:   Andrew Lunn <andrew@...n.ch>
To:     André Werner <Andre.Werner@...u.de>
Cc:     netdev@...r.kernel.org, andre.werner@...tec-electronic.com
Subject: Re: Help: Using DSA capabilities with Microchip KSZ8 Ethernet switch
 and i.MX8plus does not work

On Mon, Dec 13, 2021 at 08:26:30AM +0100, André Werner wrote:
> 
> Dear community,
> 
> trying to connect a custom board with i.MX8plus SOM to a Microchip KSZ8795
> Ethernet switch still fails. Searching on the Internet did not provide a
> solution anywhere. I was trying different suggestions and follow the steps
> provided in the DSA documentation. The switch is working at the SOM if it is
> not configured with the ksz8795 driver and DSA capabilities. Thus,
> electrical connections on the custom board seem working.
> 
> The switch uses tail tagging in the driver, so maybe the connection of the
> i.MX8 FEC driver and its internet acceleration features drop frames with
> length and CRC errors. I tried to disable all that RACC-features in the
> driver and I proved the configuration using devmem. It looks reasonable but
> I still did not see any receiving frames or see frames send to the host.
> Moreover, using VLAN from the manual of the DSA documentation still shows
> tail tagging switched on if reading the switch's configuration registers. I
> was wondering about that since I thought that this is not necessary when
> using VLAN capabilities.
> 
> Did anyone use an Ethernet switch e.g. Microchip KSZ8 family, with similar
> problems, and get it working?

The FEC is well tested with Marvell switches. But they put the DSA tag
at the beginning of the packet, not the tail.

Counters can be useful to see what is going on. What does ethtool -S
for the FEC show? Any statistics about errors greater than 0? The
KSZ8795 also has statistics. The stats for the CPU port will be
appended to the end of the FEC statistics. Anything interesting there?

	 Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ