Kernel error with "eth0 (mtk_soc_eth): transmit queue 0 timed out"

I use openwrt 19.07.x (kernel 4.19.108) with R64, sometimes got this kernel error. openwrt source code is from : dnsmasq: bump to v2.81rc3 · openwrt/[email protected] · GitHub

Any ideas? Thanks.

Sat Jul  2 10:04:28 2022 kern.warn kernel: [11177.315763] ------------[ cut here ]------------
Sat Jul  2 10:04:28 2022 kern.info kernel: [11177.320583] NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 0 timed out
Sat Jul  2 10:04:28 2022 kern.warn kernel: [11177.327897] WARNING: CPU: 0 PID: 28898 at dev_watchdog+0x1ac/0x2a8
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.334266] Modules linked in: option cdc_mbim usb_wwan sr9700 smsc95xx sierra_net rndis_host qmi_wwan pppoe ppp_async nf_nat_pptp nf_conntrack_pptp mt7622 mt7615e mt76 mmc_spi mcs7830 mac80211 kalmia iptable_nat ipt_REJECT ipt_MASQUERADE huawei_cdc_ncm ebtable_nat ebtable_filter ebtable_broute dm9601 ch341 cfg80211 cdc_subset cdc_ncm cdc_ether cdc_eem bas_gigaset ax88179_178a asix xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_socket xt_recent xt_quota xt_policy xt_pkttype xt_owner xt_ndpi xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_iface xt_hl xt_helper xt_hashlimit xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_condition xt_comment xt_addrtype xt_TRACE xt_TPROXY xt_TCPMSS xt_REDIRECT xt_LOG xt_IPMARK xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.407120]  xt_ACCOUNT wireguard via_velocity via_rhine usbserial usbnet usbhid usb_gigaset tulip ts_fsm ts_bm solos_pci sky2 skge sis900 sis190 ser_gigaset rtl8150 r8169 r8152 r6040 pppox ppp_generic pegasus pcnet32 of_mmc_spi nf_tproxy_ipv6 nf_tproxy_ipv4 nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_proto_gre nf_nat_irc nf_nat_ipv4 nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conncount ne2k_pci macvlan lib80211_crypt_wep lib80211_crypt_tkip lib80211_crypt_ccmp lib80211 kaweth iptable_raw iptable_mangle
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.480764]  iptable_filter ipt_ah ipt_ECN ipheth ip6table_raw ip_tables hso hid_generic gigaset forcedeth ethoc et131x ebtables ebt_vlan ebt_stp ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_among ebt_802_3 e100 crc7 crc_itu_t crc_ccitt compat_xtables compat cdc_wdm cdc_acm bnx2 atl2 atl1e atl1c atl1 asn1_decoder arptable_filter arpt_mangle arp_tables 8390 8250_pci 8139too 8139cp sch_cake sch_teql sch_sfq sch_red sch_prio sch_pie sch_multiq sch_gred sch_fq sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp act_simple act_police act_pedit act_ipt act_gact act_csum sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred hid evdev input_core spi_ks8995 ledtrig_heartbeat cryptodev xt_set ip_set_list_set ip_set_hash_netportnet
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.555420]  ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net 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 ip6table_nat ip6t_NPT ip6t_MASQUERADE nf_nat_ipv6 nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nfsv3 isdn_bsdcomp dss1_divert isdn slhc nfs 3c59x vmxnet3 e1000 ifb nat46 ip6_udp_tunnel udp_tunnel sit sctp libcrc32c ipcomp6 xfrm6_tunnel esp6 ah6 xfrm4_tunnel ipcomp esp4 ah4 tunnel6 tunnel4 ip_tunnel hfcpci hfcmulti veth tun mISDN_dsp l1oip mISDN_core xfrm_user xfrm_ipcomp af_key xfrm_algo ntfs lockd sunrpc grace dns_resolver
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.629165]  br2684 atm nls_utf8 natsemi eeprom_93cx6 seqiv md5 ghash_generic gf128mul gcm echainiv des_generic deflate zlib_inflate zlib_deflate ctr ccm cbc authenc crypto_acompress fuse vfat fat nls_iso8859_1 nls_cp437 usb_storage sdhci_pltfm sdhci leds_gpio xhci_plat_hcd uhci_hcd ohci_platform ohci_hcd ahci ehci_platform ehci_hcd gpio_button_hotplug exfat tg3 b44 ssb ptp broadcom bcm_phy_lib pps_core mii
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.666414] CPU: 0 PID: 28898 Comm: grep Tainted: G        W         4.19.108 #0
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.674036] Hardware name: Bananapi BPI-R64 (DT)
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.678794] pstate: 40000005 (nZcv daif -PAN -UAO)
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.683736] pc : dev_watchdog+0x1ac/0x2a8
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.687866] lr : dev_watchdog+0x1ac/0x2a8
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.691994] sp : ffffff8008003da0
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.695405] x29: ffffff8008003da0 x28: ffffff800888adc0
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.700880] x27: 0000000000000140 x26: 00000000ffffffff
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.706353] x25: 0000000000000000 x24: 0000000000000000
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.711827] x23: ffffffc0031ba480 x22: 0000000000000001
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.717300] x21: ffffff8008896000 x20: ffffffc0031ba000
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.722774] x19: 0000000000000000 x18: 0000000000000000
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.728248] x17: 0000000000000000 x16: 0000000000000000
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.733721] x15: 0000000000000000 x14: 0000000000000000
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.739195] x13: ffffff8008902c22 x12: 0000000000000000
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.744669] x11: ffffff8008898548 x10: 0000000000000010
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.750146] x9 : 0000000000000000 x8 : 0000000000000000
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.755626] x7 : 0000000000000008 x6 : 00000000000003ae
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.761099] x5 : 0000000000000000 x4 : 0000000000000000
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.766571] x3 : 0000000000000000 x2 : ffffffc03ffb4e58
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.772045] x1 : 000000403772b000 x0 : 000000000000003f
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.777518] Call trace:
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.780036]  dev_watchdog+0x1ac/0x2a8
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.783812]  call_timer_fn+0x20/0x78
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.787494]  expire_timers+0x90/0xd8
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.791175]  run_timer_softirq+0xa4/0x1a8
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.795306]  __do_softirq+0xe4/0x1e8
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.798990]  irq_exit+0x70/0xd0
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.802225]  __handle_domain_irq+0x8c/0xb0
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.806444]  gic_handle_irq+0x60/0xa0
Sat Jul  2 10:04:28 2022 kern.debug kernel: [11177.810216]  el0_irq_naked+0x4c/0x54
Sat Jul  2 10:04:28 2022 kern.warn kernel: [11177.813897] ---[ end trace 838372f6c7de7c65 ]---
Sat Jul  2 10:04:28 2022 kern.err kernel: [11177.819351] mtk_soc_eth 1b100000.ethernet eth0: transmit timed out
Sat Jul  2 10:04:34 2022 kern.err kernel: [11183.385901] mtk_soc_eth 1b100000.ethernet eth0: transmit timed out
Sat Jul  2 10:04:44 2022 kern.err kernel: [11193.316072] mtk_soc_eth 1b100000.ethernet eth0: transmit timed out
Sat Jul  2 10:04:52 2022 kern.err kernel: [11201.226248] mtk_soc_eth 1b100000.ethernet eth1: transmit timed out
Sat Jul  2 10:04:59 2022 kern.err kernel: [11208.266387] mtk_soc_eth 1b100000.ethernet eth0: transmit timed out
Sat Jul  2 10:04:59 2022 kern.info kernel: [11208.738610] mt753x [email protected]: Port 4 Link is Down
Sat Jul  2 10:05:03 2022 kern.info kernel: [11212.174613] mt753x [email protected]: Port 4 Link is Up - 100Mbps/Full

please update to newer kernel version…transmit timeouts are known issue without fix in 4.x kernels (before phylink conversion in 5.3). have not seen them after that