OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Kernel
  • Assigned To No-one
  • Operating System All
  • Severity High
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Andrei Măceș - 07.02.2018
Last edited by Felix Fietkau - 27.02.2018

FS#1333 - MTK Ethernet Issues After NAPI polling Changes

Experiencing periodic timeouts after `968b861612 ramips: improve NAPI polling to increase GRO batch size` (Xiaomi MiWiFi Mini - MT7620A ver:2 eco:6).

Closed by  Felix Fietkau
27.02.2018 08:43
Reason for closing:  Fixed
Andrei Măceș commented on 12.02.2018 23:08

[ 708.250919] ————[ cut here ]———— [ 708.255679] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:316 dev_watchdog+0x174/0x260
[ 708.264134] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[ 708.271243] Modules linked in: rt2800usb rt2800soc rt2800pci rt2800mmio rt2800lib pppoe ppp_async rt2x00usb rt2x00soc rt2x00pci rt2x00mmio rt2x00lib rndis_host pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 cdc_ether xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG usbnet slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio dwc2 ohci_platform ohci_hcd
[ 708.343550] ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common mii
[ 708.350423] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.77 #0
[ 708.356296] Stack : 803f751a 00000031 00000000 00000001 803a358c 803a3207 8036d760 00000000
[ 708.364858] 803f3660 0000013c ffffffff 00000200 00200000 8004c174 803b4e3c 803b4e40
[ 708.373422] 80372f0c 00000003 803710d4 87c0de2c ffffffff 80079860 00200000 8004c174
[ 708.381986] 00000006 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 708.390529] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 708.399096] ...
[ 708.401608] Call Trace:
[ 708.404128] [<8000e17c>] show_stack+0x70/0x8c
[ 708.408594] [<8002381c>] warn+0x110/0x118
[ 708.412883] [<80023854>] warn_slowpath_fmt+0x30/0x3c
[ 708.417959] [<8023aa70>] dev_watchdog+0x174/0x260
[ 708.422789] [<800568dc>] call_timer_fn.isra.5+0x24/0x84
[ 708.428124] [<80056b24>] run_timer_softirq+0x1e8/0x1f4
[ 708.433392] [<800261bc>]
do_softirq+0x164/0x294
[ 708.438196] [<80009458>] handle_int+0x138/0x144
[ 708.442831] [<8000af4c>] r4k_wait_irqoff+0x18/0x24
[ 708.447723] [<800470e4>] cpu_startup_entry+0xa8/0xd4
[ 708.452823] [<803c3b54>] start_kernel+0x40c/0x42c
[ 708.457631] —[ end trace e28f1de44393a550 ]— [ 708.462364] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[ 708.468685] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[ 708.474840] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=2, dtx=2, fdx=81, next=2
[ 708.485155] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=115, drx=117
[ 712.000015] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[ 712.006346] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[ 712.012510] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=97, dtx=97, fdx=32, next=97
[ 712.023094] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=15, drx=16
[ 717.063229] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[ 717.069560] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[ 717.075721] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=32, dtx=32, fdx=16, next=32
[ 717.086305] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=80, drx=81
[ 717.585119] pppoe-wan: renamed from ppp0
[13757.596585] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[13757.602926] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[13757.609127] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=104, dtx=104, fdx=99, next=104
[13757.619976] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=96, drx=97
[13759.271909] pppoe-wan: renamed from ppp0
[26674.283342] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[26674.289679] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[26674.295844] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=69, dtx=69, fdx=9, next=69
[26674.306345] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=59, drx=60
[26679.228597] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[26679.234931] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[26679.241092] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=97, dtx=97, fdx=48, next=97
[26679.251674] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=108, drx=109
[26684.283919] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[26684.290251] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[26684.296413] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=47, dtx=47, fdx=16, next=47
[26684.306997] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=32, drx=33
[26685.279776] pppoe-wan: renamed from ppp0
[28994.689482] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[28994.695811] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[28994.701972] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=20, dtx=20, fdx=110, next=20
[28994.712651] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=60, drx=61
[29000.685179] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[29000.691512] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[29000.697678] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=97, dtx=97, fdx=32, next=97
[29000.708263] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=25, drx=26
[29005.247494] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[29005.253826] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[29005.260034] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=30, dtx=30, fdx=16, next=30
[29005.270616] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=6, drx=7
[29009.181056] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[29009.187388] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[29009.193549] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=18, dtx=18, fdx=16, next=18
[29009.204132] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=25, drx=26
[29010.237026] pppoe-wan: renamed from ppp0
[29246.440489] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[29246.446841] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[29246.453014] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=48, dtx=48, fdx=7, next=48
[29246.463509] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=119, drx=120
[29251.709731] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[29251.716065] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[29251.722226] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=97, dtx=97, fdx=23, next=97
[29251.732811] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=20, drx=21
[29256.717135] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[29256.723468] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[29256.729629] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=26, dtx=26, fdx=16, next=26
[29256.740214] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=11, drx=12
[29257.522807] pppoe-wan: renamed from ppp0
[29499.400513] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[29499.406845] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[29499.413014] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=14, dtx=14, fdx=93, next=14
[29499.423604] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=39, drx=40
[29504.883386] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[29504.889722] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[29504.895883] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=96, dtx=96, fdx=48, next=96
[29504.906466] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=24, drx=25
[29505.341774] pppoe-wan: renamed from ppp0
[31797.638104] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31797.644446] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31797.650610] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=103, dtx=103, fdx=62, next=103
[31797.661460] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=48, drx=50
[31803.250355] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31803.256691] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31803.262854] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=97, dtx=97, fdx=32, next=97
[31803.273437] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=18, drx=19
[31808.211583] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31808.217915] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31808.224075] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=32, dtx=32, fdx=16, next=32
[31808.234663] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=9, drx=10
[31811.650913] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31811.657248] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31811.663408] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31811.673989] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=9, drx=10
[31816.582155] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31816.588492] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31816.594654] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31816.605236] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=8, drx=9
[31820.865604] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31820.871935] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31820.878101] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31820.888686] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=8, drx=9
[31824.955800] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31824.962131] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31824.968294] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31824.978876] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=9, drx=10
[31829.883918] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31829.890253] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31829.896417] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31829.906999] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=9, drx=10
[31833.874673] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31833.881002] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31833.887169] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31833.897753] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=8, drx=9
[31838.273078] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31838.279411] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31838.285575] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31838.296158] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=8, drx=9
[31843.210132] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31843.216469] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31843.222635] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31843.233226] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=9, drx=10
[31846.851006] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31846.857337] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31846.863501] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31846.874084] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=8, drx=9
[31851.590122] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31851.596456] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31851.602617] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31851.613197] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=9, drx=10
[31856.527978] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31856.534315] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31856.540481] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31856.551067] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=11, drx=12
[31859.974867] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31859.981200] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31859.987361] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31859.997942] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=8, drx=9
[31864.920535] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31864.926870] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31864.933031] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31864.943614] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=11, drx=12
[31869.877225] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31869.883562] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31869.889729] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31869.900314] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=11, drx=12
[31873.330524] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31873.336856] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31873.343017] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31873.353599] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=8, drx=9
[31878.266544] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31878.272877] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31878.279038] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31878.289622] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=8, drx=9
[31882.578162] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31882.584492] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31882.590683] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31882.601278] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=10, drx=11
[31886.669329] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31886.675661] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31886.681823] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31886.692405] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=11, drx=12
[31891.612618] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31891.618952] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31891.625114] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31891.635694] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=9, drx=10
[31895.616150] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31895.622482] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31895.628655] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31895.639245] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=8, drx=9
[31899.985771] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31899.992101] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31899.998262] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31900.008846] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=10, drx=11
[31904.932315] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31904.938648] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31904.944809] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31904.955393] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=8, drx=9
[31908.581092] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31908.587423] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31908.593586] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31908.604176] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=14, drx=15
[31913.307931] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31913.314266] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31913.320425] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=0713f000, max=128, ctx=17, dtx=17, fdx=16, next=17
[31913.331008] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=07142000, max=128, calc=12, drx=13
[31916.750403] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[31916.756736] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
[31916.762895] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=07142000, max=128, ctx=56, dtx=56, fdx=32, next=56
[31916.773478] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0713f000, max=128, calc=35, drx=36
[31916.933199] pppoe-wan: renamed from ppp0

Nathaniel Wesley Filardo commented on 17.02.2018 22:22

I am seeing identical dmesg logs (and no ethernet traffic) on a TEW714:

[   36.138722] ------------[ cut here ]------------
[   36.148024] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:316 dev_watchdog+0x1dc/0x25c
[   36.164570] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[   36.178480] Modules linked in: rt2800soc rt2800mmio rt2800lib rt2x00soc rt2x00mmio rt2x00lib mac80211 cfg80211 wireguard crc_itu_t crc_ccitt compat ip6_udp_tunnel udp_tunnel eeprom_93cx6 usb_storage leds_gpio sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 crc32c_generic crypto_hash
[   36.235653] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.77 #0
[   36.247146] Stack : 803f751a 00000031 00000000 00000001 803ab4f4 803ab167 80364e10 00000000
[   36.263898]         803f3660 0000013c ffffffff 00000200 00200000 8004d150 8036a600 803b0000
[   36.280662]         00000003 0000013c 803687c8 8180de2c 00200000 8007b2cc 00000000 00000006
[   36.297389]         00000006 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   36.314149]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   36.330908]         ...
[   36.335777] Call Trace:
[   36.340740] [<8000e338>] show_stack+0x54/0x88
[   36.349526] [<800238d0>] __warn+0xe4/0x118
[   36.357701] [<80023934>] warn_slowpath_fmt+0x30/0x3c
[   36.367692] [<8022e0b4>] dev_watchdog+0x1dc/0x25c
[   36.377180] [<80057888>] call_timer_fn.isra.4+0x24/0x84
[   36.387678] [<80057a94>] run_timer_softirq+0x1ac/0x1f8
[   36.398018] [<8002643c>] __do_softirq+0x250/0x298
[   36.407477] [<800095d8>] handle_int+0x138/0x144
[   36.416580] [<80009460>] __r4k_wait+0x20/0x40
[   36.425340] [<80047c24>] cpu_startup_entry+0x84/0xd0
[   36.435323] [<803cabb4>] start_kernel+0x44c/0x46c
[   36.444770] ---[ end trace 2b4e1c347d94e320 ]---
[   36.454041] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[   36.466425] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:00000057
[   36.478469] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=00eed000, max=128, ctx=2, dtx=0, fdx=0, next=2
[   36.498503] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=00e02000, max=128, calc=127, drx=0
[   47.178776] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[   47.191186] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:00000057
[   47.203248] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=00e02000, max=128, ctx=2, dtx=0, fdx=0, next=2
[   47.223257] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=00d58000, max=128, calc=127, drx=0

I have not attempted to bisect between HEAD and the commit introducing support for this device, but can do so soonish, unless someone beats me to it.

Andrei Măceș commented on 18.02.2018 05:43

 FS#1349  might be related. Try reverting 968b861612. Also, in my case, the ETH driver eventually recovers itself, but will timeout again with increased traffic. I should mention that I'm forced to use MSS clamping for my PPPOE connection.

Andrei Măceș commented on 21.02.2018 10:08

Looks like K4.14 improves things here; fingers crossed that it was a 4.9-related bug.

Aleksey commented on 21.02.2018 11:56

r6225-9595a9e8d3 with 4.14. Looks stable.

K900 commented on 27.02.2018 06:34

Does miwifi work on 4.14? I'm not really willing to test on my home router :(

Project Manager
Felix Fietkau commented on 27.02.2018 08:42

I've reverted the commit in r6325-e9b58b22c1

Andrei Măceș commented on 27.02.2018 10:45

Will it be brought back once ramips switches to K4.14? The bug doesn't happen there, and the GRO patch does seem an interesting idea.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing