Bug 218464 - The r8152 driver crashes regularly while connected to a WD22TB4 with a Dell Precision 3581
Summary: The r8152 driver crashes regularly while connected to a WD22TB4 with a Dell P...
Status: REOPENED
Alias: None
Product: Drivers
Classification: Unclassified
Component: Network (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: drivers_network@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-06 08:46 UTC by nvaert1986
Modified: 2024-06-05 12:57 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Message fro dmesg (4.66 KB, text/plain)
2024-02-19 07:58 UTC, nvaert1986
Details

Description nvaert1986 2024-02-06 08:46:25 UTC
The r8152 driver on my laptop crashes after using it for a while. The connection is on a Dell WD22TB4 docking station and the laptop is a Dell Precision 3581. When the issue occurs running modprobe r8152 && modprobe r8152 does not resolve the problem. I really need to physically disconnect and reconnect the docking station before the ethernet connection reconnects.

I've installed the latest firmware from: https://www.dell.com/support/home/en-us/product-support/product/wd22tb4-dock/drivers for both the Dell Dock Firmware and the Realtek USB GBE Ethernet Controller, which fixes an issue related to a disconnect, but it does not resolve the issue I'm currently experiencing.

I'm currently running kernel 6.6.14.

If you need any additional information, then please don't hesitate to ask for it.




[ 2224.231790] r8152-cfgselector 2-1.4.4: Failed to read 4 bytes at 0xb400/0x0133 (-110)
[ 2224.297674] xhci_hcd 0000:00:0d.0: ERROR Transfer event for unknown stream ring slot 4 ep 2
[ 2224.297689] xhci_hcd 0000:00:0d.0: @00000000ffffa830 fffa4a50 00000000 c7000000 04038000
[ 2229.351793] xhci_hcd 0000:00:0d.0: Timeout while waiting for setup device command
[ 2229.863650] ------------[ cut here ]------------
[ 2229.863682] NETDEV WATCHDOG: enp0s13f0u1u4u4 (r8152): transmit queue 0 timed out 6144 ms
[ 2229.863711] WARNING: CPU: 1 PID: 0 at dev_watchdog+0x22b/0x240
[ 2229.863730] Modules linked in: tun snd_hda_codec_hdmi snd_ctl_led snd_hda_codec_realtek snd_hda_codec_generic nvidia_drm(PO) nvidia_modeset(PO) nvidia(PO) snd_sof_pci_intel_tgl snd_sof_intel_hda_common snd_soc_acpi_intel_match snd_soc_acpi snd_soc_hdac_hda snd_sof_pci snd_sof_xtensa_dsp soundwire_intel soundwire_generic_allocation snd_sof_intel_hda_mlink r8152 soundwire_cadence mii snd_sof_intel_hda snd_sof snd_sof_utils snd_hda_ext_core iwlmvm uvcvideo i915 snd_hda_intel videobuf2_vmalloc snd_intel_dspcfg uvc snd_intel_sdw_acpi videobuf2_memops videobuf2_v4l2 i2c_algo_bit snd_hda_codec drm_buddy btusb videobuf2_common e1000e snd_hda_core rtsx_pci_sdmmc btintel mei_pxp ttm mei_hdcp iwlwifi drm_display_helper razermouse(O) razerkbd(O) cec
[ 2229.863936] CPU: 1 PID: 0 Comm: swapper/1 Tainted: P     U     O       6.6.14-gentoo #2
[ 2229.863946] Hardware name: Dell Inc. Precision 3581/0W18NX, BIOS 1.9.0 12/11/2023
[ 2229.863951] RIP: 0010:dev_watchdog+0x22b/0x240
[ 2229.863962] Code: ff ff ff 48 89 df c6 05 b1 e5 06 01 01 e8 5d 07 fb ff 45 89 f8 44 89 f1 48 89 de 48 89 c2 48 c7 c7 60 41 c3 b1 e8 25 0c 3f ff <0f> 0b e9 36 ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90
[ 2229.863970] RSP: 0018:ffffae7a80528ea0 EFLAGS: 00010286
[ 2229.863979] RAX: 0000000000000000 RBX: ffff90114f78c000 RCX: 0000000000000000
[ 2229.863986] RDX: 0000000000000104 RSI: 00000000000000f6 RDI: 00000000ffffffff
[ 2229.863992] RBP: ffff90114f78c408 R08: 0000000000000000 R09: ffffffffb1e62980
[ 2229.863997] R10: ffffae7a80528d40 R11: ffffffffb1f429c8 R12: ffff9011425f6400
[ 2229.864001] R13: ffff90114f78c3dc R14: 0000000000000000 R15: 0000000000001800
[ 2229.864006] FS:  0000000000000000(0000) GS:ffff90208f440000(0000) knlGS:0000000000000000
[ 2229.864014] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2229.864027] CR2: 00007f7acc7ce3dc CR3: 0000000c8363e000 CR4: 0000000000f50ee0
[ 2229.864035] PKRU: 55555554
[ 2229.864041] Call Trace:
[ 2229.864048]  <IRQ>
[ 2229.864054]  ? dev_watchdog+0x22b/0x240
[ 2229.864063]  ? __warn+0x7c/0x130
[ 2229.864080]  ? dev_watchdog+0x22b/0x240
[ 2229.864089]  ? report_bug+0x14a/0x180
[ 2229.864100]  ? handle_bug+0x3a/0x70
[ 2229.864111]  ? exc_invalid_op+0x17/0x70
[ 2229.864122]  ? asm_exc_invalid_op+0x1a/0x20
[ 2229.864138]  ? dev_watchdog+0x22b/0x240
[ 2229.864147]  ? __pfx_dev_watchdog+0x10/0x10
[ 2229.864155]  ? __pfx_dev_watchdog+0x10/0x10
[ 2229.864163]  call_timer_fn+0x1f/0x130
[ 2229.864174]  __run_timers.part.0+0x1d8/0x280
[ 2229.864182]  ? _raw_spin_lock_irq+0x13/0x40
[ 2229.864189]  ? __hrtimer_run_queues+0x11c/0x2a0
[ 2229.864198]  ? ktime_get+0x38/0xa0
[ 2229.864209]  run_timer_softirq+0x30/0x70
[ 2229.864217]  __do_softirq+0xe7/0x2e9
[ 2229.864225]  irq_exit_rcu+0x70/0xc0
[ 2229.864233]  sysvec_apic_timer_interrupt+0xa2/0xd0
[ 2229.864243]  </IRQ>
[ 2229.864246]  <TASK>
[ 2229.864251]  asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 2229.864258] RIP: 0010:cpuidle_enter_state+0xc6/0x430
[ 2229.864269] Code: 00 e8 9e 4c 17 ff e8 29 f3 ff ff 8b 53 04 49 89 c5 0f 1f 44 00 00 31 ff e8 b7 ad 16 ff 45 84 ff 0f 85 51 02 00 00 fb 45 85 f6 <0f> 88 85 01 00 00 49 63 d6 48 8d 04 52 48 8d 04 82 49 8d 0c c4 48
[ 2229.864274] RSP: 0018:ffffae7a801b7e98 EFLAGS: 00000206
[ 2229.864283] RAX: ffff90208f440000 RBX: ffffce7a7f876ac0 RCX: 000000000000001f
[ 2229.864288] RDX: 0000000000000001 RSI: ffffffffb1b404a9 RDI: ffffffffb1b43445
[ 2229.864292] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000019969
[ 2229.864297] R10: 0000000000000018 R11: ffff90208f46c124 R12: ffffffffb1fc8700
[ 2229.864302] R13: 000002072e3a7a3c R14: 0000000000000003 R15: 0000000000000000
[ 2229.864310]  ? cpuidle_enter_state+0xb9/0x430
[ 2229.864320]  cpuidle_enter+0x28/0x40
[ 2229.864330]  do_idle+0x1ca/0x220
[ 2229.864343]  cpu_startup_entry+0x25/0x30
[ 2229.864353]  start_secondary+0xf4/0x100
[ 2229.864366]  secondary_startup_64_no_verify+0x178/0x17b
[ 2229.864380]  </TASK>
[ 2229.864383] ---[ end trace 0000000000000000 ]---
[ 2229.864395] r8152 2-1.4.4:1.0 enp0s13f0u1u4u4: Tx timeout
[ 2234.983658] r8152 2-1.4.4:1.0 enp0s13f0u1u4u4: Tx timeout
[ 2234.983766] xhci_hcd 0000:00:0d.0: Timeout while waiting for setup device command
[ 2235.191675] r8152-cfgselector 2-1.4.4: device not accepting address 5, error -62
[ 2235.849168] r8152 2-1.4.4:1.0 enp0s13f0u1u4u4: Using pass-thru MAC addr 4c:d7:17:62:74:28
[ 2235.849597] r8152-cfgselector 2-1.4.4: USB disconnect, device number 5
[ 2235.879915] xhci_hcd 0000:00:0d.0: ERROR: unexpected command completion code 0x13.
Comment 1 nvaert1986 2024-02-08 13:28:47 UTC
After some experimenting I've added: "usbcore.autosuspend=-1" to my /etc/default/grub file and updated my grub.cfg configuration file. I've been testing this for the last 2 days so far and it's been stable so far. I'll keep monitoring it, but if it remains stable, it's a "Works for me" situation and I'll close the ticket.
Comment 2 nvaert1986 2024-02-13 08:15:51 UTC
It's been stable ever since disabling autosuspend. Ticket closed.
Comment 3 nvaert1986 2024-02-19 07:56:47 UTC
It's far more stable by disabling autosuspend. Now it crashes once every few days, where without autosuspend it would crash every 2 hours or so, but the problem is still not resolved unfortunately and it crashed again several times in the last couple of days with the following error:
Comment 4 nvaert1986 2024-02-19 07:58:24 UTC
Created attachment 305894 [details]
Message fro dmesg

The messages from dmesg. If you need any additional information, then please let me know.
Comment 5 nvaert1986 2024-03-05 07:59:37 UTC
After having a stable 2 weeks without any issues, the issue occurred again today. Using BIOS version 1.10.1 and kernel 6.6.20 with the exact same dmesg error as above.
Comment 6 nvaert1986 2024-04-11 07:38:35 UTC
Still the same issue unfortunately with firmware 1.12.0 and kernel 6.6.26, but a slightly different error in dmesg.

[  278.149625] r8152-cfgselector 2-1.4.4: Failed to read 4 bytes at 0xb400/0x0133 (-110)
[  278.215876] r8152-cfgselector 2-1.4.4: reset SuperSpeed USB device number 5 using xhci_hcd
[  278.228907] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.228921] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.228925] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.228927] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.228930] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.228932] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.228935] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.228937] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.228940] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.228942] xhci_hcd 0000:00:0d.0: Canceled URB td not found on endpoint ring
[  278.229140] r8152 2-1.4.4:1.0 enp0s13f0u1u4u4: Using pass-thru MAC addr 4c:d7:17:62:74:28
[  599.463351] hid-generic 0003:413C:B06F.000D: hiddev98,hidraw9: USB HID v1.11 Device [Dell dock] on usb-0000:00:14.0-1.1.3.5/input0
[  599.529766] hid-generic 0003:413C:B06E.000E: hiddev96,hidraw1: USB HID v1.11 Device [Dell dock] on usb-0000:00:14.0-1.1.5/input0
[ 1485.440636] r8152-cfgselector 2-1.4.4: Failed to read 4 bytes at 0xb400/0x0133 (-110)
[ 1490.560599] xhci_hcd 0000:00:0d.0: Timeout while waiting for setup device command
[ 1493.120514] ------------[ cut here ]------------
[ 1493.120537] NETDEV WATCHDOG: enp0s13f0u1u4u4 (r8152): transmit queue 0 timed out 8675 ms
[ 1493.120571] WARNING: CPU: 1 PID: 0 at dev_watchdog+0x22b/0x240
[ 1493.120591] Modules linked in: snd_hda_codec_hdmi snd_ctl_led snd_hda_codec_realtek snd_hda_codec_generic nvidia_drm(PO) nvidia_modeset(PO) i915 nvidia(PO) snd_sof_pci_intel_tgl snd_sof_intel_hda_common snd_soc_acpi_intel_match snd_soc_acpi snd_soc_hdac_hda snd_sof_pci snd_sof_xtensa_dsp soundwire_intel iwlmvm soundwire_generic_allocation snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda snd_sof r8152 snd_sof_utils snd_hda_ext_core mii uvcvideo snd_hda_intel videobuf2_vmalloc snd_intel_dspcfg uvc videobuf2_memops snd_intel_sdw_acpi i2c_algo_bit iwlwifi videobuf2_v4l2 snd_hda_codec drm_buddy videobuf2_common e1000e ttm snd_hda_core btusb rtsx_pci_sdmmc drm_display_helper mei_pxp mei_hdcp btintel cec razermouse(O) razerkbd(O)
[ 1493.120840] CPU: 1 PID: 0 Comm: swapper/1 Tainted: P     U     O       6.6.26-gentoo #1
[ 1493.120851] Hardware name: Dell Inc. Precision 3581/0W18NX, BIOS 1.12.0 03/11/2024
[ 1493.120857] RIP: 0010:dev_watchdog+0x22b/0x240
[ 1493.120869] Code: ff ff ff 48 89 df c6 05 d8 53 05 01 01 e8 dd 00 fb ff 45 89 f8 44 89 f1 48 89 de 48 89 c2 48 c7 c7 00 bb 63 bb e8 45 d2 3d ff <0f> 0b e9 36 ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90
[ 1493.120877] RSP: 0018:ffffc9000052cea0 EFLAGS: 00010286
[ 1493.120889] RAX: 0000000000000000 RBX: ffff88810466e000 RCX: 0000000000000000
[ 1493.120897] RDX: 0000000000000104 RSI: 00000000000000f6 RDI: 00000000ffffffff
[ 1493.120904] RBP: ffff88810466e408 R08: 0000000000000000 R09: ffffffffbb862c60
[ 1493.120910] R10: ffffc9000052cd40 R11: ffffffffbb942ca8 R12: ffff8881046d0c00
[ 1493.120916] R13: ffff88810466e3dc R14: 0000000000000000 R15: 00000000000021e3
[ 1493.120921] FS:  0000000000000000(0000) GS:ffff88904f440000(0000) knlGS:0000000000000000
[ 1493.120929] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1493.120935] CR2: 0000563775bb1f2c CR3: 0000000abea3e000 CR4: 0000000000f50ee0
[ 1493.120942] PKRU: 55555554
[ 1493.120948] Call Trace:
[ 1493.120957]  <IRQ>
[ 1493.120962]  ? dev_watchdog+0x22b/0x240
[ 1493.120972]  ? __warn+0x7c/0x130
[ 1493.120990]  ? dev_watchdog+0x22b/0x240
[ 1493.121000]  ? report_bug+0x14a/0x180
[ 1493.121015]  ? handle_bug+0x3a/0x70
[ 1493.121024]  ? exc_invalid_op+0x17/0x70
[ 1493.121033]  ? asm_exc_invalid_op+0x1a/0x20
[ 1493.121050]  ? dev_watchdog+0x22b/0x240
[ 1493.121060]  ? __pfx_dev_watchdog+0x10/0x10
[ 1493.121069]  ? __pfx_dev_watchdog+0x10/0x10
[ 1493.121077]  call_timer_fn+0x1f/0x130
[ 1493.121093]  __run_timers.part.0+0x1d8/0x280
[ 1493.121116]  ? _raw_spin_lock_irq+0x13/0x40
[ 1493.121127]  ? __hrtimer_run_queues+0x11c/0x2a0
[ 1493.121136]  ? ktime_get+0x38/0xa0
[ 1493.121150]  run_timer_softirq+0x30/0x70
[ 1493.121164]  __do_softirq+0xe7/0x2e9
[ 1493.121176]  irq_exit_rcu+0x70/0xc0
[ 1493.121190]  sysvec_apic_timer_interrupt+0xa2/0xd0
[ 1493.121205]  </IRQ>
[ 1493.121209]  <TASK>
[ 1493.121214]  asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1493.121225] RIP: 0010:cpuidle_enter_state+0xc6/0x430
[ 1493.121234] Code: 00 e8 be 69 16 ff e8 59 f3 ff ff 8b 53 04 49 89 c5 0f 1f 44 00 00 31 ff e8 77 ca 15 ff 45 84 ff 0f 85 51 02 00 00 fb 45 85 f6 <0f> 88 85 01 00 00 49 63 d6 48 8d 04 52 48 8d 04 82 49 8d 0c c4 48
[ 1493.121241] RSP: 0018:ffffc900001bbe98 EFLAGS: 00000206
[ 1493.121251] RAX: ffff88904f440000 RBX: ffffe8ffff8742c0 RCX: 000000000000001f
[ 1493.121257] RDX: 0000000000000001 RSI: ffffffffbb5469bf RDI: ffffffffbb549b46
[ 1493.121263] RBP: 0000000000000003 R08: 0000000000000000 R09: 000000000000795b
[ 1493.121268] R10: 0000000000000018 R11: ffff88904f46c1a4 R12: ffffffffbb9ca000
[ 1493.121274] R13: 0000015ba4ea5d5c R14: 0000000000000003 R15: 0000000000000000
[ 1493.121286]  ? cpuidle_enter_state+0xb9/0x430
[ 1493.121294]  cpuidle_enter+0x28/0x40
[ 1493.121305]  do_idle+0x1ca/0x220
[ 1493.121316]  cpu_startup_entry+0x25/0x30
[ 1493.121326]  start_secondary+0xf4/0x100
[ 1493.121335]  secondary_startup_64_no_verify+0x178/0x17b
[ 1493.121350]  </TASK>
[ 1493.121355] ---[ end trace 0000000000000000 ]---
[ 1493.121369] r8152 2-1.4.4:1.0 enp0s13f0u1u4u4: Tx timeout
[ 1496.192588] xhci_hcd 0000:00:0d.0: Timeout while waiting for setup device command
Comment 7 nvaert1986 2024-06-05 12:57:26 UTC
I've just upgrade to the 6.9.3 kernel, there the error is slightly different

[ 5251.154874] r8152-cfgselector 2-1.4.4: Failed to read 4 bytes at 0xb400/0x0133 (-110)
[ 5251.224040] xhci_hcd 0000:00:0d.0: ERROR Transfer event for unknown stream ring slot 4 ep 2
[ 5251.224053] xhci_hcd 0000:00:0d.0: @00000000ffffafd0 fff29f90 00000000 c7000000 04038000
[ 5256.275280] xhci_hcd 0000:00:0d.0: Timeout while waiting for setup device command
[ 5260.882696] r8152 2-1.4.4:1.0 enp0s13f0u1u4u4: NETDEV WATCHDOG: CPU: 12: transmit queue 0 timed out 9727 ms
[ 5260.882715] r8152 2-1.4.4:1.0 enp0s13f0u1u4u4: Tx timeout
[ 5261.906827] xhci_hcd 0000:00:0d.0: Timeout while waiting for setup device command
[ 5262.114681] r8152-cfgselector 2-1.4.4: device not accepting address 5, error -62
[ 5262.772216] r8152 2-1.4.4:1.0 enp0s13f0u1u4u4: Using pass-thru MAC addr 4c:d7:17:62:74:28
[ 5262.772626] r8152-cfgselector 2-1.4.4: USB disconnect, device number 5
[ 5262.812792] xhci_hcd 0000:00:0d.0: ERROR: unexpected command completion code 0x13.

Note You need to log in before you can comment on or make changes to this bug.