openwrt/target/linux
Petr Štetiar c8f8e59816 ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default
Looking at the current upstream driver implementation, it seems like the
TX/RX flow control is enabled only if the flow control pause option is
resolved from the device/link partner advertisements (or otherwise set).

On the other hand, our current in-tree driver force enables TX/RX
flow control by default, thus possibly leading to TX timeouts if the
other end sends pause frames (which are not properly handled?):

 WARNING: CPU: 3 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324
 NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out

Disabling the flow control on PORT 5 MAC seems to fix this issues as the
pause frames are then filtered out. While at it, I'm removing the if
condition completely as suggested, since this code is run only on mt7621
SoC, so there is no need to check for the silicon revisions.

Ref: https://lists.openwrt.org/pipermail/openwrt-devel/2017-November/009882.html
Ref: https://forum.openwrt.org/t/mtk-soc-eth-watchdog-timeout-after-r11573/50000/12
Suggested-by: Felix Fietkau <nbd@nbd.name>
Reported-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-02-20 15:08:06 +01:00
..
apm821xx kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
ar71xx kernel: bump 4.14 to 4.14.167 2020-01-24 13:14:33 +01:00
arc770 arc770: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:27:32 +01:00
archs38 archs38: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:26:35 +01:00
armvirt treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
at91 at91: gen_at91_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:25:44 +01:00
ath25 ath25: split up DEVICE_TITLE 2019-10-19 13:16:57 +02:00
ath79 ath79: correct Siemens WS-AP3610 blocksize 2020-02-20 10:41:12 +01:00
bcm27xx brcm2708: rename target to bcm27xx 2020-02-14 14:10:51 +01:00
bcm47xx brcm47xx: rename target to bcm47xx 2020-02-14 14:10:51 +01:00
bcm53xx bcm53xx: build images for Luxul ABR-4500 and XBR-4500 routers 2020-02-07 09:31:22 +01:00
bcm63xx brcm63xx: rename target to bcm63xx 2020-02-14 14:10:51 +01:00
cns3xxx kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
gemini gemini: dns313_gen_hdd_img.sh: switch to /bin/sh 2019-12-31 01:23:24 +01:00
generic kernel: swconfig: make compatible with kernel 5.2 2020-02-12 22:15:14 +01:00
imx6 kernel: Deactivate CONFIG_SFP in generic config 2019-12-23 15:25:36 +01:00
ipq40xx kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
ipq806x kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
kirkwood kirkwood: exploit BOARD_NAME to set DEVICE_DTS and SUPPORTED_DEVICES 2020-01-23 14:27:12 +01:00
lantiq lantiq: tidy up image/Makefile 2020-01-24 18:52:41 +01:00
layerscape kernel: bump 4.14 to 4.14.169 2020-02-04 18:10:13 +01:00
malta malta: enable HighMem on MIPS32 2020-01-15 22:35:48 +01:00
mediatek kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
mpc85xx treewide: move mktplinkfw to tplink-v1-image in image-commands.mk 2020-01-08 16:15:29 +01:00
mvebu mvebu: image: align subtargets makefile names 2020-02-01 20:02:36 +01:00
mxs mxs: gen_sdcard_ext4_ext4.sh: use /bin/sh 2019-12-31 01:19:48 +01:00
octeon octeon: apply vendor_model scheme to device definition/image name 2020-01-26 23:00:26 +01:00
octeontx kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
omap omap: gen_omap_sdcard_img.sh: use /bin/sh 2019-12-31 01:17:09 +01:00
oxnas kernel: bump 4.14 to 4.14.158 2019-12-10 09:50:42 +01:00
pistachio kernel: bump 4.14 to 4.14.169 2020-02-04 18:10:13 +01:00
ramips ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default 2020-02-20 15:08:06 +01:00
rb532 rb532: gen_image.sh: use /bin/sh 2019-12-31 01:16:17 +01:00
samsung samsung: add subtarget condition for device 2020-01-03 00:04:22 +01:00
sunxi sunxi: backport increased SATA/AHCI DMA TX/RX FIFOs 2020-02-13 17:45:46 +01:00
tegra x86,tegra,mvebu: image: use common reproducible IMG_PART_SIGNATURE 2019-11-11 16:37:13 +01:00
uml treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
x86 kernel: bump 4.19 to 4.19.90 2019-12-24 15:34:43 +01:00
zynq zynq: derive DEVICE_DTS from device definition name 2020-01-21 14:26:04 +01:00
Makefile