FS#53998 - [linux] 4.10.13 USB C connected network adapter, DELL TB16 doc, crashes

Attached to Project: Arch Linux
Opened by Robert Sandberg (robbans) - Wednesday, 10 May 2017, 07:48 GMT
Last edited by freswa (frederik) - Friday, 29 May 2020, 20:08 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

My system contains a Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter which is on usb3 bus in my docking station (Dell TB16) which is attached to my laptop (Dell Precision 5520) via USB C.

I get usb related kernel error messages when I initiate a high speed transfer (by issuing wget http://cdimage.ubuntu.com/daily-live/current/zesty-desktop-amd64.iso) and the download fails.

This does not happened when the Ethernet adapter is connected to a 100Mb/s switch, but only when connected to 1000Mb/s. It also does not happened with slow traffic (e.g. web page browsing).
This has been verified on multiple distributions, see:https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1667750

Log:
[15488.706065] xhci_hcd 0000:0e:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
[15488.706069] xhci_hcd 0000:0e:00.0: Looking for event-dma 000000066e064010 trb-start 00000007c6665fe0 trb-end 00000007c6665fe0 seg-start 00000007c6665000 seg-end 00000007c6665ff0
[15488.706190] xhci_hcd 0000:0e:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
[15488.706193] xhci_hcd 0000:0e:00.0: Looking for event-dma 000000066e064020 trb-start 00000007c6665fe0 trb-end 00000007c6665fe0 seg-start 00000007c6665000 seg-end 00000007c6665ff0
[15488.706318] xhci_hcd 0000:0e:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
[15488.706320] xhci_hcd 0000:0e:00.0: Looking for event-dma 000000066e064030 trb-start 00000007c6665fe0 trb-end 00000007c6665fe0 seg-start 00000007c6665000 seg-end 00000007c6665ff0
[15488.706447] xhci_hcd 0000:0e:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
[15488.706449] xhci_hcd 0000:0e:00.0: Looking for event-dma 000000066e064040 trb-start 00000007c6665fe0 trb-end 00000007c6665fe0 seg-start 00000007c6665000 seg-end 00000007c6665ff0
[15488.706576] xhci_hcd 0000:0e:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
[15488.706577] xhci_hcd 0000:0e:00.0: Looking for event-dma 000000066e064050 trb-start 00000007c6665fe0 trb-end 00000007c6665fe0 seg-start 00000007c6665000 seg-end 00000007c6665ff0
[15488.733174] xhci_hcd 0000:0e:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
[15488.733179] xhci_hcd 0000:0e:00.0: Looking for event-dma 000000066e064060 trb-start 00000007c6665fe0 trb-end 00000007c6665fe0 seg-start 00000007c6665000 seg-end 00000007c6665ff0
[15488.738424] xhci_hcd 0000:0e:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
[15488.738430] xhci_hcd 0000:0e:00.0: Looking for event-dma 000000066e064070 trb-start 00000007c6665fe0 trb-end 00000007c6665fe0 seg-start 00000007c6665000 seg-end 00000007c6665ff0
[15488.738432] xhci_hcd 0000:0e:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
[15488.738435] xhci_hcd 0000:0e:00.0: Looking for event-dma 000000066e064080 trb-start 00000007c6665fe0 trb-end 00000007c6665fe0 seg-start 00000007c6665000 seg-end 00000007c6665ff0
[15500.725150] ------------[ cut here ]------------
[15500.725177] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:316 dev_watchdog+0x22a/0x230
[15500.725182] NETDEV WATCHDOG: enp14s0u1u2 (r8152): transmit queue 0 timed out
[15500.725185] Modules linked in: ftdi_sio usbserial sd_mod uas usb_storage hid_logitech_hidpp snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device hid_logitech_dj cdc_ether usbnet r8152 mii hid_generic usbhid ctr ccm cmac rfcomm joydev mousedev hid_multitouch bnep uvcvideo videobuf2_vmalloc snd_hda_codec_hdmi videobuf2_memops videobuf2_v4l2 videobuf2_core videodev i2c_designware_platform iTCO_wdt dell_led dell_wmi media iTCO_vendor_support mei_wdt i2c_designware_core mxm_wmi dell_smbios dcdbas dell_smm_hwmon snd_hda_codec_realtek snd_hda_codec_generic intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd evdev glue_helper input_leds cryptd mac_hid psmouse i915 pcspkr tpm_crb arc4
[15500.725266] snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_timer snd soundcore i2c_i801 nls_iso8859_1 nls_cp437 btusb iwlmvm btrtl vfat fat mac80211 led_class iwlwifi rtsx_pci_ms memstick cfg80211 drm_kms_helper mei_me mei drm idma64 intel_lpss_pci intel_gtt syscopyarea intel_pch_thermal sysfillrect sysimgblt fb_sys_fops i2c_algo_bit processor_thermal_device shpchp intel_soc_dts_iosf thermal battery i2c_hid hid hci_uart btbcm btqca btintel bluetooth dell_smo8800 rfkill intel_lpss_acpi wmi intel_lpss video intel_hid int3403_thermal int340x_thermal_zone sparse_keymap int3400_thermal acpi_thermal_rel ac acpi_pad tpm_tis button acpi_als tpm_tis_core kfifo_buf fjes tpm industrialio sch_fq_codel vboxnetflt(O) vboxnetadp(O) pci_stub vboxpci(O) vboxdrv(O) sg ip_tables x_tables ext4 crc16
[15500.725355] jbd2 fscrypto mbcache dm_mod rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 crc32c_intel ahci libahci xhci_pci libata nvme xhci_hcd nvme_core rtsx_pci scsi_mod usbcore usb_common i8042 serio
[15500.725385] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G O 4.10.13-1-ARCH #1
[15500.725388] Hardware name: Dell Inc. Precision 5520/06X96V, BIOS 1.1.3 01/18/2017
[15500.725389] Call Trace:
[15500.725392] <IRQ>
[15500.725400] dump_stack+0x63/0x83
[15500.725407] __warn+0xcb/0xf0
[15500.725412] warn_slowpath_fmt+0x5f/0x80
[15500.725417] ? __x2apic_send_IPI_dest+0x32/0x40
[15500.725424] dev_watchdog+0x22a/0x230
[15500.725429] ? qdisc_rcu_free+0x50/0x50
[15500.725435] call_timer_fn+0x38/0x170
[15500.725439] ? qdisc_rcu_free+0x50/0x50
[15500.725443] expire_timers+0xb3/0x140
[15500.725448] run_timer_softirq+0x89/0xe0
[15500.725453] ? lapic_next_deadline+0x26/0x30
[15500.725459] ? clockevents_program_event+0x7f/0x120
[15500.725465] __do_softirq+0x104/0x2e1
[15500.725469] irq_exit+0xb6/0xc0
[15500.725475] smp_apic_timer_interrupt+0x3d/0x50
[15500.725480] apic_timer_interrupt+0x89/0x90
[15500.725486] RIP: 0010:cpuidle_enter_state+0x134/0x2e0
[15500.725489] RSP: 0018:ffffffff81a03dc8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
[15500.725493] RAX: 0000000000000000 RBX: 00000e190b371bcb RCX: 000000000000001f
[15500.725495] RDX: 00000e190b371bcb RSI: ffff88087f415898 RDI: 0000000000000000
[15500.725496] RBP: ffffffff81a03e00 R08: cccccccccccccccd R09: 0000000000000018
[15500.725498] R10: 00000000000001e3 R11: 0000000000000659 R12: 0000000000000004
[15500.725500] R13: 0000000000000004 R14: ffff88087f41f800 R15: 00000e190b2b8ddb
[15500.725503] </IRQ>
[15500.725508] ? cpuidle_enter_state+0x10f/0x2e0
[15500.725516] cpuidle_enter+0x17/0x20
[15500.725521] call_cpuidle+0x23/0x40
[15500.725523] do_idle+0x189/0x200
[15500.725527] cpu_startup_entry+0x71/0x80
[15500.725531] rest_init+0x84/0x90
[15500.725537] start_kernel+0x44d/0x46e
[15500.725542] ? early_idt_handler_array+0x120/0x120
[15500.725547] x86_64_start_reservations+0x2a/0x2c
[15500.725552] x86_64_start_kernel+0x14c/0x16f
[15500.725555] start_cpu+0x14/0x14
[15500.725560] ---[ end trace 79c437b1e1bcac94 ]---
[15500.725569] r8152 4-1.2:1.0 enp14s0u1u2: Tx timeout
[15500.771691] r8152 4-1.2:1.0 enp14s0u1u2: Tx status -2
[15500.781426] r8152 4-1.2:1.0 enp14s0u1u2: Tx status -2
[15500.794631] r8152 4-1.2:1.0 enp14s0u1u2: Tx status -2
[15500.804326] r8152 4-1.2:1.0 enp14s0u1u2: Tx status -2
[15503.629009] usb 4-1.2: reset SuperSpeed USB device number 3 using xhci_hcd

Workaround:
Limiting the connection speed to 100MBit FDX via "ethtool eth..... speed 100 duplex full autoneg on"

This task depends upon

Closed by  freswa (frederik)
Friday, 29 May 2020, 20:08 GMT
Reason for closing:  Fixed
Comment by Robert Sandberg (robbans) - Wednesday, 10 May 2017, 07:58 GMT
USB device info:

Bus 004 Device 003: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x8153 RTL8153 Gigabit Ethernet Adapter
bcdDevice 30.01
iManufacturer 1 Realtek
iProduct 2 USB 10/100/1000 LAN
Comment by freswa (frederik) - Saturday, 13 May 2017, 19:53 GMT
Same here with Dell Precision 7710 and TB16 Dock.
I think this mail is related: https://groups.google.com/d/msg/linux.kernel/vdR3nK8k8zM/m5oiwxV8BAAJ
and also this launchpad bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1667750
Comment by M. Greyson Christoforo (greyltc) - Tuesday, 30 May 2017, 11:56 GMT Comment by freswa (frederik) - Thursday, 08 June 2017, 14:14 GMT
If I attach a USB LAN adapter with RTL8153 chipset to the ASM1042A (to which the internal dock ethernet port is also connected) I get the same behavior (XHCI errors).
But f I attach it to a non-ASM1042A port it works perfectly fine. So this bug might (also) be related to the ASM1042A chip.
Comment by freswa (frederik) - Thursday, 08 June 2017, 15:45 GMT Comment by Mario (superm1) - Friday, 09 June 2017, 14:40 GMT
This is an issue with the host controller. The vendor (ASMedia) has submitted a patch here that fixes the issue:
http://www.spinics.net/lists/linux-usb/msg157958.html
Comment by freswa (frederik) - Saturday, 10 June 2017, 22:13 GMT
That patch fixes this bug for me.
Thx
Comment by mattia (nTia89) - Friday, 29 May 2020, 14:07 GMT
Upstream has been marked as solved.
Is the issue still there for you?

Loading...