ar71xx: Fix gigabit switch support for Mikrotik RB951G-2HnD
authorBaptiste Jonglez <git@bitsofnetworks.org>
Thu, 26 Mar 2020 18:03:42 +0000 (19:03 +0100)
committerPetr Štetiar <ynezz@true.cz>
Sat, 28 Mar 2020 12:03:02 +0000 (13:03 +0100)
commit247043c968d22c193055a97a9cdf5baef4aaf96d
tree2b29259ffd5dde4a4cf0bc383b3c53ad9b64bb84
parent5ecc0cfd6f3da1e8f573024753169aa6f115745e
ar71xx: Fix gigabit switch support for Mikrotik RB951G-2HnD

Without this patch, when using rev 3 of the Atheros AR9344 SoC, the
gigabit switch (AR8327) does not work or works very erratically.

This is a re-spin of http://patchwork.ozlabs.org/patch/419857/ with a
different PLL value, according to the feedback from several users
(including myself) as shown here:

  https://openwrt.org/toh/mikrotik/rb2011uias#tracking_reported_experience_with_suggested_patch_for_the_5_gige_ports

Performance is acceptable: testing L3 forwarding without NAT yields a
performance of 370 Mbit/s (iperf3 TCP) and 41 Kpps (iperf3 UDP with 64
bytes payload). Both tests show that 100% of CPU time is spent on softirq.

A similar fix for a different device (RB2011) was added in e457d22261
("Make GBit switch work on RB2011").

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c