Public bug reported: The r8152 Ethernet device in my Lattepanda board just disconnected from my network while I was uploading some files over the LAN.
dmesg reported this: [1036155.155084] ------------[ cut here ]------------ [1036155.155099] NETDEV WATCHDOG: enx00e04c368b17 (r8152): transmit queue 0 timed out [1036155.155201] WARNING: CPU: 0 PID: 0 at /build/linux-vxxS7y/linux-4.15.0/net/sched/sch_generic.c:323 dev_watchdog+0x221/0x230 [1036155.155207] Modules linked in: xt_nat xt_tcpudp veth ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack libcrc32c br_netfilter bridge stp llc overlay aufs nls_iso8859_1 snd_soc_sst_cht_bsw_rt5645 axp288_fuel_gauge axp288_adc axp288_charger industrialio axp20x_pek extcon_axp288 gpio_keys intel_rapl intel_powerclamp coretemp kvm_intel kvm irqbypass punit_atom_debug crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd glue_helper cdc_ether cryptd usbnet intel_cstate r8152 mii cdc_acm snd_intel_sst_acpi snd_intel_sst_core mei_txe snd_soc_sst_atom_hifi2_platform snd_soc_acpi mei snd_seq_midi snd_soc_acpi_intel_match [1036155.155554] snd_seq_midi_event processor_thermal_device snd_rawmidi intel_soc_dts_iosf lpc_ich snd_hdmi_lpe_audio snd_seq snd_soc_rt5645 snd_soc_rl6231 snd_soc_core intel_hid snd_compress sparse_keymap snd_seq_device axp20x_i2c ac97_bus dw_dmac snd_pcm_dmaengine goodix axp20x snd_pcm dw_dmac_core snd_timer pwm_lpss_platform snd pwm_lpss soundcore spi_pxa2xx_platform 8250_dw int3400_thermal int3406_thermal acpi_thermal_rel int3403_thermal mac_hid int340x_thermal_zone soc_button_array intel_int0002_vgpio acpi_pad sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid mmc_block i915 i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm video sdhci_acpi sdhci [1036155.155901] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.15.0-43-generic #46-Ubuntu [1036155.155907] Hardware name: Default string Default string/Cherry Trail CR, BIOS DF-BI-7-S70CR200-CC55F-022-B 05/15/2018 [1036155.155920] RIP: 0010:dev_watchdog+0x221/0x230 [1036155.155929] RSP: 0018:ffff9b977fc03e58 EFLAGS: 00010286 [1036155.155941] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000006 [1036155.155948] RDX: 0000000000000007 RSI: 0000000000000092 RDI: ffff9b977fc16490 [1036155.155955] RBP: ffff9b977fc03e88 R08: 0000000000000001 R09: 000000000000043e [1036155.155963] R10: ffff9b977fc03ee0 R11: 0000000000000000 R12: 0000000000000001 [1036155.155969] R13: ffff9b97725c1000 R14: ffff9b97725c1478 R15: ffff9b976d4ede80 [1036155.155981] FS: 0000000000000000(0000) GS:ffff9b977fc00000(0000) knlGS:0000000000000000 [1036155.155988] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [1036155.155995] CR2: 00007ffe98d7e008 CR3: 000000017540a000 CR4: 00000000001006f0 [1036155.156003] Call Trace: [1036155.156014] <IRQ> [1036155.156039] ? dev_deactivate_queue.constprop.33+0x60/0x60 [1036155.156055] call_timer_fn+0x30/0x130 [1036155.156069] run_timer_softirq+0x3fb/0x450 [1036155.156081] ? ktime_get+0x43/0xa0 [1036155.156094] ? lapic_next_deadline+0x26/0x30 [1036155.156108] __do_softirq+0xe4/0x2bb [1036155.156124] irq_exit+0xb8/0xc0 [1036155.156135] smp_apic_timer_interrupt+0x79/0x130 [1036155.156147] apic_timer_interrupt+0x84/0x90 [1036155.156153] </IRQ> [1036155.156169] RIP: 0010:cpuidle_enter_state+0xa7/0x2f0 [1036155.156175] RSP: 0018:ffffffffad803e10 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff11 [1036155.156187] RAX: ffff9b977fc22880 RBX: 0003ae60abf28410 RCX: 000000000000001f [1036155.156193] RDX: 0003ae60abf28410 RSI: fffffff7e3411b99 RDI: 0000000000000000 [1036155.156200] RBP: ffffffffad803e50 R08: 0000000000000001 R09: 000000000000027c [1036155.156206] R10: ffffffffad803de0 R11: 0000000000001e6e R12: ffff9b977fc2c400 [1036155.156213] R13: 0000000000000003 R14: ffffffffad971cb8 R15: 0000000000000000 [1036155.156234] cpuidle_enter+0x17/0x20 [1036155.156248] call_cpuidle+0x23/0x40 [1036155.156259] do_idle+0x18c/0x1f0 [1036155.156272] cpu_startup_entry+0x73/0x80 [1036155.156287] rest_init+0xae/0xb0 [1036155.156302] start_kernel+0x4dc/0x4fd [1036155.156314] x86_64_start_reservations+0x24/0x26 [1036155.156324] x86_64_start_kernel+0x74/0x77 [1036155.156339] secondary_startup_64+0xa5/0xb0 [1036155.156348] Code: 38 00 49 63 4e e8 eb 92 4c 89 ef c6 05 f9 d7 d8 00 01 e8 83 35 fd ff 89 d9 48 89 c2 4c 89 ee 48 c7 c7 30 99 59 ad e8 df 95 80 ff <0f> 0b eb c0 90 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 [1036155.156580] ---[ end trace 5a05a48c7e597e05 ]--- [1036155.156645] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036157.235268] r8152 1-4:1.0 enx00e04c368b17: Tx status -2 [1036157.235353] r8152 1-4:1.0 enx00e04c368b17: Tx status -2 [1036157.235431] r8152 1-4:1.0 enx00e04c368b17: Tx status -2 [1036157.235514] r8152 1-4:1.0 enx00e04c368b17: Tx status -2 [1036160.274941] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036166.162723] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036171.026878] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036176.146244] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036181.266638] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036187.154421] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036192.274270] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036198.166433] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036203.026072] r8152 1-4:1.0 enx00e04c368b17: Tx timeout The misbehaving device in this case is the board's integrated Ethernet, which appears as a USB device. The board also has a wifi device, but that device's driver is affected by https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1720580, so I had to blacklist r8723bs to stop systemd from spending 100% CPU journaling constant complaints from it. So the Ethernet device is the only working network adapter. Merely rebooting the system didn't fix anything; I had to shut down and actually power cycle the board to get networking to come back. If this keeps happening, it will make the machine useless for its intended use case as a low power server. It looks like the driver must have somehow gotten the device into a very bad state? ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: linux-image-4.15.0-43-generic 4.15.0-43.46 ProcVersionSignature: Ubuntu 4.15.0-43.46-generic 4.15.18 Uname: Linux 4.15.0-43-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.5 Architecture: amd64 AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/pcmC1D1p', '/dev/snd/pcmC1D0c', '/dev/snd/pcmC1D0p', '/dev/snd/controlC1', '/dev/snd/by-path', '/dev/snd/pcmC0D2p', '/dev/snd/pcmC0D1p', '/dev/snd/pcmC0D0p', '/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: Date: Tue Jan 1 10:17:36 2019 InstallationDate: Installed on 2018-12-08 (23 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:8152 Realtek Semiconductor Corp. Bus 001 Device 004: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID) Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Default string Default string ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-43-generic root=UUID=a40848aa-7225-4844-805d-e726c496e2a2 ro quiet splash vt.handoff=1 PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon. RelatedPackageVersions: linux-restricted-modules-4.15.0-43-generic N/A linux-backports-modules-4.15.0-43-generic N/A linux-firmware 1.173.2 RfKill: SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 05/15/2018 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: DF-BI-7-S70CR200-CC55F-022-B dmi.board.asset.tag: Default string dmi.board.name: Cherry Trail CR dmi.board.vendor: AMI Corporation dmi.board.version: Default string dmi.chassis.asset.tag: Default string dmi.chassis.type: 9 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrDF-BI-7-S70CR200-CC55F-022-B:bd05/15/2018:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnCherryTrailCR:rvrDefaultstring:cvnDefaultstring:ct9:cvrDefaultstring: dmi.product.family: Tablet dmi.product.name: Default string dmi.product.version: Default string dmi.sys.vendor: Default string ** Affects: linux (Ubuntu) Importance: Undecided Status: Confirmed ** Tags: amd64 apport-bug bionic -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1810207 Title: r8152 Ethernet adapter disconnects with a transmit queue timeout Status in linux package in Ubuntu: Confirmed Bug description: The r8152 Ethernet device in my Lattepanda board just disconnected from my network while I was uploading some files over the LAN. dmesg reported this: [1036155.155084] ------------[ cut here ]------------ [1036155.155099] NETDEV WATCHDOG: enx00e04c368b17 (r8152): transmit queue 0 timed out [1036155.155201] WARNING: CPU: 0 PID: 0 at /build/linux-vxxS7y/linux-4.15.0/net/sched/sch_generic.c:323 dev_watchdog+0x221/0x230 [1036155.155207] Modules linked in: xt_nat xt_tcpudp veth ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack libcrc32c br_netfilter bridge stp llc overlay aufs nls_iso8859_1 snd_soc_sst_cht_bsw_rt5645 axp288_fuel_gauge axp288_adc axp288_charger industrialio axp20x_pek extcon_axp288 gpio_keys intel_rapl intel_powerclamp coretemp kvm_intel kvm irqbypass punit_atom_debug crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd glue_helper cdc_ether cryptd usbnet intel_cstate r8152 mii cdc_acm snd_intel_sst_acpi snd_intel_sst_core mei_txe snd_soc_sst_atom_hifi2_platform snd_soc_acpi mei snd_seq_midi snd_soc_acpi_intel_match [1036155.155554] snd_seq_midi_event processor_thermal_device snd_rawmidi intel_soc_dts_iosf lpc_ich snd_hdmi_lpe_audio snd_seq snd_soc_rt5645 snd_soc_rl6231 snd_soc_core intel_hid snd_compress sparse_keymap snd_seq_device axp20x_i2c ac97_bus dw_dmac snd_pcm_dmaengine goodix axp20x snd_pcm dw_dmac_core snd_timer pwm_lpss_platform snd pwm_lpss soundcore spi_pxa2xx_platform 8250_dw int3400_thermal int3406_thermal acpi_thermal_rel int3403_thermal mac_hid int340x_thermal_zone soc_button_array intel_int0002_vgpio acpi_pad sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid mmc_block i915 i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm video sdhci_acpi sdhci [1036155.155901] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.15.0-43-generic #46-Ubuntu [1036155.155907] Hardware name: Default string Default string/Cherry Trail CR, BIOS DF-BI-7-S70CR200-CC55F-022-B 05/15/2018 [1036155.155920] RIP: 0010:dev_watchdog+0x221/0x230 [1036155.155929] RSP: 0018:ffff9b977fc03e58 EFLAGS: 00010286 [1036155.155941] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000006 [1036155.155948] RDX: 0000000000000007 RSI: 0000000000000092 RDI: ffff9b977fc16490 [1036155.155955] RBP: ffff9b977fc03e88 R08: 0000000000000001 R09: 000000000000043e [1036155.155963] R10: ffff9b977fc03ee0 R11: 0000000000000000 R12: 0000000000000001 [1036155.155969] R13: ffff9b97725c1000 R14: ffff9b97725c1478 R15: ffff9b976d4ede80 [1036155.155981] FS: 0000000000000000(0000) GS:ffff9b977fc00000(0000) knlGS:0000000000000000 [1036155.155988] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [1036155.155995] CR2: 00007ffe98d7e008 CR3: 000000017540a000 CR4: 00000000001006f0 [1036155.156003] Call Trace: [1036155.156014] <IRQ> [1036155.156039] ? dev_deactivate_queue.constprop.33+0x60/0x60 [1036155.156055] call_timer_fn+0x30/0x130 [1036155.156069] run_timer_softirq+0x3fb/0x450 [1036155.156081] ? ktime_get+0x43/0xa0 [1036155.156094] ? lapic_next_deadline+0x26/0x30 [1036155.156108] __do_softirq+0xe4/0x2bb [1036155.156124] irq_exit+0xb8/0xc0 [1036155.156135] smp_apic_timer_interrupt+0x79/0x130 [1036155.156147] apic_timer_interrupt+0x84/0x90 [1036155.156153] </IRQ> [1036155.156169] RIP: 0010:cpuidle_enter_state+0xa7/0x2f0 [1036155.156175] RSP: 0018:ffffffffad803e10 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff11 [1036155.156187] RAX: ffff9b977fc22880 RBX: 0003ae60abf28410 RCX: 000000000000001f [1036155.156193] RDX: 0003ae60abf28410 RSI: fffffff7e3411b99 RDI: 0000000000000000 [1036155.156200] RBP: ffffffffad803e50 R08: 0000000000000001 R09: 000000000000027c [1036155.156206] R10: ffffffffad803de0 R11: 0000000000001e6e R12: ffff9b977fc2c400 [1036155.156213] R13: 0000000000000003 R14: ffffffffad971cb8 R15: 0000000000000000 [1036155.156234] cpuidle_enter+0x17/0x20 [1036155.156248] call_cpuidle+0x23/0x40 [1036155.156259] do_idle+0x18c/0x1f0 [1036155.156272] cpu_startup_entry+0x73/0x80 [1036155.156287] rest_init+0xae/0xb0 [1036155.156302] start_kernel+0x4dc/0x4fd [1036155.156314] x86_64_start_reservations+0x24/0x26 [1036155.156324] x86_64_start_kernel+0x74/0x77 [1036155.156339] secondary_startup_64+0xa5/0xb0 [1036155.156348] Code: 38 00 49 63 4e e8 eb 92 4c 89 ef c6 05 f9 d7 d8 00 01 e8 83 35 fd ff 89 d9 48 89 c2 4c 89 ee 48 c7 c7 30 99 59 ad e8 df 95 80 ff <0f> 0b eb c0 90 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 [1036155.156580] ---[ end trace 5a05a48c7e597e05 ]--- [1036155.156645] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036157.235268] r8152 1-4:1.0 enx00e04c368b17: Tx status -2 [1036157.235353] r8152 1-4:1.0 enx00e04c368b17: Tx status -2 [1036157.235431] r8152 1-4:1.0 enx00e04c368b17: Tx status -2 [1036157.235514] r8152 1-4:1.0 enx00e04c368b17: Tx status -2 [1036160.274941] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036166.162723] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036171.026878] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036176.146244] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036181.266638] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036187.154421] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036192.274270] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036198.166433] r8152 1-4:1.0 enx00e04c368b17: Tx timeout [1036203.026072] r8152 1-4:1.0 enx00e04c368b17: Tx timeout The misbehaving device in this case is the board's integrated Ethernet, which appears as a USB device. The board also has a wifi device, but that device's driver is affected by https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1720580, so I had to blacklist r8723bs to stop systemd from spending 100% CPU journaling constant complaints from it. So the Ethernet device is the only working network adapter. Merely rebooting the system didn't fix anything; I had to shut down and actually power cycle the board to get networking to come back. If this keeps happening, it will make the machine useless for its intended use case as a low power server. It looks like the driver must have somehow gotten the device into a very bad state? ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: linux-image-4.15.0-43-generic 4.15.0-43.46 ProcVersionSignature: Ubuntu 4.15.0-43.46-generic 4.15.18 Uname: Linux 4.15.0-43-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.5 Architecture: amd64 AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/pcmC1D1p', '/dev/snd/pcmC1D0c', '/dev/snd/pcmC1D0p', '/dev/snd/controlC1', '/dev/snd/by-path', '/dev/snd/pcmC0D2p', '/dev/snd/pcmC0D1p', '/dev/snd/pcmC0D0p', '/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1: Date: Tue Jan 1 10:17:36 2019 InstallationDate: Installed on 2018-12-08 (23 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:8152 Realtek Semiconductor Corp. Bus 001 Device 004: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID) Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Default string Default string ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-43-generic root=UUID=a40848aa-7225-4844-805d-e726c496e2a2 ro quiet splash vt.handoff=1 PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon. RelatedPackageVersions: linux-restricted-modules-4.15.0-43-generic N/A linux-backports-modules-4.15.0-43-generic N/A linux-firmware 1.173.2 RfKill: SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 05/15/2018 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: DF-BI-7-S70CR200-CC55F-022-B dmi.board.asset.tag: Default string dmi.board.name: Cherry Trail CR dmi.board.vendor: AMI Corporation dmi.board.version: Default string dmi.chassis.asset.tag: Default string dmi.chassis.type: 9 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrDF-BI-7-S70CR200-CC55F-022-B:bd05/15/2018:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnCherryTrailCR:rvrDefaultstring:cvnDefaultstring:ct9:cvrDefaultstring: dmi.product.family: Tablet dmi.product.name: Default string dmi.product.version: Default string dmi.sys.vendor: Default string To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1810207/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp