coolsnowwolf / lede

Lean's LEDE source
Other
29.17k stars 19.46k forks source link

R2S内核出现NETDEV WATCHDOG: eth1 (r8152): transmit queue 0 timed out #10941

Open chobitsos opened 1 year ago

chobitsos commented 1 year ago

反馈bug

1.关于你要提交的问题

R2S内核出现transmit queue 0 timed out

Q:是否搜索了issue (使用 "x" 选择)

还没有类似issue

2. 详细叙述

内核日志出现NETDEV WATCHDOG: eth1 (r8152): transmit queue 0 timed out

(1) 具体问题

A:最新编译的commit中出现 NETDEV WATCHDOG: eth1 (r8152): transmit queue 0 timed out,具体出现原因未知,无法复现,固件跑了24小时出现

(2) 路由器型号和固件版本

NanoPi R2S OpenWrt R23.2.14 / LuCI Master (git-23.054.10809-0a8d99a) Kernel Version | 5.15.94

(3) 详细日志

↓↓↓↓完整日志↓↓↓↓ logread.txt

部分日志↓↓↓↓ [17832.642612] ------------[ cut here ]------------ [17832.643101] NETDEV WATCHDOG: eth1 (r8152): transmit queue 0 timed out [17832.643812] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:477 dev_watchdog+0x2d4/0x2dc [17832.644594] Modules linked in: pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_mppe ppp_generic nft_redir nft_ct nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_nat nf_flow_table nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_pptp nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_bridge nf_conntrack_amanda nf_conntrack lzo ipt_REJECT cdc_ncm cdc_ether xt_time xt_tcpudp xt_quota xt_pkttype xt_owner xt_multiport xt_mark xt_mac xt_limit xt_comment xt_cgroup xt_addrtype xt_TPROXY xt_TCPMSS xt_LOG usbnet ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_kmp ts_fsm ts_bm tcp_bbr slhc r8152 nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_quota nft_objref nft_numgen nft_meta_bridge nft_log nft_limit nft_hash nft_counter [17832.645505] nf_tproxy_ipv4 nf_tables nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 macvlan lzo_decompress lzo_compress iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt br_netfilter asn1_decoder cryptodev xt_set x_tables ip_set_list_set ip_set_hash_netportnet 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 tun vfat fat ntfs3 nls_utf8 nls_cp437 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha256_generic libsha256 sha1_generic ecb authenc arc4 crypto_acompress uas gpio_button_hotplug exfat [17832.659492] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.94 #0 [17832.660050] Hardware name: FriendlyElec NanoPi R2S (DT) [17832.660528] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [17832.661170] pc : dev_watchdog+0x2d4/0x2dc [17832.661563] lr : dev_watchdog+0x2d4/0x2dc [17832.661940] sp : ffff800008003d60 [17832.662243] x29: ffff800008003d60 x28: ffff800008b6b608 x27: 00000000ffffffff [17832.662910] x26: 0000000000000000 x25: 0000000000000140 x24: ffff000000c093dc [17832.663572] x23: ffff000000c09478 x22: ffff000003e74480 x21: ffff800008c86000 [17832.664237] x20: ffff000000c09000 x19: 0000000000000000 x18: 0000000000000030 [17832.664897] x17: ffff8000371f4000 x16: ffff800008004000 x15: ffff800088003a87 [17832.665560] x14: 0000000000000000 x13: ffff800008c9d9a0 x12: 00000000000003b4 [17832.666219] x11: 000000000000013c x10: ffff800008c9d9a0 x9 : ffff800008dfd9a0 [17832.666883] x8 : 00000000ffffc000 x7 : 0000000000000003 x6 : 0000000000000000 [17832.667546] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000100 [17832.668205] x2 : 0000000000000100 x1 : ffff800008c90e80 x0 : 0000000000000039 [17832.668868] Call trace: [17832.669105] dev_watchdog+0x2d4/0x2dc [17832.669462] call_timer_fn.constprop.0+0x24/0x80 [17832.669902] run_timers.part.0+0x1c8/0x200 [17832.670298] run_timer_softirq+0x3c/0x74 [17832.670665] _stext+0x124/0x2a0 [17832.670966] irq_exit_rcu+0xe0/0x100 [17832.671317] irq_exit+0x10/0x20 [17832.671617] handle_domain_irq+0x64/0x90 [17832.671989] gic_handle_irq+0x54/0xd4 [17832.672342] call_on_irq_stack+0x28/0x54 [17832.672710] do_interrupt_handler+0x54/0x60 [17832.673105] el1_interrupt+0x30/0x80 [17832.673447] el1h_64_irq_handler+0x18/0x24 [17832.673830] el1h_64_irq+0x74/0x78 [17832.674150] cpuidle_enter_state+0x134/0x31c [17832.674556] cpuidle_enter+0x38/0x50 [17832.674896] do_idle+0x1d0/0x224 [17832.675206] cpu_startup_entry+0x24/0x60 [17832.675574] rest_init+0xe0/0xf0 [17832.675882] arch_call_rest_init+0x10/0x1c [17832.676270] start_kernel+0x51c/0x540 [17832.676616] __primary_switched+0xbc/0xc4 [17832.676996] ---[ end trace 8471701bc2c0c7f7 ]--- [17832.677456] r8152 4-1:1.0 eth1: Tx timeout [17834.723499] r8152 4-1:1.0 eth1: Tx status -2 [17834.723983] r8152 4-1:1.0 eth1: Tx status -2 [17834.724479] r8152 4-1:1.0 eth1: Tx status -2 [17834.725066] r8152 4-1:1.0 eth1: Tx status -2 [17835.542475] usb 4-1: reset SuperSpeed USB device number 2 using xhci-hcd [17835.575379] r8152 4-1:1.0 eth1: Invalid ether addr 00:00:00:00:00:00 [17835.576010] r8152 4-1:1.0 eth1: Random ether addr 26:fa:12:0f:0a:6d [17835.583350] r8152 4-1:1.0 eth1: Promiscuous mode enabled [20776.630350] hrtimer: interrupt took 55710 ns

↓↓↓↓完整日志↓↓↓↓ logread.txt

XiaoBinin commented 1 year ago

换成 kmod-usb-net-rtl8152-vendor 应该能解决