WAN connection dies on Newifi D2 router (MT7621)

I'm trying to sort out an issue where the WAN port of my Newifi D2 konks out after about 18 hours. If I reboot the router, the WAN comes right back up. I'm running 19.07.5. This entry in the kernel log looks like it may align with the issue, but I really cannot tell what the message is trying to say:

EDIT:
I think the switch driver is crashing. See the second chunk of log file from the system log. I'm not sure what to do about this though. Ideas?

[68189.194842] ------------[ cut here ]------------
[68189.199492] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:320 0x8038d150
[68189.206547] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[68189.213482] 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_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY usblp 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 iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat sch_cake nf_conntrack sch_tbf sch_ingress sch_htb sch_hfsc em_u32
[68189.284023]  cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred ledtrig_usbport nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ifb leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
[68189.313023] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.209 #0
[68189.319091] Stack : 00000000 00000000 00000000 8ff7f940 00000000 00000000 00000000 00000000
[68189.327427]         00000000 00000000 00000000 00000000 00000000 00000001 8fc0bd60 ac07f5c8
[68189.335764]         8fc0bdf8 00000000 00000000 00006408 00000038 8049da98 00000008 00000000
[68189.344097]         00000000 80550000 0004c6bf 00000000 8fc0bd40 00000000 00000000 8050c4d4
[68189.352430]         8038d150 00000140 00000001 8ff7f940 00000000 802ae190 00000004 806b0004
[68189.360768]         ...
[68189.363208] Call Trace:
[68189.363281] [<8049da98>] 0x8049da98
[68189.369185] [<8038d150>] 0x8038d150
[68189.372652] [<802ae190>] 0x802ae190
[68189.376133] [<8000c1a0>] 0x8000c1a0
[68189.379604] [<8000c1a8>] 0x8000c1a8
[68189.383072] [<804868d4>] 0x804868d4
[68189.386545] [<80071c80>] 0x80071c80
[68189.390026] [<8002e798>] 0x8002e798
[68189.393494] [<8038d150>] 0x8038d150
[68189.396979] [<8002e820>] 0x8002e820
[68189.400457] [<800552b8>] 0x800552b8
[68189.403933] [<8038d150>] 0x8038d150
[68189.407404] [<80099b90>] 0x80099b90
[68189.410883] [<8038cfa4>] 0x8038cfa4
[68189.414352] [<80088738>] 0x80088738
[68189.417828] [<8005f3e4>] 0x8005f3e4
[68189.421308] [<800889f4>] 0x800889f4
[68189.424776] [<80079328>] 0x80079328
[68189.428250] [<804a4898>] 0x804a4898
[68189.431724] [<80033164>] 0x80033164
[68189.435195] [<8025b4c0>] 0x8025b4c0
[68189.438674] [<80007488>] 0x80007488
[68189.442143] 
[68189.443714] ---[ end trace d8671abd553852a9 ]---

System Log:

Mon Dec 14 09:56:42 2020 kern.err kernel: [68189.448352] mtk_soc_eth 1e100000.ethernet eth0: transmit timed out
Mon Dec 14 09:56:42 2020 kern.info kernel: [68189.454510] mtk_soc_eth 1e100000.ethernet eth0: dma_cfg:80000067
Mon Dec 14 09:56:42 2020 kern.info kernel: [68189.460527] mtk_soc_eth 1e100000.ethernet eth0: tx_ring=0, base=0f210000, max=0, ctx=161, dtx=3890, fdx=3890, next=161
Mon Dec 14 09:56:42 2020 kern.info kernel: [68189.471212] mtk_soc_eth 1e100000.ethernet eth0: rx_ring=0, base=0e590000, max=0, calc=4, drx=5
Mon Dec 14 09:56:42 2020 kern.info kernel: [68189.878641] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x4c60080c, 0x10c = 0x80818
Mon Dec 14 09:56:42 2020 kern.info kernel: [68189.893501] mtk_soc_eth 1e100000.ethernet: PPE started
1 Like

Got the same issue

46621.594580] ------------[ cut here ]------------
[46621.599232] WARNING: CPU: 3 PID: 0 at net/sched/sch_generic.c:320 0x8038d150
[46621.606299] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
[46621.613228] 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_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY 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 iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat sch_cake nf_conntrack sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32
[46621.683899]  cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred ledtrig_usbport nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ifb leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
[46621.712213] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.14.209 #0
[46621.718279] Stack : 00000000 00000000 00000000 8fd3d340 00000000 00000000 00000000 00000000
[46621.726613]         00000000 00000000 00000000 00000000 00000000 00000001 8fc0fd60 ac07f5c8
[46621.734951]         8fc0fdf8 00000000 00000000 00005c48 00000038 8049da98 00000008 00000000
[46621.743290]         00000000 80550000 000ade15 00000000 8fc0fd40 00000000 00000000 8050c4d4
[46621.751623]         8038d150 00000140 00000003 8fd3d340 00000000 802ae190 0000000c 806b000c
[46621.759958]         ...
[46621.762393] Call Trace:
[46621.762463] [<8049da98>] 0x8049da98
[46621.768378] [<8038d150>] 0x8038d150
[46621.771852] [<802ae190>] 0x802ae190
[46621.775332] [<8000c1a0>] 0x8000c1a0
[46621.778802] [<8000c1a8>] 0x8000c1a8
[46621.782270] [<804868d4>] 0x804868d4
[46621.785740] [<80071c80>] 0x80071c80
[46621.789232] [<8002e798>] 0x8002e798
[46621.792708] [<8038d150>] 0x8038d150
[46621.796182] [<8002e820>] 0x8002e820
[46621.799670] [<8038d150>] 0x8038d150
[46621.803149] [<8038cfa4>] 0x8038cfa4
[46621.806622] [<80088738>] 0x80088738
[46621.810099] [<800889f4>] 0x800889f4
[46621.813585] [<80079328>] 0x80079328
[46621.817066] [<804a4898>] 0x804a4898
[46621.820539] [<80033164>] 0x80033164
[46621.824014] [<8025b4c0>] 0x8025b4c0
[46621.827502] [<80007488>] 0x80007488
[46621.830975] 
[46621.832568] ---[ end trace 0b84b2538f62b036 ]---

Same issue here
This problem was discovered in 2018 until version 19.07.3, the fix can see in openwrt/7ac454, but reverted in openwrt/34a965, so recurring in 19.07.4 even 19.07.5
Newifi D2(MT7621) on 19.07.5

Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.794973] ------------[ cut here ]------------
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.799611] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:320 0x8038d150
Tue Dec 29 17:33:20 2020 kern.info kernel: [21493.806661] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.813606] 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 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ipip tunnel4 ip_tunnel tun leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd gpio_button_hotplug
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.884398]  usbcore nls_base usb_common
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.888462] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.209 #0
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.894542] Stack : 00000000 00000000 00000000 8ff5ae40 00000000 00000000 00000000 00000000
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.902880]         00000000 00000000 00000000 00000000 00000000 00000001 8fc09d60 ac07f5c8
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.911216]         8fc09df8 00000000 00000000 00006338 00000038 8049da98 00000008 00000000
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.919547]         00000000 80550000 000d8e8e 00000000 8fc09d40 00000000 00000000 8050c4d4
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.927879]         8038d150 00000140 00000000 8ff5ae40 00000000 802ae190 00000000 806b0000
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.936210]         ...
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.938644] Call Trace:
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.938698] [<8049da98>] 0x8049da98
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.944593] [<8038d150>] 0x8038d150
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.948063] [<802ae190>] 0x802ae190
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.951536] [<8000c1a0>] 0x8000c1a0
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.955005] [<8000c1a8>] 0x8000c1a8
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.958474] [<804868d4>] 0x804868d4
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.961941] [<80071c80>] 0x80071c80
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.965417] [<8002e798>] 0x8002e798
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.968888] [<8038d150>] 0x8038d150
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.972358] [<8002e820>] 0x8002e820
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.975835] [<8ece0104>] 0x8ece0104 [mt76x02_lib@8ece0000+0x9700]
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.981904] [<8038d150>] 0x8038d150
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.985378] [<8038cfa4>] 0x8038cfa4
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.988849] [<80088738>] 0x80088738
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.992316] [<8005f3e4>] 0x8005f3e4
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.995790] [<800889f4>] 0x800889f4
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21493.999258] [<80079328>] 0x80079328
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21494.002728] [<804a4898>] 0x804a4898
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21494.006200] [<80033164>] 0x80033164
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21494.009670] [<8025b4c0>] 0x8025b4c0
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21494.013140] [<80007488>] 0x80007488
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21494.016606]
Tue Dec 29 17:33:20 2020 kern.warn kernel: [21494.018291] ---[ end trace 424d79b50540c786 ]---

Good to know @kuretru. Welcome to the forum!

Do we stick to 19.07.3 then? I'm having this issue now on 19.07.6.