Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1618 - mtk_soc_eth error with kernel stacktrace since kernel 4.14.50 #8652

Closed
openwrt-bot opened this issue Jun 28, 2018 · 13 comments
Closed
Labels

Comments

@openwrt-bot
Copy link

vzhestkov:

Xiaomi Mi Router 3G with MediaTek MT7621
I've tested with about 5 daily snapshots, but the problem still exists. I think snapshots based on kernels prior to 4.14.50 had no such problem as I had uptime more than 2 weeks
Router stops eth device until reboot, sometimes rebooted with this error automatically, but in most cases I have to login and reboot it manually.
Once I found a correlation with a device performing backup of WatsApp mobile application, router stops eth device in about 2 minutes after restart and return to normal working behavior only after finishing backup by this device.
Here is the messages from the log:
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.132134] ------------[ cut here ]------------
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.136778] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324
Wed Jun 27 14:02:30 2018 kern.info kernel: [ 6216.145052] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.152031] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 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 xt_FLOWOFFLOAD xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.220963] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.50 #0
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.226940] Stack : 00000000 00000000 00000000 00000000 80607ad2 00000034 00000000 00000000
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.235275] 8059cdb4 8059c947 8052758c 00000000 00000000 00000001 8fc09d68 1cc282d2
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.243606] 00000000 00000000 80600000 00006288 00000000 0000013d 00000008 00000000
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.251935] 00000000 805a0000 00035f23 00000000 00000000 00000000 805c0000 803765e8
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.260265] 00000009 00000140 00000000 8fd86c40 00000003 80299e30 00000000 80600000
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.268596] ...
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.271031] Call Trace:
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.273491] [<80010558>] show_stack+0x58/0x100
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.277928] [<8046842c>] dump_stack+0x9c/0xe0
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.282268] [<8002e218>] __warn+0xe0/0x114
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.286343] [<8002e27c>] warn_slowpath_fmt+0x30/0x3c
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.291285] [<803765e8>] dev_watchdog+0x1ac/0x324
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.295984] [<800861c4>] call_timer_fn.isra.3+0x24/0x84
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.301184] [<800863dc>] run_timer_softirq+0x1b8/0x244
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.306314] [<804856f0>] __do_softirq+0x128/0x2ec
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.311000] [<80032920>] irq_exit+0x98/0xcc
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.315182] [<8024a82c>] plat_irq_dispatch+0xfc/0x138
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.320209] [<8000b5a8>] except_vec_vi_end+0xb8/0xc4
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.325149] [<8000cf70>] r4k_wait_irqoff+0x1c/0x24
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.329939] [<8006647c>] do_idle+0xe4/0x168
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.334103] [<800666f8>] cpu_startup_entry+0x24/0x2c
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.339048] [<805c5bf8>] start_kernel+0x48c/0x4ac
Wed Jun 27 14:02:30 2018 kern.warn kernel: [ 6216.343858] ---[ end trace 1c5f30dcaaf8aef8 ]---
Wed Jun 27 14:02:30 2018 kern.err kernel: [ 6216.348544] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Wed Jun 27 14:02:30 2018 kern.info kernel: [ 6216.354810] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Wed Jun 27 14:02:30 2018 kern.info kernel: [ 6216.360833] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0ea80000, max=0, ctx=3009, dtx=2986, fdx=2977, next=3009
Wed Jun 27 14:02:30 2018 kern.info kernel: [ 6216.371710] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0e210000, max=0, calc=3938, drx=3940
Wed Jun 27 14:02:30 2018 kern.info kernel: [ 6216.785365] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5760000c, 0x10c = 0x80818
Wed Jun 27 14:02:30 2018 kern.info kernel: [ 6216.798589] mtk_soc_eth 1e100000.ethernet: PPE started

Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.035252] ------------[ cut here ]------------
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.039894] WARNING: CPU: 2 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324
Wed Jun 27 16:52:20 2018 kern.info kernel: [10116.048165] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.055097] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 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 xt_FLOWOFFLOAD xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.123939] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.14.50 #0
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.129927] Stack : 00000000 00000000 00000000 00000000 80607ad2 00000034 00000000 00000000
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.138263] 8fc44834 8059c947 8052758c 00000002 00000000 00000001 8fc11d68 1cc282d2
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.146606] 00000000 00000000 80600000 000061c8 00000000 0000013a 00000008 00000000
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.154951] 00000000 805a0000 0001e423 00000000 00000000 00000000 805c0000 803765e8
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.163283] 00000009 00000140 00000002 8ffc9c40 00000003 80299e30 00000008 80600008
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.171617] ...
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.174053] Call Trace:
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.176514] [<80010558>] show_stack+0x58/0x100
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.180950] [<8046842c>] dump_stack+0x9c/0xe0
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.185300] [<8002e218>] __warn+0xe0/0x114
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.189378] [<8002e27c>] warn_slowpath_fmt+0x30/0x3c
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.194321] [<803765e8>] dev_watchdog+0x1ac/0x324
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.199020] [<800861c4>] call_timer_fn.isra.3+0x24/0x84
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.204220] [<800863dc>] run_timer_softirq+0x1b8/0x244
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.209351] [<804856f0>] __do_softirq+0x128/0x2ec
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.214039] [<80032920>] irq_exit+0x98/0xcc
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.218224] [<8024a82c>] plat_irq_dispatch+0xfc/0x138
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.223252] [<8000b5a8>] except_vec_vi_end+0xb8/0xc4
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.228195] [<8000cf70>] r4k_wait_irqoff+0x1c/0x24
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.232986] [<8006647c>] do_idle+0xe4/0x168
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.237152] [<800666f8>] cpu_startup_entry+0x24/0x2c
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.242104] [<800180b4>] not_nmi+0x8c/0x1d8
Wed Jun 27 16:52:20 2018 kern.warn kernel: [10116.246325] ---[ end trace d3f46981f3a08d6e ]---
Wed Jun 27 16:52:20 2018 kern.err kernel: [10116.250930] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Wed Jun 27 16:52:20 2018 kern.info kernel: [10116.257093] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Wed Jun 27 16:52:20 2018 kern.info kernel: [10116.263075] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0eaa0000, max=0, ctx=3816, dtx=3812, fdx=3803, next=3816
Wed Jun 27 16:52:20 2018 kern.info kernel: [10116.273916] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0e230000, max=0, calc=3651, drx=3652
Wed Jun 27 16:52:20 2018 kern.info kernel: [10116.688339] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5860000c, 0x10c = 0x80818
Wed Jun 27 16:52:20 2018 kern.info kernel: [10116.701640] mtk_soc_eth 1e100000.ethernet: PPE started
Wed Jun 27 16:52:26 2018 kern.err kernel: [10122.115217] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Wed Jun 27 16:52:26 2018 kern.info kernel: [10122.121415] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Wed Jun 27 16:52:26 2018 kern.info kernel: [10122.127452] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0e260000, max=0, ctx=4, dtx=0, fdx=0, next=4
Wed Jun 27 16:52:26 2018 kern.info kernel: [10122.137321] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0de30000, max=0, calc=149, drx=150
Wed Jun 27 16:52:26 2018 kern.info kernel: [10122.548342] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5460000c, 0x10c = 0x80818
Wed Jun 27 16:52:26 2018 kern.info kernel: [10122.562101] mtk_soc_eth 1e100000.ethernet: PPE started
Wed Jun 27 16:52:35 2018 kern.err kernel: [10132.035215] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Wed Jun 27 16:52:35 2018 kern.info kernel: [10132.041420] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Wed Jun 27 16:52:35 2018 kern.info kernel: [10132.047471] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0e0b0000, max=0, ctx=2, dtx=0, fdx=0, next=2
Wed Jun 27 16:52:35 2018 kern.info kernel: [10132.057333] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0d480000, max=0, calc=296, drx=297
Wed Jun 27 16:52:36 2018 kern.info kernel: [10132.468120] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5060030c, 0x10c = 0x80818
Wed Jun 27 16:52:36 2018 kern.info kernel: [10132.482429] mtk_soc_eth 1e100000.ethernet: PPE started
Wed Jun 27 16:52:45 2018 kern.err kernel: [10142.035113] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Wed Jun 27 16:52:45 2018 kern.info kernel: [10142.041301] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Wed Jun 27 16:52:45 2018 kern.info kernel: [10142.047328] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0dea0000, max=0, ctx=1, dtx=0, fdx=0, next=1
Wed Jun 27 16:52:45 2018 kern.info kernel: [10142.057147] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0ec40000, max=0, calc=358, drx=359
Wed Jun 27 16:52:46 2018 kern.info kernel: [10142.468048] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x4a60090c, 0x10c = 0x80818
Wed Jun 27 16:52:46 2018 kern.info kernel: [10142.482993] mtk_soc_eth 1e100000.ethernet: PPE started
Wed Jun 27 16:52:55 2018 kern.err kernel: [10152.035093] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Wed Jun 27 16:52:55 2018 kern.info kernel: [10152.041279] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Wed Jun 27 16:52:55 2018 kern.info kernel: [10152.047294] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0d500000, max=0, ctx=1, dtx=0, fdx=0, next=1
Wed Jun 27 16:52:55 2018 kern.info kernel: [10152.057096] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0d570000, max=0, calc=389, drx=390
Wed Jun 27 16:52:56 2018 kern.info kernel: [10152.468021] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5460000c, 0x10c = 0x80818
Wed Jun 27 16:52:56 2018 kern.info kernel: [10152.482044] mtk_soc_eth 1e100000.ethernet: PPE started
Wed Jun 27 16:53:05 2018 daemon.info hostapd: wlan0: STA 80:56:f2:b3:3f:b5 IEEE 802.11: authenticated
Wed Jun 27 16:53:05 2018 daemon.info hostapd: wlan0: STA 80:56:f2:b3:3f:b5 IEEE 802.11: associated (aid 2)
Wed Jun 27 16:53:05 2018 daemon.notice hostapd: wlan0: AP-STA-CONNECTED 80:56:f2:b3:3f:b5
Wed Jun 27 16:53:05 2018 daemon.info hostapd: wlan0: STA 80:56:f2:b3:3f:b5 WPA: pairwise key handshake completed (RSN)
Wed Jun 27 16:53:05 2018 daemon.info dnsmasq-dhcp[2484]: DHCPREQUEST(br-lan) 172.29.192.119 80:56:f2:b3:3f:b5
Wed Jun 27 16:53:05 2018 daemon.info dnsmasq-dhcp[2484]: DHCPACK(br-lan) 172.29.192.119 80:56:f2:b3:3f:b5 PZhukov-02-wifi
Wed Jun 27 16:53:05 2018 daemon.warn odhcpd[1083]: DHCPV6 SOLICIT IA_NA from 0001000121c0435874867a519335 on br-lan: ok fdc9:c20f:b3e1::7fa/128
Wed Jun 27 16:53:05 2018 daemon.info dnsmasq[2484]: read /etc/hosts - 4 addresses
Wed Jun 27 16:53:05 2018 daemon.info dnsmasq[2484]: read /tmp/hosts/odhcpd - 7 addresses
Wed Jun 27 16:53:05 2018 daemon.info dnsmasq[2484]: read /tmp/hosts/dhcp.cfg01411c - 16 addresses
Wed Jun 27 16:53:05 2018 daemon.info dnsmasq-dhcp[2484]: read /etc/ethers - 0 addresses
Wed Jun 27 16:53:05 2018 kern.err kernel: [10162.035026] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Wed Jun 27 16:53:05 2018 kern.info kernel: [10162.041227] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Wed Jun 27 16:53:05 2018 kern.info kernel: [10162.047256] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0d480000, max=0, ctx=1, dtx=0, fdx=0, next=1
Wed Jun 27 16:53:05 2018 kern.info kernel: [10162.057058] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0df90000, max=0, calc=290, drx=291
Wed Jun 27 16:53:06 2018 kern.info kernel: [10162.467931] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x46600d0c, 0x10c = 0x80818
Wed Jun 27 16:53:06 2018 kern.info kernel: [10162.475297] mtk_soc_eth 1e100000.ethernet: reset pse
Wed Jun 27 16:53:06 2018 kern.emerg kernel: [10162.486116] skbuff: skb_over_panic: text:803091b4 len:1568 put:1568 head:8de28e00 data:8de28e42 tail:0x8de29462 end:0x8de29460 dev:eth0
Wed Jun 27 16:53:06 2018 kern.info kernel: [10162.486270] mtk_soc_eth 1e100000.ethernet: PPE started

Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.134652] ------------[ cut here ]------------
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.139303] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324
Thu Jun 28 10:55:49 2018 kern.info kernel: [ 6066.147555] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.154480] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 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 xt_FLOWOFFLOAD xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables sit tunnel4 ip_tunnel tun leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.225260] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.51 #0
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.231234] Stack : 00000000 00000000 00000000 00000000 80607ad2 00000034 00000000 00000000
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.239567] 8059edb4 8059e947 8052860c 00000000 00000000 00000001 8fc09d68 1cc282d3
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.247901] 00000000 00000000 80600000 000062e8 00000000 0000013e 00000008 00000000
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.256231] 00000000 805a0000 00036fec 00000000 00000000 00000000 805c0000 80376df8
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.264561] 00000009 00000140 00000000 8fe2ce40 00000003 8029a160 00000000 80600000
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.272890] ...
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.275326] Call Trace:
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.277780] [<80010598>] show_stack+0x58/0x100
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.282216] [<80468c5c>] dump_stack+0x9c/0xe0
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.286557] [<8002e328>] __warn+0xe0/0x114
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.290632] [<8002e38c>] warn_slowpath_fmt+0x30/0x3c
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.295573] [<80376df8>] dev_watchdog+0x1ac/0x324
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.300269] [<80086204>] call_timer_fn.isra.3+0x24/0x84
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.305469] [<8008641c>] run_timer_softirq+0x1b8/0x244
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.310597] [<80485f10>] __do_softirq+0x128/0x2ec
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.315285] [<80032a30>] irq_exit+0x98/0xcc
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.319466] [<8024a95c>] plat_irq_dispatch+0xfc/0x138
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.324491] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.329431] [<8000cfb0>] r4k_wait_irqoff+0x1c/0x24
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.334221] [<800664bc>] do_idle+0xe4/0x168
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.338391] [<80066738>] cpu_startup_entry+0x24/0x2c
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.343339] [<805c7bf8>] start_kernel+0x48c/0x4ac
Thu Jun 28 10:55:49 2018 kern.warn kernel: [ 6066.348123] ---[ end trace 26a1a8527dad924c ]---
Thu Jun 28 10:55:49 2018 kern.err kernel: [ 6066.352729] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Thu Jun 28 10:55:49 2018 kern.info kernel: [ 6066.358911] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Thu Jun 28 10:55:49 2018 kern.info kernel: [ 6066.364918] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0eac0000, max=0, ctx=3327, dtx=3314, fdx=3306, next=3327
Thu Jun 28 10:55:49 2018 kern.info kernel: [ 6066.375761] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0e250000, max=0, calc=2626, drx=2634
Thu Jun 28 10:55:49 2018 kern.info kernel: [ 6066.787702] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x4e60050c, 0x10c = 0x80818
Thu Jun 28 10:55:49 2018 kern.info kernel: [ 6066.800991] mtk_soc_eth 1e100000.ethernet: PPE started

@openwrt-bot
Copy link
Author

vzhestkov:

Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.003053] ------------[ cut here ]------------
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.007737] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324
Thu Jun 28 16:07:27 2018 kern.info kernel: [18256.016005] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.022949] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 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 xt_FLOWOFFLOAD xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables sit tunnel4 ip_tunnel tun leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.093790] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.51 #0
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.099769] Stack : 00000000 00000000 00000000 00000000 80607ad2 00000034 00000000 00000000
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.108102] 8fc441f4 8059e947 8052860c 00000001 00000000 00000001 8fc0dd68 1cc282d3
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.116437] 00000000 00000000 80600000 000062e8 00000000 0000013e 00000008 00000000
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.124773] 00000000 805a0000 00016e5e 00000000 00000000 00000000 805c0000 80376df8
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.133110] 00000009 00000140 00000001 8ffcb840 00000003 8029a160 00000004 80600004
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.141441] ...
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.143877] Call Trace:
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.146341] [<80010598>] show_stack+0x58/0x100
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.150778] [<80468c5c>] dump_stack+0x9c/0xe0
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.155126] [<8002e328>] __warn+0xe0/0x114
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.159203] [<8002e38c>] warn_slowpath_fmt+0x30/0x3c
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.164156] [<80376df8>] dev_watchdog+0x1ac/0x324
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.168856] [<80086204>] call_timer_fn.isra.3+0x24/0x84
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.174060] [<8008641c>] run_timer_softirq+0x1b8/0x244
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.179202] [<80485f10>] __do_softirq+0x128/0x2ec
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.183904] [<80032a30>] irq_exit+0x98/0xcc
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.188089] [<8024a95c>] plat_irq_dispatch+0xfc/0x138
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.193123] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.198068] [<8000cfb0>] r4k_wait_irqoff+0x1c/0x24
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.202861] [<800664bc>] do_idle+0xe4/0x168
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.207028] [<80066738>] cpu_startup_entry+0x24/0x2c
Thu Jun 28 16:07:27 2018 kern.warn kernel: [18256.212089] ---[ end trace 3ade48efb0f30979 ]---
Thu Jun 28 16:07:27 2018 kern.err kernel: [18256.216787] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Thu Jun 28 16:07:27 2018 kern.info kernel: [18256.223078] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Thu Jun 28 16:07:27 2018 kern.info kernel: [18256.229114] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0eaa0000, max=0, ctx=319, dtx=307, fdx=307, next=319
Thu Jun 28 16:07:27 2018 kern.info kernel: [18256.239643] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0e230000, max=0, calc=1111, drx=1112
Thu Jun 28 16:07:28 2018 kern.info kernel: [18256.646324] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5460000c, 0x10c = 0x80818
Thu Jun 28 16:07:28 2018 kern.info kernel: [18256.659778] mtk_soc_eth 1e100000.ethernet: PPE started
Thu Jun 28 16:07:34 2018 kern.err kernel: [18262.243014] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Thu Jun 28 16:07:34 2018 kern.info kernel: [18262.249196] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Thu Jun 28 16:07:34 2018 kern.info kernel: [18262.255231] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0dee0000, max=0, ctx=1, dtx=0, fdx=0, next=1
Thu Jun 28 16:07:34 2018 kern.info kernel: [18262.265098] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0ef40000, max=0, calc=66, drx=67
Thu Jun 28 16:07:34 2018 kern.info kernel: [18262.676272] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5d60000c, 0x10c = 0x80818
Thu Jun 28 16:07:34 2018 kern.info kernel: [18262.690254] mtk_soc_eth 1e100000.ethernet: PPE started
Thu Jun 28 16:07:39 2018 kern.err kernel: [18268.002990] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Thu Jun 28 16:07:39 2018 kern.info kernel: [18268.009176] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Thu Jun 28 16:07:39 2018 kern.info kernel: [18268.015195] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0d610000, max=0, ctx=1, dtx=0, fdx=0, next=1
Thu Jun 28 16:07:39 2018 kern.info kernel: [18268.024994] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0ddb0000, max=0, calc=102, drx=103
Thu Jun 28 16:07:40 2018 kern.info kernel: [18268.437171] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x4b60080c, 0x10c = 0x80818
Thu Jun 28 16:07:40 2018 kern.info kernel: [18268.450894] mtk_soc_eth 1e100000.ethernet: PPE started
Thu Jun 28 16:07:49 2018 kern.err kernel: [18278.003016] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Thu Jun 28 16:07:49 2018 kern.info kernel: [18278.009225] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Thu Jun 28 16:07:49 2018 kern.info kernel: [18278.015260] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0d480000, max=0, ctx=1, dtx=0, fdx=0, next=1
Thu Jun 28 16:07:49 2018 kern.info kernel: [18278.025130] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0d620000, max=0, calc=156, drx=157
Thu Jun 28 16:07:50 2018 kern.info kernel: [18278.436085] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5960000c, 0x10c = 0x80818
Thu Jun 28 16:07:50 2018 kern.info kernel: [18278.450251] mtk_soc_eth 1e100000.ethernet: PPE started
Thu Jun 28 16:07:59 2018 kern.err kernel: [18288.002929] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Thu Jun 28 16:07:59 2018 kern.info kernel: [18288.009125] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Thu Jun 28 16:07:59 2018 kern.info kernel: [18288.015169] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0d4b0000, max=0, ctx=1, dtx=0, fdx=0, next=1
Thu Jun 28 16:07:59 2018 kern.info kernel: [18288.025052] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0d440000, max=0, calc=131, drx=132
Thu Jun 28 16:08:00 2018 kern.info kernel: [18288.436042] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5560000c, 0x10c = 0x80818
Thu Jun 28 16:08:00 2018 kern.info kernel: [18288.449011] mtk_soc_eth 1e100000.ethernet: PPE started
Thu Jun 28 16:08:09 2018 kern.err kernel: [18298.002926] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Thu Jun 28 16:08:09 2018 kern.info kernel: [18298.009121] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Thu Jun 28 16:08:09 2018 kern.info kernel: [18298.015158] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0ec60000, max=0, ctx=1, dtx=0, fdx=0, next=1
Thu Jun 28 16:08:09 2018 kern.info kernel: [18298.025032] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0dea0000, max=0, calc=129, drx=130
Thu Jun 28 16:08:10 2018 kern.info kernel: [18298.436019] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5e60000c, 0x10c = 0x80818
Thu Jun 28 16:08:10 2018 kern.info kernel: [18298.449731] mtk_soc_eth 1e100000.ethernet: PPE started

@openwrt-bot
Copy link
Author

happydig:

Confirm. My device is NETGEAR R6220.

@openwrt-bot
Copy link
Author

happydig:

[ 0.000000] Linux version 4.14.53 (buildbot@slashdirt-03) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7401-9009efa)) #0 SMP Wed Jul 4 17:30:57 2018
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is Netgear R6220
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2} total 2
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 805c41a0, node_mem_map 81003000
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] random: get_random_bytes called from start_kernel+0x90/0x4ac with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu @8110f000 s26256 r8192 d22896 u57344
[ 0.000000] pcpu-alloc: s26256 r8192 d22896 u57344 alloc=144096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00016810
[ 0.000000] Readback ErrCtl register=00016810
[ 0.000000] Memory: 123312K/131072K available (4634K kernel code, 241K rwdata, 1028K rodata, 228K init, 275K bss, 7760K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 256
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.015485] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.087789] pid_max: default: 32768 minimum: 301
[ 0.097080] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.110095] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.125508] Hierarchical SRCU implementation.
[ 0.134680] smp: Bringing up secondary CPUs ...
[ 0.156745] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.156753] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.156765] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.156896] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.204299] Synchronize counters for CPU 1: done.
[ 0.263960] smp: Brought up 1 node, 2 CPUs
[ 0.275431] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.294895] futex hash table entries: 512 (order: 2, 16384 bytes)
[ 0.307113] pinctrl core: initialized pinctrl subsystem
[ 0.318812] NET: Registered protocol family 16
[ 0.338047] FPU Affinity set after 11720 emulations
[ 0.338892] pull PCIe RST: RALINK_RSTCTRL = 0
[ 0.647860] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.657928] ***** Xtal 40MHz *****
[ 0.664656] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.674864] Port 0 N_FTS = 1b105000
[ 0.681761] Port 1 N_FTS = 1b102800
[ 0.688688] Port 2 N_FTS = 1b105000
[ 1.847067] PCIE1 no card, disable it(RST&CLK)
[ 1.855757] -> 12007f2
[ 1.860576] PCIE0 enabled
[ 1.865773] PCIE2 enabled
[ 1.870957] PCI host bridge /pcie@1e140000 ranges:
[ 1.880485] MEM 0x0000000060000000..0x000000006fffffff
[ 1.890849] IO 0x000000001e160000..0x000000001e16ffff
[ 1.901202] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[ 1.926111] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.937561] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.948750] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.961143] PCI host bridge to bus 0000:00
[ 1.969168] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 1.982818] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 1.994556] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 2.008041] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 2.023810] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 2.023850] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 2.023862] pci 0000:00:00.0: reg 0x14: [mem 0x60300000-0x6030ffff]
[ 2.023927] pci 0000:00:00.0: supports D1
[ 2.023936] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 2.024216] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[ 2.024252] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 2.024272] pci 0000:00:01.0: reg 0x14: [mem 0x60310000-0x6031ffff]
[ 2.024352] pci 0000:00:01.0: supports D1
[ 2.024366] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[ 2.024873] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[ 2.024940] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 2.024996] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 2.025093] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 2.025294] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 2.025541] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[ 2.025597] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 2.025744] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[ 2.025949] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 2.025973] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[ 2.026058] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 2.039082] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.052907] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 2.066033] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.079858] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 2.093347] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[ 2.107683] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[ 2.121156] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[ 2.134643] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[ 2.148131] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[ 2.162640] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[ 2.176971] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.186812] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.200297] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref]
[ 2.214650] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[ 2.228124] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 2.237957] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff]
[ 2.253282] clocksource: Switched to clocksource GIC
[ 2.264466] NET: Registered protocol family 2
[ 2.273993] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.287729] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 2.300332] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.313054] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.324551] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.337181] NET: Registered protocol family 1
[ 2.345765] PCI: CLS 0 bytes, default 32
[ 2.583218] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 2.594258] Crashlog allocated RAM at address 0x3f00000
[ 2.604717] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 2.625482] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.637009] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.659788] io scheduler noop registered
[ 2.667562] io scheduler deadline registered (default)
[ 2.678229] gpio-export gpio_export: 1 gpio(s) exported
[ 2.689429] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 2.705769] console [ttyS0] disabled
[ 2.712782] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 14, base_baud = 3125000) is a 16550A
[ 2.730778] console [ttyS0] enabled
[ 2.744549] bootconsole [early0] disabled
[ 2.761246] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 2.774291] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 2.788319] Allocate 16 byte aligned buffer: 80638010
[ 2.798378] Enable NFI Clock
[ 2.804121] # MTK NAND # : Use HW ECC
[ 2.811414] Device found in MTK table, ID: c2f1, EXT_ID: 801dc2
[ 2.823201] Support this Device in MTK table! c2f1
[ 2.833097] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[ 2.845970] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
[ 2.858620] nand: Macronix NAND 128MiB 3,3V 8-bit
[ 2.867985] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 2.883068] Scanning device for bad blocks
[ 3.156382] 6 fixed-partitions partitions found on MTD device MT7621-NAND
[ 3.169894] Creating 6 MTD partitions on "MT7621-NAND":
[ 3.180304] 0x000000000000-0x000000100000 : "u-boot"
[ 3.191292] 0x000000100000-0x000000200000 : "SC PID"
[ 3.202219] 0x000000200000-0x000000600000 : "kernel"
[ 3.213143] 0x000000600000-0x000002200000 : "ubi"
[ 3.223781] 0x000002e00000-0x000002f00000 : "factory"
[ 3.234851] 0x000004200000-0x000007e00000 : "reserved"
[ 3.246572] [mtk_nand] probe successfully!
[ 3.255466] Signature matched and data read!
[ 3.263967] load_fact_bbt success 1023
[ 3.272158] libphy: Fixed MDIO Bus: probed
[ 3.345860] libphy: mdio: probed
[ 4.751905] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 4.764434] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 16
[ 4.783874] NET: Registered protocol family 10
[ 4.793404] random: fast init done
[ 4.794568] Segment Routing with IPv6
[ 4.794690] NET: Registered protocol family 17
[ 4.794769] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.794777] 8021q: 802.1Q VLAN Support v1.8
[ 4.798006] UBI: auto-attach mtd3
[ 4.798037] ubi0: attaching mtd3
[ 5.058416] ubi0: scanning is finished
[ 5.068577] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[ 5.092840] ubi0: attached mtd3 (name "ubi", size 28 MiB)
[ 5.103775] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 5.117459] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 5.130967] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 5.144823] ubi0: good PEBs: 224, bad PEBs: 0, corrupted PEBs: 0
[ 5.156778] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 5.171153] ubi0: max/mean erase counter: 91/68, WL threshold: 4096, image sequence number: 990469815
[ 5.189503] ubi0: available PEBs: 0, total reserved PEBs: 224, PEBs reserved for bad PEB handling: 20
[ 5.207878] ubi0: background thread "ubi_bgt0d" started, PID 360
[ 5.209745] block ubiblock0_0: created from ubi0:0(rootfs)
[ 5.209757] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 5.209776] hctosys: unable to open rtc device (rtc0)
[ 5.260497] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 5.275284] Freeing unused kernel memory: 228K
[ 5.284155] This architecture does not have kernel memory protection.
[ 5.709717] init: Console is alive
[ 5.716755] init: - watchdog -
[ 6.066984] mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
[ 6.298192] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 6.393879] usbcore: registered new interface driver usbfs
[ 6.404940] usbcore: registered new interface driver hub
[ 6.415666] usbcore: registered new device driver usb
[ 6.435248] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vbus not found, using dummy regulator
[ 6.452541] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[ 6.470258] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 6.480876] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[ 6.503428] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[ 6.520337] xhci-mtk 1e1c0000.xhci: irq 15, io mem 0x1e1c0000
[ 6.532794] hub 1-0:1.0: USB hub found
[ 6.540415] hub 1-0:1.0: 2 ports detected
[ 6.549053] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 6.559738] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[ 6.574659] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[ 6.587671] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 6.604670] hub 2-0:1.0: USB hub found
[ 6.612195] hub 2-0:1.0: 1 port detected
[ 6.623446] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.653750] init: - preinit -
[ 6.690180] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[ 7.173415] usb 1-2: new high-speed USB device number 2 using xhci-mtk
[ 7.455902] random: procd: uninitialized urandom read (4 bytes read)
[ 7.477088] mtk_soc_eth 1e100000.ethernet: PPE started
[ 10.691332] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 456
[ 10.764818] UBIFS (ubi0:1): recovery needed
[ 10.983019] UBIFS (ubi0:1): recovery completed
[ 10.992023] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 11.007617] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 11.027361] UBIFS (ubi0:1): FS size: 21839872 bytes (20 MiB, 172 LEBs), journal size 1142784 bytes (1 MiB, 9 LEBs)
[ 11.047971] UBIFS (ubi0:1): reserved for root: 1031550 bytes (1007 KiB)
[ 11.061139] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 6E3A058F-8348-4A53-B891-C028B492821F, small LPT model
[ 11.094984] mount_root: loading kmods from internal overlay
[ 11.186000] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[ 11.450738] SCSI subsystem initialized
[ 11.483681] usbcore: registered new interface driver usb-storage
[ 11.501533] scsi host0: uas
[ 11.508776] scsi 0:0:0:0: Direct-Access Seagate BUP BK 0304 PQ: 0 ANSI: 6
[ 11.527345] usbcore: registered new interface driver uas
[ 11.538962] sd 0:0:0:0: [sda] 7814037167 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 11.554418] sd 0:0:0:0: [sda] 2048-byte physical blocks
[ 11.598249] sd 0:0:0:0: [sda] Write Protect is off
[ 11.607802] sd 0:0:0:0: [sda] Mode Sense: 4f 00 00 00
[ 11.608320] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 11.798088] sda: sda1
[ 11.806111] sd 0:0:0:0: [sda] Attached SCSI disk
[ 11.815600] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[ 12.078520] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[ 12.098366] block: extroot: not configured
[ 12.156570] mount_root: switching to ubifs overlay
[ 12.190357] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 12.293188] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[ 12.319512] procd: - early -
[ 12.325373] procd: - watchdog -
[ 13.013504] procd: - watchdog -
[ 13.020146] procd: - ubus -
[ 13.073988] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.091434] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.104706] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.118580] procd: - init -
[ 13.729009] kmodloader: loading kernel modules from /etc/modules.d/*
[ 13.748340] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 13.974668] EXT4-fs (sda1): mounted filesystem with writeback data mode. Opts: (null)
[ 14.310515] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 14.326538] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 14.342363] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 14.680750] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 14.911728] xt_time: kernel timezone is -0000
[ 15.147670] bus=0x2, slot = 0x1, irq=0xff
[ 15.155946] mt7603e 0000:02:00.0: ASIC revision: 76030010
[ 15.170909] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
[ 15.182122] mt7603e 0000:02:00.0: Build Time: 20160107100755
[ 15.233371] firmware init done
[ 15.409854] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 15.419155] bus=0x1, slot = 0x0, irq=0xff
[ 15.427451] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[ 15.464074] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[ 15.481726] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[ 15.492743] mt76x2e 0000:01:00.0: Build: 1
[ 15.500975] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[ 15.533345] mt76x2e 0000:01:00.0: Firmware running!
[ 15.544614] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 15.555858] PPP generic driver version 2.4.2
[ 15.565893] NET: Registered protocol family 24
[ 15.577269] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 16.397952] urandom_read: 5 callbacks suppressed
[ 16.397965] random: jshn: uninitialized urandom read (4 bytes read)
[ 23.074747] mtk_soc_eth 1e100000.ethernet: PPE started
[ 23.090815] device eth0 entered promiscuous mode
[ 23.102483] br-lan: port 1(eth0.1) entered blocking state
[ 23.113664] br-lan: port 1(eth0.1) entered disabled state
[ 23.125035] device eth0.1 entered promiscuous mode
[ 23.137426] br-lan: port 1(eth0.1) entered blocking state
[ 23.148301] br-lan: port 1(eth0.1) entered forwarding state
[ 23.159867] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 24.073681] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 25.296350] random: crng init done
[ 26.760852] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 26.784582] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 26.796478] br-lan: port 2(wlan1) entered blocking state
[ 26.807178] br-lan: port 2(wlan1) entered disabled state
[ 26.818241] device wlan1 entered promiscuous mode
[ 26.828105] br-lan: port 3(wlan0) entered blocking state
[ 26.838732] br-lan: port 3(wlan0) entered disabled state
[ 26.849706] device wlan0 entered promiscuous mode
[ 26.859282] br-lan: port 3(wlan0) entered blocking state
[ 26.869889] br-lan: port 3(wlan0) entered forwarding state
[ 27.347337] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 28.010624] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 28.023632] br-lan: port 2(wlan1) entered blocking state
[ 28.034250] br-lan: port 2(wlan1) entered forwarding state
[58672.123365] ------------[ cut here ]------------
[58672.132590] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324
[58672.149092] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[58672.162976] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 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 xt_FLOWOFFLOAD xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables uas usb_storage sd_mod scsi_mod ext4 jbd2 mbcache crc32c_generic leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd gpio_button_hotplug
[58672.306115] usbcore nls_base usb_common
[58672.314001] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.53 #0
[58672.325944] Stack : 00000000 00000000 00000000 00000000 80607ad2 00000034 00000000 00000000
[58672.342572] 8059edb4 8059e947 8052863c 00000000 00000000 00000001 87c09d68 532616d4
[58672.359197] 00000000 00000000 80600000 00006468 00000000 0000013b 00000007 00000000
[58672.375821] 00000000 805a0000 0004ca91 00000000 00000000 00000000 805c0000 803770d8
[58672.392447] 00000009 00000140 00000000 87e07440 00000003 8029a238 00000000 80600000
[58672.409071] ...
[58672.413927] Call Trace:
[58672.418805] [<80010598>] show_stack+0x58/0x100
[58672.427649] [<8046915c>] dump_stack+0x9c/0xe0
[58672.436312] [<8002e328>] __warn+0xe0/0x114
[58672.444451] [<8002e38c>] warn_slowpath_fmt+0x30/0x3c
[58672.454321] [<803770d8>] dev_watchdog+0x1ac/0x324
[58672.463686] [<80086204>] call_timer_fn.isra.3+0x24/0x84
[58672.474072] [<8008641c>] run_timer_softirq+0x1b8/0x244
[58672.484300] [<804863d0>] __do_softirq+0x128/0x2ec
[58672.493654] [<80032a30>] irq_exit+0x98/0xcc
[58672.501984] [<8024a9dc>] plat_irq_dispatch+0xfc/0x138
[58672.512023] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4
[58672.521890] [<8000cfb0>] r4k_wait_irqoff+0x1c/0x24
[58672.531434] [<800664bc>] do_idle+0xe4/0x168
[58672.539746] [<80066738>] cpu_startup_entry+0x24/0x2c
[58672.549619] [<805c7bf8>] start_kernel+0x48c/0x4ac
[58672.559147] ---[ end trace 6b93e9db39a63cf7 ]---
[58672.568366] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
[58672.580697] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
[58672.592690] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=06a70000, max=0, ctx=3932, dtx=3920, fdx=3911, next=3932
[58672.614378] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=05610000, max=0, calc=2547, drx=2548
[58673.026446] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x5f60000c, 0x10c = 0x80818
[58673.046480] mtk_soc_eth 1e100000.ethernet: PPE started

@openwrt-bot
Copy link
Author

vzhestkov:

I'm testing the solution right now. Hope it works.

@openwrt-bot
Copy link
Author

azuwis:

I have the same problem. Wired network hangs short after router reboot, but wireless netowrk still works.

Device: ZBT WG3526
OpenWrt version: r7440-6476148
Dmesg:

[ 417.069083] ------------[ cut here ]------------ [ 417.073752] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324 [ 417.082022] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out [ 417.088964] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TPROXY xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD xt_CT wireguard slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport [ 417.160711] ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ip6_udp_tunnel udp_tunnel mmc_block mtk_sd mmc_core leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd ahci libahci libata sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common [ 417.196870] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.53 #0 [ 417.202866] Stack : 00000000 00000000 00000000 00000000 80607ad2 00000034 00000000 00000000 [ 417.211221] 8fc441f4 8059e947 8052863c 00000001 00000000 00000001 8fc0dd68 ac07f52c [ 417.219554] 00000000 00000000 80600000 00006cb0 00000000 00000140 00000007 00000000 [ 417.227886] 00000000 805a0000 00030106 00000000 00000000 00000000 805c0000 803770d8 [ 417.236217] 00000009 00000140 00000001 8fe3fb40 00000003 8029a238 00000004 80600004 [ 417.244552] ... [ 417.246991] Call Trace: [ 417.249467] [<80010598>] show_stack+0x58/0x100 [ 417.253913] [<8046915c>] dump_stack+0x9c/0xe0 [ 417.258253] [<8002e328>] __warn+0xe0/0x114 [ 417.262340] [<8002e38c>] warn_slowpath_fmt+0x30/0x3c [ 417.267287] [<803770d8>] dev_watchdog+0x1ac/0x324 [ 417.271991] [<80086204>] call_timer_fn.isra.3+0x24/0x84 [ 417.277192] [<8008641c>] run_timer_softirq+0x1b8/0x244 [ 417.282333] [<804863d0>] __do_softirq+0x128/0x2ec [ 417.287044] [<80032a30>] irq_exit+0x98/0xcc [ 417.291246] [<8024a9dc>] plat_irq_dispatch+0xfc/0x138 [ 417.296307] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4 [ 417.301259] [<8000cfb0>] r4k_wait_irqoff+0x1c/0x24 [ 417.306055] [<800664bc>] do_idle+0xe4/0x168 [ 417.310228] [<80066738>] cpu_startup_entry+0x24/0x2c [ 417.315282] ---[ end trace a17bb12d5988d426 ]--- [ 417.319962] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out [ 417.326153] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067 [ 417.332187] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0ecc0000, max=0, ctx=2030, dtx=2026, fdx=2019, next=2030 [ 417.343072] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0e660000, max=0, calc=3834, drx=3835 [ 417.752400] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x38601b0c, 0x10c = 0x80818 [ 417.759643] mtk_soc_eth 1e100000.ethernet: reset pse [ 417.770624] mtk_soc_eth 1e100000.ethernet: PPE started

@openwrt-bot
Copy link
Author

vzhestkov:

I've tested the patch provided by Felix Fietkau. It works fine on my Xiaomi 3G router.
I have 2 routers and both are more than 4 days uptime already with the firmware patched with the patch attached.

@openwrt-bot
Copy link
Author

azuwis:

I can confirm that with mtk-eth-disable-fraglist.patch applied, high traffic no longer make the wired network hang on ZBT WG3526.

@openwrt-bot
Copy link
Author

nbd:

Patch pushed in r7489-2601e34fad

@openwrt-bot
Copy link
Author

azuwis:

Unfortunately the problem still happen on r8346-ddc11c3.

Before r7489-2601e34fad, the problem will occur within hours after router reboot.

After r7489-2601e34fad, the problem will occur within days after router reboot.

ZBT WG3526, flow_offload disabled. Here is the dmesg:

[476304.186812] ------------[ cut here ]------------ [476304.191572] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324 [476304.199929] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out [476304.206985] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TPROXY xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY wireguard slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat sch_cake nf_conntrack act_skbedit [476304.277836] act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ifb ip6_udp_tunnel udp_tunnel mmc_block mtk_sd mmc_core leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd ahci libahci libata sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common [476304.341995] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.76 #0 [476304.348064] Stack : 00000000 8fd83640 80570000 8006f654 80590000 80535970 00000000 00000000 [476304.356485] 80501ad8 8fc09dc4 8056ed3c 8056e8c7 804fcbc8 00000001 8fc09d68 ac07f555 [476304.364903] 00000000 00000000 805d0000 000072a0 00000000 00000155 00000007 00000000 [476304.373323] 00000000 80570000 000537eb 70617773 00000000 00000000 80590000 803650d8 [476304.381742] 00000009 00000140 00000000 8fd83640 00000000 8028dfc0 00000000 805d0000 [476304.390162] ... [476304.392683] Call Trace: [476304.395229] [<80010670>] show_stack+0x58/0x100 [476304.399774] [<8044272c>] dump_stack+0x9c/0xe0 [476304.404203] [<8002e408>] __warn+0xe0/0x114 [476304.408367] [<8002e46c>] warn_slowpath_fmt+0x30/0x3c [476304.413402] [<803650d8>] dev_watchdog+0x1ac/0x324 [476304.418193] [<800865c4>] call_timer_fn.isra.3+0x24/0x84 [476304.423481] [<800867e0>] run_timer_softirq+0x1bc/0x248 [476304.428685] [<8045fb18>] __do_softirq+0x128/0x2ec [476304.433459] [<80032b34>] irq_exit+0xac/0xc8 [476304.437719] [<80241d2c>] plat_irq_dispatch+0xfc/0x138 [476304.442835] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4 [476304.447864] [<8000cfb0>] r4k_wait_irqoff+0x1c/0x24 [476304.452742] [<800666cc>] do_idle+0xe4/0x168 [476304.457002] [<80066948>] cpu_startup_entry+0x24/0x2c [476304.462034] [<80595bf0>] start_kernel+0x484/0x4a4 [476304.466921] ---[ end trace 313ef78671edec43 ]--- [476304.471626] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out [476304.477921] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000065 [476304.484010] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0f010000, max=0, ctx=1113, dtx=1113, fdx=1112, next=1113 [476304.494957] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0e7b0000, max=0, calc=768, drx=795 [476304.507870] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818 [476304.520997] mtk_soc_eth 1e100000.ethernet: PPE started

@openwrt-bot
Copy link
Author

azuwis:

Unfortunately the problem still happen on r8346-ddc11c3, see comment.

@openwrt-bot
Copy link
Author

ds_shadof:

Same here machine : ZBT-WG3526 (16M)
OpenWrt SNAPSHOT, r8385-374e646724

[Mon Nov 5 03:06:57 2018] ------------[ cut here ]------------
[Mon Nov 5 03:06:57 2018] WARNING: CPU: 2 PID: 0 at net/sched/sch_generic.c:320 dev_watchdog+0x1ac/0x324
[Mon Nov 5 03:06:57 2018] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[Mon Nov 5 03:06:57 2018] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 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 xt_FLOWOFFLOAD xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ext4 jbd2 mbcache crc32c_generic mmc_block mtk_sd mmc_core leds_gpio xhci_mtk xhci_plat_hcd xhci_pci
[Mon Nov 5 03:06:57 2018] xhci_hcd ahci libahci libata sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common
[Mon Nov 5 03:06:57 2018] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.14.78 #0
[Mon Nov 5 03:06:57 2018] Stack : 00000000 8fd30240 805a0000 8006f804 805d0000 8056cd38 00000000 00000000
[Mon Nov 5 03:06:57 2018] 80537728 8fc11dc4 8fc4483c 805a8947 80532818 00000001 8fc11d68 ac07f557
[Mon Nov 5 03:06:57 2018] 00000000 00000000 80610000 00007be8 00000000 0000016c 00000007 00000000
[Mon Nov 5 03:06:57 2018] 00000000 805b0000 000b7a02 70617773 00000000 00000000 805d0000 8037ff98
[Mon Nov 5 03:06:57 2018] 00000009 00000140 00000002 8fd30240 00000000 802a2ca8 00000008 80610008
[Mon Nov 5 03:06:57 2018] ...
[Mon Nov 5 03:06:57 2018] Call Trace:
[Mon Nov 5 03:06:57 2018] [<800106c0>] show_stack+0x58/0x100
[Mon Nov 5 03:06:57 2018] [<8047244c>] dump_stack+0x9c/0xe0
[Mon Nov 5 03:06:57 2018] [<8002e408>] __warn+0xe0/0x114
[Mon Nov 5 03:06:57 2018] [<8002e46c>] warn_slowpath_fmt+0x30/0x3c
[Mon Nov 5 03:06:57 2018] [<8037ff98>] dev_watchdog+0x1ac/0x324
[Mon Nov 5 03:06:57 2018] [<80086774>] call_timer_fn.isra.3+0x24/0x84
[Mon Nov 5 03:06:57 2018] [<80086990>] run_timer_softirq+0x1bc/0x248
[Mon Nov 5 03:06:57 2018] [<8048f920>] __do_softirq+0x128/0x2ec
[Mon Nov 5 03:06:57 2018] [<80032b34>] irq_exit+0xac/0xc8
[Mon Nov 5 03:06:57 2018] [<802511ac>] plat_irq_dispatch+0xfc/0x138
[Mon Nov 5 03:06:57 2018] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4
[Mon Nov 5 03:06:57 2018] [<8000cfb0>] r4k_wait_irqoff+0x1c/0x24
[Mon Nov 5 03:06:57 2018] [<8006687c>] do_idle+0xe4/0x168
[Mon Nov 5 03:06:57 2018] [<80066af8>] cpu_startup_entry+0x24/0x2c
[Mon Nov 5 03:06:57 2018] [<800180b4>] not_nmi+0x8c/0x1d8
[Mon Nov 5 03:06:57 2018] ---[ end trace 50bc01918e559e2d ]---
[Mon Nov 5 03:06:57 2018] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
[Mon Nov 5 03:06:57 2018] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000065
[Mon Nov 5 03:06:57 2018] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0ec50000, max=0, ctx=3963, dtx=3963, fdx=3962, next=3963
[Mon Nov 5 03:06:57 2018] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0e630000, max=0, calc=1466, drx=1467
[Mon Nov 5 03:06:57 2018] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[Mon Nov 5 03:06:57 2018] mtk_soc_eth 1e100000.ethernet: PPE started

@openwrt-bot
Copy link
Author

camel:

any news ?
still same problem on current trunk :)

@openwrt-bot
Copy link
Author

paravz:

Looks similar to [[https://bugs.openwrt.org/index.php?do=details&task_id=2628|#2628]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant