mbox series

[net-next,0/6] net-next: dsa: mt7530: add support for MT7531

Message ID cover.1575914275.git.landen.chao@mediatek.com (mailing list archive)
Headers show
Series net-next: dsa: mt7530: add support for MT7531 | expand

Message

Landen Chao (趙皎宏) Dec. 10, 2019, 8:14 a.m. UTC
This patch series adds support for MT7531.

MT7531 is the next generation of MT7530 which could be found on Mediatek
router platforms such as MT7622 or MT7629. 

It is also a 7-ports switch with 5 giga embedded phys, 2 cpu ports, and
the same MAC logic of MT7530. Cpu port 6 only supports HSGMII interface.
Cpu port 5 supports either RGMII or HSGMII in different HW SKU. Due to
support for HSGMII interface, pll, and pad setting are different from
MT7530.

Landen Chao (6):
  net: dsa: mt7530: Refine message in Kconfig
  net: dsa: mt7530: Extend device data ready for adding a new hardware
  dt-bindings: net: dsa: add new MT7531 binding to support MT7531
  net: dsa: mt7530: Add the support of MT7531 switch
  arm64: dts: mt7622: add mt7531 dsa to mt7622-rfb1 board
  arm64: dts: mt7622: add mt7531 dsa to bananapi-bpi-r64 board

 .../devicetree/bindings/net/dsa/mt7530.txt    |  77 +-
 .../dts/mediatek/mt7622-bananapi-bpi-r64.dts  |  50 +
 arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts  |  63 +-
 drivers/net/dsa/Kconfig                       |   6 +-
 drivers/net/dsa/mt7530.c                      | 874 ++++++++++++++++--
 drivers/net/dsa/mt7530.h                      | 173 +++-
 6 files changed, 1168 insertions(+), 75 deletions(-)

Comments

Frank Wunderlich Dec. 10, 2019, 11:37 a.m. UTC | #1
Hi

thank you for the DSA-driver, works so far, but a bit to improve:

i got some retransmitts on RX (TX looks good)...i guess a clk/pll problem

Iperf3-Client (BPI-R64,192.168.0.19):

root@bpi-r64:~# iperf3 -c 192.168.0.21
Connecting to host 192.168.0.21, port 5201
[  5] local 192.168.0.19 port 56412 connected to 192.168.0.21 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   114 MBytes   957 Mbits/sec    0   1003 KBytes
[  5]   1.00-2.00   sec   113 MBytes   944 Mbits/sec    0   1.08 MBytes
[  5]   2.00-3.00   sec   112 MBytes   941 Mbits/sec    0   1.08 MBytes
[  5]   3.00-4.00   sec   112 MBytes   941 Mbits/sec    0   1.08 MBytes
[  5]   4.00-5.00   sec   112 MBytes   942 Mbits/sec    0   1.08 MBytes
[  5]   5.00-6.00   sec   112 MBytes   944 Mbits/sec    0   1.21 MBytes
[  5]   6.00-7.00   sec   112 MBytes   944 Mbits/sec    0   1.27 MBytes
[  5]   7.00-8.00   sec   112 MBytes   943 Mbits/sec    0   1.27 MBytes
[  5]   8.00-9.00   sec   111 MBytes   934 Mbits/sec    0   1.27 MBytes
[  5]   9.00-10.00  sec   112 MBytes   944 Mbits/sec    0   1.27 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.10 GBytes   943 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.10 GBytes   941 Mbits/sec                  receiver

iperf Done.

root@bpi-r64:~# iperf3 -c 192.168.0.21 -R
Connecting to host 192.168.0.21, port 5201
Reverse mode, remote host 192.168.0.21 is sending
[  5] local 192.168.0.19 port 56420 connected to 192.168.0.21 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   112 MBytes   941 Mbits/sec
[  5]   1.00-2.00   sec   112 MBytes   941 Mbits/sec
[  5]   2.00-3.00   sec   111 MBytes   933 Mbits/sec
[  5]   3.00-4.00   sec   112 MBytes   941 Mbits/sec
[  5]   4.00-5.00   sec   112 MBytes   937 Mbits/sec
[  5]   5.00-6.00   sec   112 MBytes   941 Mbits/sec
[  5]   6.00-7.00   sec   111 MBytes   933 Mbits/sec
[  5]   7.00-8.00   sec   112 MBytes   939 Mbits/sec
[  5]   8.00-9.00   sec   112 MBytes   936 Mbits/sec
[  5]   9.00-10.00  sec   112 MBytes   941 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.10 GBytes   942 Mbits/sec  605             sender
[  5]   0.00-10.00  sec  1.09 GBytes   939 Mbits/sec                  receiver

iperf Done.

Iperf3-Server (my Laptop,192.168.0.21, reverse mode only):

Accepted connection from 192.168.0.19, port 56418
[  5] local 192.168.0.21 port 5201 connected to 192.168.0.19 port 56420
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.00   sec   115 MBytes   965 Mbits/sec    0    772 KBytes
[  5]   1.00-2.00   sec   112 MBytes   944 Mbits/sec    0    772 KBytes
[  5]   2.00-3.00   sec   111 MBytes   933 Mbits/sec  157    643 KBytes
[  5]   3.00-4.00   sec   112 MBytes   944 Mbits/sec    0    755 KBytes
[  5]   4.00-5.00   sec   111 MBytes   933 Mbits/sec  141    625 KBytes
[  5]   5.00-6.00   sec   112 MBytes   944 Mbits/sec    0    740 KBytes
[  5]   6.00-7.00   sec   111 MBytes   933 Mbits/sec  307    438 KBytes
[  5]   7.00-8.00   sec   111 MBytes   933 Mbits/sec    0    585 KBytes
[  5]   8.00-9.00   sec   112 MBytes   944 Mbits/sec    0    700 KBytes
[  5]   9.00-10.00  sec   112 MBytes   944 Mbits/sec    0    803 KBytes
[  5]  10.00-10.00  sec  0.00 Bytes  0.00 bits/sec    0    803 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.00  sec  1.10 GBytes   942 Mbits/sec  605             sender
[  5]   0.00-10.00  sec  0.00 Bytes  0.00 bits/sec                  receiver

regards Frank

[1] https://github.com/frank-w/BPI-R2-4.14/tree/5.5-r64-netnext