Page MenuHomeFreeBSD

Support for MT7531 Switch Driver
Needs RevisionPublic

Authored by freebsd_sysctl.cz on Sat, Jan 31, 3:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Feb 3, 9:45 PM
Unknown Object (File)
Tue, Feb 3, 10:00 AM
Unknown Object (File)
Tue, Feb 3, 7:01 AM
Unknown Object (File)
Tue, Feb 3, 1:44 AM
Unknown Object (File)
Mon, Feb 2, 6:22 PM
Unknown Object (File)
Mon, Feb 2, 6:21 PM
Unknown Object (File)
Sun, Feb 1, 5:34 PM
Unknown Object (File)
Sat, Jan 31, 11:45 PM

Details

Summary

The MT7531 Ethernet switch driver has been successfully tested on the Banana Pi R2 Pro platform.
All 5 switch ports are fully operational.

Perf3 test:

Accepted connection from 192.168.1.55, port 15580
[ 6] local 192.168.1.54 port 5201 connected to 192.168.1.55 port 10830
[ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams
[ 6] 0.00-1.01 sec 36.4 MBytes 301 Mbits/sec 0.059 ms 0/26126 (0%)
[ 6] 1.01-2.00 sec 35.8 MBytes 304 Mbits/sec 0.058 ms 0/25717 (0%)
[ 6] 2.00-3.00 sec 36.2 MBytes 304 Mbits/sec 0.058 ms 0/25977 (0%)
[ 6] 3.00-4.00 sec 26.5 MBytes 222 Mbits/sec 0.076 ms 0/19014 (0%)
[ 6] 4.00-5.00 sec 26.2 MBytes 220 Mbits/sec 0.076 ms 0/18829 (0%)
[ 6] 5.00-6.00 sec 26.2 MBytes 220 Mbits/sec 0.076 ms 0/18843 (0%)
[ 6] 6.00-7.00 sec 26.2 MBytes 220 Mbits/sec 0.076 ms 0/18833 (0%)
[ 6] 7.00-8.00 sec 26.2 MBytes 220 Mbits/sec 0.076 ms 0/18824 (0%)
[ 6] 8.00-9.00 sec 26.2 MBytes 220 Mbits/sec 0.076 ms 0/18837 (0%)
[ 6] 9.00-10.00 sec 26.2 MBytes 220 Mbits/sec 0.076 ms 0/18821 (0%)
[ 6] 10.00-10.02 sec 469 KBytes 218 Mbits/sec 0.076 ms 0/329 (0%)


[ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams
[ 6] 0.00-10.02 sec 293 MBytes 245 Mbits/sec 0.076 ms 0/210150 (0%) receiver

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/arm64/conf/ROCKCHIP
27 ↗(On Diff #170856)

This shouldn't be in the commit

otis added inline comments.
sys/modules/mtkswitch/Makefile
2

We don't use RCS tags any longer.

update diff, remove unnecessary code

mmel requested changes to this revision.Sun, Feb 1, 9:57 AM

At first look only:

    • the '#ifndef MT7531' is clearly incompatible with GENERIC kernel.
  • the defined FDT bindings between the NIC and the switch are not followed. Instead, a "brutal" hack (fdt_find_ethernet_prop_switch) is used.
  • the eqos driver changes is improper. All of these are should be in attached the phy driver.

I also think this breaks eqos driver on other boards (without switch), but I'm not 100% sure. The diff doesn't contain context, so it's difficult to read it.
In any case, these three points must be solved first.

This revision now requires changes to proceed.Sun, Feb 1, 9:57 AM