您尚未登录。

#1 2023-07-03 23:36:05

ggdG
会员
注册时间: 2020-11-16
帖子: 14

[已解决]网线连接用着用着网络就挂了

我用的是网线直连的网络,但最近上网总是用着用着突然网络就掉了。重启机子之后又可以正常上网了

这是我发生故障后查 dmesg 里的日志

[14701.685854] ------------[ cut here ]------------
[14701.685857] NETDEV WATCHDOG: enp6s0 (r8169): transmit queue 0 timed out 8452 ms
[14701.685910] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:525 dev_watchdog+0x2b2/0x2c0
[14701.685914] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device nvidia_drm(POE) xt_CHECKSUM nvidia_modeset(POE) xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables libcrc32c nfnetlink nvidia(POE) bridge stp llc snd_soc_avs snd_soc_hda_codec snd_hda_ext_core intel_rapl_msr intel_rapl_common snd_hda_codec_hdmi intel_tcc_cooling snd_soc_core x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_compress coretemp ac97_bus snd_pcm_dmaengine uvcvideo nls_iso8859_1 videobuf2_vmalloc kvm_intel snd_hda_intel uvc vfat fat rtsx_usb_sdmmc rtsx_usb_ms kvm iwlmvm videobuf2_memops snd_intel_dspcfg mmc_core memstick snd_intel_sdw_acpi irqbypass btusb videobuf2_v4l2 crct10dif_pclmul btrtl mac80211 crc32_pclmul btbcm i915 snd_hda_codec polyval_clmulni btintel videodev polyval_generic btmtk snd_hda_core gf128mul rtsx_usb libarc4 ghash_clmulni_intel sha512_ssse3 videobuf2_common
[14701.686018]  snd_hwdep ee1004 r8169 bluetooth aesni_intel snd_pcm crypto_simd ecdh_generic mei_hdcp ppdev drm_buddy mc mei_pxp snd_timer realtek iwlwifi i2c_algo_bit cryptd snd ttm mdio_devres rapl intel_cstate cfg80211 intel_wmi_thunderbolt psmouse intel_uncore drm_display_helper wdat_wdt wmi_bmof pcspkr i2c_i801 libphy mei_me parport_pc ideapad_laptop i2c_smbus cec soundcore mei intel_gtt sparse_keymap platform_profile rfkill parport mousedev joydev acpi_pad mac_hid tcp_bbr sch_cake vmmon(OE) vmw_vmci vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) usbip_host usbip_core dm_multipath crypto_user fuse loop dm_mod bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache usbhid jbd2 serio_raw atkbd libps2 vivaldi_fmap crc32c_intel xhci_pci xhci_pci_renesas video i8042 serio wmi
[14701.686066] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P           OE      6.4.1-zen1-1-zen #1 3b638c8695a9136db7385df79cd2c279f7c7d8c2
[14701.686069] Hardware name: LENOVO 80RQ/SuperX 5B, BIOS 0KCN36WW 09/19/2016
[14701.686070] RIP: 0010:dev_watchdog+0x2b2/0x2c0
[14701.686072] Code: fe ff ff 48 89 ef c6 05 d8 a0 45 01 01 e8 c6 87 f9 ff 45 89 f8 44 89 f1 48 89 ee 48 89 c2 48 c7 c7 70 40 8b a2 e8 0e 35 35 ff <0f> 0b e9 b4 fe ff ff 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90
[14701.686074] RSP: 0018:ffffc0eb40003e58 EFLAGS: 00010286
[14701.686076] RAX: 0000000000000000 RBX: ffff9b83450c441c RCX: 0000000000000027
[14701.686077] RDX: ffff9b86aec216c8 RSI: 0000000000000001 RDI: ffff9b86aec216c0
[14701.686078] RBP: ffff9b83450c4000 R08: 0000000000000001 R09: 00000000ffffffea
[14701.686080] R10: ffffffffa305ad40 R11: ffffffffa30b2d40 R12: ffff9b83450c44c8
[14701.686081] R13: ffff9b83443e0c00 R14: 0000000000000000 R15: 0000000000002104
[14701.686082] FS:  0000000000000000(0000) GS:ffff9b86aec00000(0000) knlGS:0000000000000000
[14701.686083] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[14701.686085] CR2: 0000276798203000 CR3: 0000000281620001 CR4: 00000000003706f0
[14701.686086] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[14701.686087] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[14701.686088] Call Trace:
[14701.686106]  <IRQ>
[14701.686108]  ? __warn+0x81/0x1b0
[14701.686112]  ? dev_watchdog+0x2b2/0x2c0
[14701.686113]  ? report_bug+0x202/0x270
[14701.686116]  ? handle_bug+0x3c/0x80
[14701.686119]  ? exc_invalid_op+0x19/0xc0
[14701.686121]  ? asm_exc_invalid_op+0x1a/0x20
[14701.686124]  ? dev_watchdog+0x2b2/0x2c0
[14701.686126]  ? dev_watchdog+0x2b2/0x2c0
[14701.686127]  ? __pfx_dev_watchdog+0x10/0x10
[14701.686129]  call_timer_fn+0x24/0x130
[14701.686132]  run_timer_softirq+0x407/0xac0
[14701.686134]  ? __pfx_dev_watchdog+0x10/0x10
[14701.686135]  ? timerqueue_add+0x98/0xb0
[14701.686139]  __do_softirq+0xd1/0x2c8
[14701.686142]  irq_exit_rcu+0xc0/0xf0
[14701.686144]  sysvec_apic_timer_interrupt+0x72/0x90
[14701.686146]  </IRQ>
[14701.686147]  <TASK>
[14701.686148]  asm_sysvec_apic_timer_interrupt+0x1a/0x20
[14701.686149] RIP: 0010:cpuidle_enter_state+0xcc/0x830
[14701.686152] Code: ca ac 1a ff e8 05 f2 ff ff 8b 53 04 49 89 c6 0f 1f 44 00 00 31 ff e8 93 7a 19 ff 45 84 ff 0f 85 c4 02 00 00 fb 0f 1f 44 00 00 <45> 85 ed 0f 88 9e 02 00 00 49 63 f5 4c 89 f2 48 8d 04 76 48 8d 04
[14701.686154] RSP: 0018:ffffffffa3003e20 EFLAGS: 00000246
[14701.686155] RAX: ffff9b86aec33f00 RBX: ffff9b86aec3f400 RCX: 0000000000000000
[14701.686156] RDX: 0000000000000000 RSI: fffffffdb1083922 RDI: 0000000000000000
[14701.686157] RBP: 0000000000000004 R08: 0000000000000002 R09: 000000003161f4af
[14701.686158] R10: 000000000000018b R11: 0000000000000006 R12: ffffffffa3145fe0
[14701.686159] R13: 0000000000000004 R14: 00000d5f00c342c3 R15: 0000000000000000
[14701.686162]  cpuidle_enter+0x2d/0x40
[14701.686166]  do_idle+0x1d8/0x230
[14701.686170]  cpu_startup_entry+0x1d/0x20
[14701.686172]  rest_init+0xca/0xd0
[14701.686175]  arch_call_rest_init+0xe/0x30
[14701.686178]  start_kernel+0x773/0xb10
[14701.686180]  x86_64_start_reservations+0x18/0x30
[14701.686183]  x86_64_start_kernel+0x96/0xa0
[14701.686186]  secondary_startup_64_no_verify+0x10b/0x10b
[14701.686190]  </TASK>
[14701.686191] ---[ end trace 0000000000000000 ]---
[14702.922062] pcieport 0000:00:1c.0: Data Link Layer Link Active not set in 1000 msec
[14702.923499] r8169 0000:06:00.0 enp6s0: Can't reset secondary PCI bus, detach NIC

下边是故障后 lspci 网卡的输出

06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
        Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
        !!! Unknown header type 7f
        Interrupt: pin ? routed to IRQ 18
        Region 0: I/O ports at 3000 [size=256]
        Region 2: Memory at a4104000 (64-bit, non-prefetchable) [size=4K]
        Region 4: Memory at a4100000 (64-bit, non-prefetchable) [size=16K]
        Kernel driver in use: r8169
        Kernel modules: r8169

请问是否有方法可以不重启机子解决网络挂了的问题?

最近编辑记录 ggdG (2023-07-06 00:04:14)

离线

#2 2023-07-04 11:40:48

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,953
个人网站

Re: [已解决]网线连接用着用着网络就挂了

网卡驱动的问题。试试 modprobe -r r8169 再 modprobe r8169。不行的话大概只能等修了。

离线

#3 2023-07-05 23:58:18

ggdG
会员
注册时间: 2020-11-16
帖子: 14

Re: [已解决]网线连接用着用着网络就挂了

应该是驱动的 bug,退回 6.3.9 等修了

可能和 https://bugzilla.kernel.org/show_bug.cgi?id=217596 这个有关

最近编辑记录 ggdG (2023-07-06 00:03:41)

离线

#4 2023-07-06 10:04:39

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,953
个人网站

Re: [已解决]网线连接用着用着网络就挂了

6.4 好多 bug 啊……

离线

页脚