* Help: Using DSA capabilities with Microchip KSZ8 Ethernet switch and i.MX8plus does not work
@ 2021-12-13 7:26 André Werner
2021-12-13 15:34 ` Andrew Lunn
0 siblings, 1 reply; 2+ messages in thread
From: André Werner @ 2021-12-13 7:26 UTC (permalink / raw)
To: netdev; +Cc: andre.werner
[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]
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?
Thx in advance.
André Werner
SYS TEC electronic AG
[-- Attachment #2: PGP Public Key --]
[-- Type: application/pgp-keys, Size: 1263 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help: Using DSA capabilities with Microchip KSZ8 Ethernet switch and i.MX8plus does not work
2021-12-13 7:26 Help: Using DSA capabilities with Microchip KSZ8 Ethernet switch and i.MX8plus does not work André Werner
@ 2021-12-13 15:34 ` Andrew Lunn
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2021-12-13 15:34 UTC (permalink / raw)
To: André Werner; +Cc: netdev, andre.werner
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-13 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-13 7:26 Help: Using DSA capabilities with Microchip KSZ8 Ethernet switch and i.MX8plus does not work André Werner
2021-12-13 15:34 ` Andrew Lunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).