Ethernet not stable 23.04 (RTL8168/8169)

Bug #2031537 reported by ahmed hanafi al-sayed
78
This bug affects 10 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned
Lunar
Fix Committed
Medium
Unassigned

Bug Description

[Impact]

Ethernet is unstable with Realtek RTL8168h/8111h NIC and kernel 6.2 resulting in frequent transmit queue timeouts. Related to ASPM. See 'original description' below.

[Test Case]

Just regular usage for an extended period of time. No transmit queue timeouts with RTL8168h/8111h NICs.

[Where Problems Could Occur]

Modification are isolated to the r8169 driver so only machine where that driver is loaded are affected. Issues could show up as kernel crashes, stack traces, non-fnuctional wired network.

[Original Description]

hello,
it is my first time reporting a pug hope it is the last

there is thread here https://ubuntuforums.org/showthread.php?t=2489146&p=14151513

another user experienced similar issue

my network work fine at startup keep working for hours then disconnect and cannot reconnect without a restart
I tested the cable using another pc and it was working repluged with no difference

I thought it is caused by nvidia driver so changed it and the problem persist

I use systemd-networkd

uname -a
Linux ahmed-OptiPlex-3090 6.2.0-27-generic #28-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 12 22:39:51 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

lspci:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 1b)

dmesg:

[Mon Aug 7 12:36:47 2023] audit: type=1400 audit(1691401007.881:150): apparmor="ALLOWED" operation="file_perm" class="file" profile="libreoffice-oosplash" name="/tmp/OSL_PIPE_1000_SingleOfficeIPC_74ed987bff2950ad36ea f76d6640d9dc" pid=14414 comm="oosplash" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000
[Mon Aug 7 12:39:19 2023] ------------[ cut here ]------------
[Mon Aug 7 12:39:19 2023] NETDEV WATCHDOG: enp2s0 (r8169): transmit queue 0 timed out
[Mon Aug 7 12:39:19 2023] WARNING: CPU: 4 PID: 0 at net/sched/sch_generic.c:525 dev_watchdog+0x23a/0x250
[Mon Aug 7 12:39:19 2023] Modules linked in: snd_seq_dummy snd_hrtimer nvidia_uvm(PO) bridge stp llc cfg80211 binfmt_misc nvidia_drm(PO) nls_iso8859_1 snd_ctl_led nvidia_modeset(PO) snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_hda_codec_realtek snd_sof_xtensa_dsp snd_hda_codec_generic snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi soundwire_bus snd_soc_core snd_hda_codec_hdmi snd_compress ac97_bus snd_pcm_dmaengine snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec intel_rapl_msr intel_rapl_common snd_hda_core intel_tcc_cooling x86_pkg_temp_thermal snd_hwdep intel_powerclamp coretemp nvidia(PO) snd_pcm kvm_intel snd_seq_midi i915 snd_seq_midi_event mei_hdcp mei_pxp snd_rawmidi kvm drm_buddy snd_seq ttm irqbypass drm_display_helper snd_seq_device crct10dif_pclmul cec polyval_clmulni snd_timer polyval_generic dell_wmi ghash_clmulni_intel rc_core
[Mon Aug 7 12:39:19 2023] sha512_ssse3 cmdlinepart aesni_intel drm_kms_helper snd mei_me spi_nor crypto_simd i2c_algo_bit dell_smbios cryptd soundcore dcdbas syscopyarea sysfillrect ledtrig_audio dell_wmi_sysman sysimgblt mei rapl mtd sparse_keymap dell_wmi_descriptor intel_pch_thermal intel_cstate wmi_bmof firmware_attributes_class ee1004 input_leds acpi_pad mac_hid msr parport_pc ppdev lp drm parport efi_pstore dmi_sysfs ip_tables x_tables autofs4 hid_generic usbhid hid ahci crc32_pclmul r8169 video intel_lpss_pci spi_intel_pci i2c_i801 libahci xhci_pci spi_intel intel_lpss realtek i2c_smbus xhci_pci_renesas idma64 wmi pinctrl_cannonlake
[Mon Aug 7 12:39:19 2023] CPU: 4 PID: 0 Comm: swapper/4 Tainted: P O 6.2.0-26-generic #26-Ubuntu
[Mon Aug 7 12:39:19 2023] Hardware name: Dell Inc. OptiPlex 3090/0492YX, BIOS 2.13.1 05/10/2023
[Mon Aug 7 12:39:19 2023] RIP: 0010:dev_watchdog+0x23a/0x250
[Mon Aug 7 12:39:19 2023] Code: 00 e9 2b ff ff ff 48 89 df c6 05 ba a6 d5 01 01 e8 3b 07 f8 ff 44 89 f1 48 89 de 48 c7 c7 f8 25 67 9d 48 89 c2 e8 06 09 29 ff <0f> 0b e9 1c ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00
[Mon Aug 7 12:39:19 2023] RSP: 0018:ffffb40c40254e38 EFLAGS: 00010246
[Mon Aug 7 12:39:19 2023] RAX: 0000000000000000 RBX: ffff997996868000 RCX: 0000000000000000
[Mon Aug 7 12:39:19 2023] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[Mon Aug 7 12:39:19 2023] RBP: ffffb40c40254e68 R08: 0000000000000000 R09: 0000000000000000
[Mon Aug 7 12:39:19 2023] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9979968684c8
[Mon Aug 7 12:39:19 2023] R13: ffff99799686841c R14: 0000000000000000 R15: 0000000000000000
[Mon Aug 7 12:39:19 2023] FS: 0000000000000000(0000) GS:ffff997da9300000(0000) knlGS:0000000000000000
[Mon Aug 7 12:39:19 2023] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Mon Aug 7 12:39:19 2023] CR2: 00000c4c01aa8000 CR3: 0000000329810004 CR4: 00000000003726e0
[Mon Aug 7 12:39:19 2023] Call Trace:
[Mon Aug 7 12:39:19 2023] <IRQ>
[Mon Aug 7 12:39:19 2023] ? __pfx_dev_watchdog+0x10/0x10
[Mon Aug 7 12:39:19 2023] call_timer_fn+0x29/0x160
[Mon Aug 7 12:39:19 2023] ? __pfx_dev_watchdog+0x10/0x10
[Mon Aug 7 12:39:19 2023] __run_timers+0x259/0x310
[Mon Aug 7 12:39:19 2023] run_timer_softirq+0x1d/0x40
[Mon Aug 7 12:39:19 2023] __do_softirq+0xd6/0x346
[Mon Aug 7 12:39:19 2023] ? hrtimer_interrupt+0x11f/0x250
[Mon Aug 7 12:39:19 2023] __irq_exit_rcu+0xa2/0xd0
[Mon Aug 7 12:39:19 2023] irq_exit_rcu+0xe/0x20
[Mon Aug 7 12:39:19 2023] sysvec_apic_timer_interrupt+0x92/0xd0
[Mon Aug 7 12:39:19 2023] </IRQ>
[Mon Aug 7 12:39:19 2023] <TASK>
[Mon Aug 7 12:39:19 2023] asm_sysvec_apic_timer_interrupt+0x1b/0x20
[Mon Aug 7 12:39:19 2023] RIP: 0010:cpuidle_enter_state+0xde/0x6f0
[Mon Aug 7 12:39:19 2023] Code: 7e 6e 63 e8 c4 57 42 ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 a2 3f 41 ff 80 7d d0 00 0f 85 eb 00 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 12 02 00 00 4d 63 ee 49 83 fd 09 0f 87 c7 04 00 00
[Mon Aug 7 12:39:19 2023] RSP: 0018:ffffb40c40147e28 EFLAGS: 00000246
[Mon Aug 7 12:39:19 2023] RAX: 0000000000000000 RBX: ffffd40c3fb00200 RCX: 0000000000000000
[Mon Aug 7 12:39:19 2023] RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000000
[Mon Aug 7 12:39:19 2023] RBP: ffffb40c40147e78 R08: 0000000000000000 R09: 0000000000000000
[Mon Aug 7 12:39:19 2023] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff9e6c31a0
[Mon Aug 7 12:39:19 2023] R13: 0000000000000003 R14: 0000000000000003 R15: 00000a2b379e6fd3
[Mon Aug 7 12:39:19 2023] ? cpuidle_enter_state+0xce/0x6f0
[Mon Aug 7 12:39:19 2023] ? tick_nohz_stop_tick+0x13a/0x210
[Mon Aug 7 12:39:19 2023] cpuidle_enter+0x2e/0x50
[Mon Aug 7 12:39:19 2023] cpuidle_idle_call+0x153/0x1e0
[Mon Aug 7 12:39:19 2023] do_idle+0x82/0x100
[Mon Aug 7 12:39:19 2023] cpu_startup_entry+0x1d/0x20
[Mon Aug 7 12:39:19 2023] start_secondary+0x122/0x160
[Mon Aug 7 12:39:19 2023] secondary_startup_64_no_verify+0xe5/0xeb
[Mon Aug 7 12:39:19 2023] </TASK>
[Mon Aug 7 12:39:19 2023] ---[ end trace 0000000000000000 ]---
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond == 1 (loop: 100, delay: 10).
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond == 1 (loop: 100, delay: 10).
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond == 1 (loop: 100, delay: 10).
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond == 1 (loop: 100, delay: 10).
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond == 1 (loop: 100, delay: 10).
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond == 1 (loop: 100, delay: 10).
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
[Mon Aug 7 12:39:19 2023] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
[Mon Aug 7 12:40:02 2023] net_ratelimit: 9 callbacks suppressed
[Mon Aug 7 12:40:02 2023] r8169 0000:02:00.0 enp2s0: rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
---
ProblemType: Bug
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CRDA: N/A
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
CurrentDmesg: Error: command ['pkexec', 'dmesg'] failed with exit code 126: Error executing command as another user: Request dismissed
DistroRelease: Ubuntu 23.04
InstallationDate: Installed on 2022-11-05 (286 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
IwConfig:
 lo no wireless extensions.

 enp3s0 no wireless extensions.
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 002: ID 413c:2107 Dell Computer Corp. KB212-B Quiet Key Keyboard
 Bus 001 Device 003: ID 0000:3825 USB OPTICAL MOUSE
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Lsusb-t:
 /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M
 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
     |__ Port 9: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
     |__ Port 10: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
MachineType: Dell Inc. OptiPlex 3090
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.2.0-27-generic root=UUID=50b2275f-09cb-470b-be5e-c7c89c191f36 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 6.2.0-27.28-generic 6.2.15
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-6.2.0-27-generic N/A
 linux-backports-modules-6.2.0-27-generic N/A
 linux-firmware 20230323.gitbcdcfbcf-0ubuntu1.5
RfKill:

Tags: wayland-session lunar
Uname: Linux 6.2.0-27-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip kvm libvirt lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/27/2023
dmi.bios.release: 2.14
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.14.0
dmi.board.name: 0492YX
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr2.14.0:bd06/27/2023:br2.14:svnDellInc.:pnOptiPlex3090:pvr:rvnDellInc.:rn0492YX:rvrA00:cvnDellInc.:ct3:cvr:sku0B8A:
dmi.product.family: OptiPlex
dmi.product.name: OptiPlex 3090
dmi.product.sku: 0B8A
dmi.sys.vendor: Dell Inc.
---
ProblemType: Bug
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 23.04
InstallationDate: Installed on 2022-11-05 (291 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 002: ID 413c:2107 Dell Computer Corp. KB212-B Quiet Key Keyboard
 Bus 001 Device 003: ID 0000:3825 USB OPTICAL MOUSE
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Lsusb-t:
 /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M
 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
     |__ Port 9: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
     |__ Port 10: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
MachineType: Dell Inc. OptiPlex 3090
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.2.0-27-generic root=UUID=bad00fc3-af76-403c-a8f8-e4b840d16e23 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 6.2.0-27.28-generic 6.2.15
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-6.2.0-27-generic N/A
 linux-backports-modules-6.2.0-27-generic N/A
 linux-firmware 20230323.gitbcdcfbcf-0ubuntu1.6
RfKill:

Tags: lunar wayland-session
Uname: Linux 6.2.0-27-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip kvm libvirt lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/27/2023
dmi.bios.release: 2.14
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.14.0
dmi.board.name: 0492YX
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr2.14.0:bd06/27/2023:br2.14:svnDellInc.:pnOptiPlex3090:pvr:rvnDellInc.:rn0492YX:rvrA00:cvnDellInc.:ct3:cvr:sku0B8A:
dmi.product.family: OptiPlex
dmi.product.name: OptiPlex 3090
dmi.product.sku: 0B8A
dmi.sys.vendor: Dell Inc.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2031537/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → linux (Ubuntu)
Revision history for this message
Juerg Haefliger (juergh) wrote :

Please run 'apport-collect 2031537' which will collect some data from your system and attach it to this bug.

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected lunar wayland-session
description: updated
Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : Lspci.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : Lspci-vt.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : Lsusb-v.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : PaInfo.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcEnviron.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcInterrupts.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcModules.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : UdevDb.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : WifiSyslog.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : acpidump.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : Re: Ethernet not staple 23.4 (RTL8168/8169)
Download full text (6.2 KiB)

hi I ran it , but the setting of the device has changed as I changed to NetworkManage instead of networkd with which the original pug was reported ,as I added (Samsung SSD 980 PRO 2TB (5B2QGXA7)) to my pc after which the pc wasn't able to connect at all.
after converting to NetworkManage luckily it connected for more than a day then disconnected and didn't reconnect without a restart

now I thought it may be caused by the bridge connection or networkd but i think the same problem still exist with NetworkManage

but some thing may happened between the new ssd and networkd may be

this is the new dmesg:

[Fri Aug 18 13:12:01 2023] audit: type=1326 audit(1692353522.033:201): auid=1000 uid=1000 gid=1000 ses=3 subj=snap.snap-store.ubuntu-software pid=2945 comm="pool-org.gnome." exe="/snap/snap-store/959/usr/bin/snap-store" sig=0 arch=c000003e syscall=93 compat=0 ip=0x7f064f827c4b code=0x50000
[Fri Aug 18 17:49:35 2023] ------------[ cut here ]------------
[Fri Aug 18 17:49:35 2023] NETDEV WATCHDOG: enp3s0 (r8169): transmit queue 0 timed out
[Fri Aug 18 17:49:35 2023] WARNING: CPU: 9 PID: 0 at net/sched/sch_generic.c:525 dev_watchdog+0x23a/0x250
[Fri Aug 18 17:49:35 2023] Modules linked in: snd_seq_dummy snd_hrtimer binfmt_misc nvidia_uvm(PO) nvidia_drm(PO) intel_rapl_msr intel_rapl_common intel_tcc_cooling nvidia_modeset(PO) x86_pkg_temp_thermal intel_powerclamp snd_ctl_led snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi snd_hda_codec_realtek soundwire_bus snd_hda_codec_generic coretemp snd_soc_core nls_iso8859_1 snd_compress ac97_bus kvm_intel snd_pcm_dmaengine kvm nvidia(PO) snd_hda_codec_hdmi irqbypass i915 snd_hda_intel crct10dif_pclmul polyval_clmulni snd_intel_dspcfg mei_hdcp polyval_generic snd_seq_midi snd_intel_sdw_acpi mei_pxp ghash_clmulni_intel drm_buddy snd_hda_codec sha512_ssse3 snd_seq_midi_event aesni_intel ttm snd_rawmidi dell_wmi drm_display_helper crypto_simd snd_hda_core snd_seq cryptd snd_hwdep cec rapl snd_pcm rc_core
[Fri Aug 18 17:49:35 2023] snd_seq_device dell_smbios snd_timer intel_cstate drm_kms_helper cmdlinepart i2c_algo_bit snd syscopyarea dcdbas mei_me sysfillrect dell_wmi_sysman spi_nor ledtrig_audio sysimgblt soundcore sparse_keymap intel_pch_thermal mei mtd firmware_attributes_class dell_wmi_descriptor ee1004 wmi_bmof input_leds acpi_pad mac_hid msr parport_pc ppdev lp parport drm efi_pstore dmi_sysfs ip_tables x_tables autofs4 hid_generic usbhid hid nvme crc32_pclmul nvme_core r8169 ahci i2c_i801 intel_lpss_pci spi_intel_pci video xhci_pci spi_intel i2c_smbus intel_lpss libahci realtek nvme_common xhci_pci_renesas idma64 wmi pinctrl_cannonlake
[Fri Aug 18 17:49:35 2023] CPU: 9 PID: 0 Comm: swapper/9 Tainted: P O 6.2.0-27-generic #28-Ubuntu
[Fri Aug 18 17:49:35 2023] Hardware name: Dell Inc. OptiPlex 3090/0492YX, BIOS 2.14.0 06/27/2023
[Fri Aug 18 17:49:35 2023] RIP: 0010:dev_watchdog+0x23a/0x250
[Fri Aug 18 17:49:35 2023] Code: 00 e9 2b ff ff ff 48 89 df c6 05 6a 8b 75 01 01 e8 3b 07 f8 ff 44 ...

Read more...

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2031537

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : AlsaInfo.txt

apport information

description: updated
Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : CurrentDmesg.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : IwConfig.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : Lspci.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : Lspci-vt.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : Lsusb-v.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : PaInfo.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcEnviron.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcInterrupts.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : ProcModules.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : UdevDb.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : WifiSyslog.txt

apport information

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote : acpidump.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Juerg Haefliger (juergh)
summary: - Ethernet not staple 23.4 (RTL8168/8169)
+ Ethernet not stable 23.4 (RTL8168/8169)
summary: - Ethernet not stable 23.4 (RTL8168/8169)
+ Ethernet not stable 23.04 (RTL8168/8169)
Revision history for this message
Juerg Haefliger (juergh) wrote :

https://bugzilla.kernel.org/show_bug.cgi?id=216884

While the bug report is for LoongArch, there are comments about issues on x86 as well.

Revision history for this message
Juerg Haefliger (juergh) wrote :

Can you add 'pcie_aspm=off' to the kernel commandline and let us know if that makes a difference?

Revision history for this message
Javinator9889 (javinator9889) wrote :

I'll change it and let you know if something is different.

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):

I did the following
- ran sudo nano /etc/default/grub
- changed
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=off"
saved the changes
- ran sudo update-grub
the network was off when I did that so I restarted the system and the network disconnected again within mins

I ran 'sudo sysctl -a | grep pcie' and there is no output i ran pcie_aspm=off then no output again for 'sudo sysctl -a | grep pcie'

is there something I am doing wrong here ?

Revision history for this message
Juerg Haefliger (juergh) wrote :

This is not a sysctl so you want see it there. Try:
$ cat /proc/cmdline

And post the output of dmesg.

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):

thanks for your help the network disconnected again within half an hour I restarted the pc this is dmesg after restart

I deleted dmesg outbut so it do not distract any one 'sudo journalctl -b -1' output is at comment #43

26 comments hidden view all 106 comments
Revision history for this message
Juerg Haefliger (juergh) wrote (last edit ):

https://<email address hidden>/
https://<email address hidden>/
https://<email address hidden>/

Revision history for this message
Juerg Haefliger (juergh) wrote :
Revision history for this message
Juerg Haefliger (juergh) wrote :
Revision history for this message
Garry (garry0garry) wrote :

"Fixed with kernel v6.4.7". If so, what to do with 6.2?..

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):

great news thanks,
should we upgrade kernel or wait for ubuntu 23.10 ?

Revision history for this message
Juerg Haefliger (juergh) wrote :

There seems to be two issues. For those affected, can you please post the output of `sudo journalctl --dmesg | grep r8169`?

1 comments hidden view all 106 comments
Revision history for this message
Garry (garry0garry) wrote :

$ sudo journalctl --dmesg | grep r8169
сен 01 19:50:04 MyHomeAssistant kernel: r8169 0000:02:00.0 eth0: RTL8168h/8111h, 7c:83:34:b6:8a:3b, XID 541, IRQ 127
сен 01 19:50:04 MyHomeAssistant kernel: r8169 0000:02:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
сен 01 19:50:04 MyHomeAssistant kernel: r8169 0000:03:00.0 eth1: RTL8168h/8111h, 7c:83:34:b6:8a:3c, XID 541, IRQ 128
сен 01 19:50:04 MyHomeAssistant kernel: r8169 0000:03:00.0 eth1: jumbo features [frames: 9194 bytes, tx checksumming: ko]
сен 01 19:50:04 MyHomeAssistant kernel: r8169 0000:03:00.0 enp3s0: renamed from eth1
сен 01 19:50:04 MyHomeAssistant kernel: r8169 0000:02:00.0 enp2s0: renamed from eth0
сен 01 19:50:10 MyHomeAssistant kernel: Generic FE-GE Realtek PHY r8169-0-200:00: attached PHY driver (mii_bus:phy_addr=r8169-0-200:00, irq=MAC)
сен 01 19:50:10 MyHomeAssistant kernel: r8169 0000:02:00.0 enp2s0: Link is Down
сен 01 19:50:10 MyHomeAssistant kernel: Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
сен 01 19:50:10 MyHomeAssistant kernel: r8169 0000:03:00.0 enp3s0: Link is Down
сен 01 19:50:14 MyHomeAssistant kernel: r8169 0000:02:00.0 enp2s0: Link is Up - 1Gbps/Full - flow control rx/tx

Revision history for this message
Garry (garry0garry) wrote :

After installing the 6.2.0.26 kernel, there were such messages:
"Generic FE-GE Realtek PHY r8169-0-200:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!"

$ sudo journalctl -b 1 --dmesg | grep r8169
The number after -b is the reboot number.

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):
Download full text (5.4 KiB)

these are multible ones
################
Aug 20 14:10:02 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 eth0: RTL8168h/8111h, c0:25:a5:b6:a9:22, XID 541, IRQ 140
Aug 20 14:10:02 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
Aug 20 14:10:02 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: renamed from eth0
Aug 20 14:10:04 ahmed-OptiPlex-3090 kernel: Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
Aug 20 14:10:04 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: Link is Down
Aug 20 14:10:08 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow control off
Aug 20 14:10:14 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0: invalid VPD tag 0x00 (size 0) at offset 0; assume missing optional EEPROM
################################
Sep 04 14:16:11 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 eth0: RTL8168h/8111h, c0:25:a5:b6:a9:22, XID 541, IRQ 127
Sep 04 14:16:11 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
Sep 04 14:16:11 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: renamed from eth0
Sep 04 14:16:13 ahmed-OptiPlex-3090 kernel: Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
Sep 04 14:16:13 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: Link is Down
Sep 04 14:16:14 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0: invalid VPD tag 0x00 (size 0) at offset 0; assume missing optional EEPROM
Sep 04 14:16:16 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow control off
###########################
[ 0.877480] r8169 0000:03:00.0 eth0: RTL8168h/8111h, c0:25:a5:b6:a9:22, XID 541, IRQ 128
[ 0.877484] r8169 0000:03:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[ 1.373158] r8169 0000:03:00.0 enp3s0: renamed from eth0
[ 4.220793] Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
[ 4.425242] r8169 0000:03:00.0 enp3s0: Link is Down
[ 4.918006] r8169 0000:03:00.0: invalid VPD tag 0x00 (size 0) at offset 0; assume missing optional EEPROM
[ 8.002076] r8169 0000:03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow control off
[23646.496565] NETDEV WATCHDOG: enp3s0 (r8169): transmit queue 0 timed out
[23646.496612] polyval_clmulni snd_seq_midi polyval_generic snd_seq_midi_event ghash_clmulni_intel sha512_ssse3 drm_buddy aesni_intel ttm crypto_simd snd_rawmidi cryptd drm_display_helper rapl snd_seq cec cmdlinepart dell_smbios spi_nor rc_core dcdbas snd_seq_device ledtrig_audio intel_cstate dell_wmi_sysman firmware_attributes_class snd_timer mtd sparse_keymap dell_wmi_descriptor drm_kms_helper ee1004 wmi_bmof mei_me snd i2c_algo_bit syscopyarea soundcore sysfillrect mei sysimgblt intel_pch_thermal input_leds acpi_pad mac_hid msr parport_pc ppdev lp parport drm efi_pstore dmi_sysfs ip_tables x_tables autofs4 hid_generic usbhid hid nvme crc32_pclmul nvme_core r8169 ahci intel_lpss_pci i2c_i801 spi_intel_pci xhci_pci intel_lpss spi_intel realtek i2c_smbus libahci nvme_common...

Read more...

Revision history for this message
Juerg Haefliger (juergh) wrote :

Your NIC is a chip 46. From the kernel source:

drivers/net/ethernet/realtek/r8169_main.c: [RTL_GIGA_MAC_VER_46] = {"RTL8168h/8111h", FIRMWARE_8168H_2},

So likely this since `pcie_aspm=off` helps somewhat:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=90ca51e8c654

Revision history for this message
Juerg Haefliger (juergh) wrote :

I've built a test kernel with the referenced fixes:
https://kernel.ubuntu.com/~juergh/lp2031537/

Can somebody test it please? Note that it's an unsigned kernel so you need to temporarily disable SecureBoot in the BIOS to be able to boot it. Install linux-image-unsigned, linux-modules and probably linux-modules-extra.

Let us know if that fixes the issue.

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):
Download full text (3.6 KiB)

Hi @Juerg,
thanks a lot,

I downloaded

linux-image-unsigned-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb
linux-modules-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb
linux-modules-extra-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb
linux-modules-ipu6-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb
linux-modules-ivsc-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb
linux-modules-iwlwifi-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb

put them in a folder and ran 'sudo dpkg -i *.deb'

and there is some error

Selecting previously unselected package linux-image-unsigned-6.2.0-32-generic.
dpkg: regarding linux-image-unsigned-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb containing linux-image-unsigned-6.2.0-32-generic:
 linux-image-unsigned-6.2.0-32-generic conflicts with linux-image-6.2.0-32-generic
  linux-image-6.2.0-32-generic (version 6.2.0-32.32) is present and installed.

dpkg: error processing archive linux-image-unsigned-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb (--install):
 conflicting packages - not installing linux-image-unsigned-6.2.0-32-generic
(Reading database ... 255755 files and directories currently installed.)
Preparing to unpack linux-modules-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb ...
Unpacking linux-modules-6.2.0-32-generic (6.2.0-32.32+lp2031537) over (6.2.0-32.32) ...
Preparing to unpack linux-modules-extra-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb ...
Unpacking linux-modules-extra-6.2.0-32-generic (6.2.0-32.32+lp2031537) over (6.2.0-32.32) ...
Selecting previously unselected package linux-modules-ipu6-6.2.0-32-generic.
Preparing to unpack linux-modules-ipu6-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb ...
Unpacking linux-modules-ipu6-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Selecting previously unselected package linux-modules-ivsc-6.2.0-32-generic.
Preparing to unpack linux-modules-ivsc-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb ...
Unpacking linux-modules-ivsc-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Selecting previously unselected package linux-modules-iwlwifi-6.2.0-32-generic.
Preparing to unpack linux-modules-iwlwifi-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb ...
Unpacking linux-modules-iwlwifi-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Setting up linux-modules-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Setting up linux-modules-extra-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Setting up linux-modules-ipu6-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Setting up linux-modules-ivsc-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Setting up linux-modules-iwlwifi-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Processing triggers for linux-image-6.2.0-32-generic (6.2.0-32.32) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-32-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Found linux image: /boot/vmlinuz-6.2.0-31-generic
Found initrd image: /boot/initrd.img-6.2.0-31-generic
Found memt...

Read more...

Revision history for this message
Juerg Haefliger (juergh) wrote :

Ah rats. You need to remove linux-image-6.2.0-32-generic first:

$ dpkg -r linux-image-6.2.0-32-generic

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):

I do not know how this happend my kernel was 31 not 32

should I move to 6.5 directly if the fix is there already

any way I ran dpkg -r linux-image-6.2.0-32-generic

dpkg: dependency problems prevent removal of linux-image-6.2.0-32-generic:
 linux-signatures-nvidia-6.2.0-32-generic depends on linux-image-6.2.0-32-generic | linux-image-unsigned-6.2.0-32-generic; however:
  Package linux-image-6.2.0-32-generic is to be removed.
  Package linux-image-unsigned-6.2.0-32-generic is not installed.
 linux-modules-nvidia-470-6.2.0-32-generic depends on linux-image-6.2.0-32-generic | linux-image-unsigned-6.2.0-32-generic; however:
  Package linux-image-6.2.0-32-generic is to be removed.
  Package linux-image-unsigned-6.2.0-32-generic is not installed.
 linux-modules-iwlwifi-6.2.0-32-generic depends on linux-image-6.2.0-32-generic | linux-image-unsigned-6.2.0-32-generic; however:
  Package linux-image-6.2.0-32-generic is to be removed.
  Package linux-image-unsigned-6.2.0-32-generic is not installed.
 linux-modules-ivsc-6.2.0-32-generic depends on linux-image-6.2.0-32-generic | linux-image-unsigned-6.2.0-32-generic; however:
  Package linux-image-6.2.0-32-generic is to be removed.
  Package linux-image-unsigned-6.2.0-32-generic is not installed.
 linux-modules-ipu6-6.2.0-32-generic depends on linux-image-6.2.0-32-generic | linux-image-unsigned-6.2.0-32-generic; however:
  Package linux-image-6.2.0-32-generic is to be removed.
  Package linux-image-unsigned-6.2.0-32-generic is not installed.
 linux-image-generic-hwe-22.04 depends on linux-image-6.2.0-32-generic.
 linux-image-generic depends on linux-image-6.2.0-32-generic.

dpkg: error processing package linux-image-6.2.0-32-generic (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 linux-image-6.2.0-32-generic

Revision history for this message
Juerg Haefliger (juergh) wrote :

OK. We can force remove that package temporarily but need to fix the system again after you've tested the kernel.

$ dpkg -r --force-depends linux-image-6.2.0-32-generic
$ dpkg -i linux-image-unsigned-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb

Then check:
dpkg -l | grep lp2031537
ii linux-image-unsigned-6.2.0-32-generic 6.2.0-32.32+lp2031537 amd64 Linux kernel image for version 6.2.0 on 64 bit x86 SMP
ii linux-modules-6.2.0-32-generic 6.2.0-32.32+lp2031537 amd64 Linux kernel extra modules for version 6.2.0 on 64 bit x86 SMP
ii linux-modules-extra-6.2.0-32-generic 6.2.0-32.32+lp2031537 amd64 Linux kernel extra modules for version 6.2.0 on 64 bit x86 SMP

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):

how can I fix the system after that ?

may I change the driver away from nvidia this way there is no dependencies

Revision history for this message
Juerg Haefliger (juergh) wrote :

Afterwards remove all the installed lp2031537 packages and reinstall 6.2.0-32.32 from the archive. Something like:
$ dpkg -l | grep lp2031537 | awk '{print $2}' | xargs sudo dpkg -r --force-depends
$ sudo sudo apt install --reinstall linux-image-6.2.0-32-generic

Then check:
$ dpkg -l | grep linux-

And verify that all the packages are 'ii'.

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):
Download full text (3.9 KiB)

thanks @Juerg Haefliger,
I hope I am booting the right kernel now
(Reading database ... 254994 files and directories currently installed.)
Preparing to unpack linux-image-unsigned-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb ...
Unpacking linux-image-unsigned-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Preparing to unpack linux-modules-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb ...
Unpacking linux-modules-6.2.0-32-generic (6.2.0-32.32+lp2031537) over (6.2.0-32.32+lp2031537) ...
Preparing to unpack linux-modules-extra-6.2.0-32-generic_6.2.0-32.32+lp2031537_amd64.deb ...
Unpacking linux-modules-extra-6.2.0-32-generic (6.2.0-32.32+lp2031537) over (6.2.0-32.32+lp2031537) ...
Setting up linux-modules-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Setting up linux-modules-extra-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
Setting up linux-image-unsigned-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
I: /boot/vmlinuz is now a symlink to vmlinuz-6.2.0-32-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.2.0-32-generic
Processing triggers for linux-image-unsigned-6.2.0-32-generic (6.2.0-32.32+lp2031537) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-32-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-32-generic
Found initrd image: /boot/initrd.img-6.2.0-32-generic
Found linux image: /boot/vmlinuz-6.2.0-31-generic
Found initrd image: /boot/initrd.img-6.2.0-31-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

dpkg -l | grep 6.2.0-32
ii linux-headers-6.2.0-32 6.2.0-32.32 all Header files related to Linux kernel version 6.2.0
ii linux-headers-6.2.0-32-generic 6.2.0-32.32 amd64 Linux kernel headers for version 6.2.0 on 64 bit x86 SMP
rc linux-image-6.2.0-32-generic 6.2.0-32.32 amd64 Signed kernel image generic
ii linux-image-unsigned-6.2.0-32-generic 6.2.0-32.32+lp2031537 amd64 Linux kernel image for version 6.2.0 on 64 bit x86 SMP
ii linux-libc-dev:amd64 6.2.0-32.32 amd64 Linux Kernel Headers for development
ii linux-modules-6.2.0-32-generic 6.2.0-32.32+lp2031537 amd64 Linux kernel extra modules for version 6.2.0 on 64 bit x86 SMP
ii linux-modules-extra-6.2.0-32-generic 6.2.0-32.32+lp2031537 amd64 Linux kernel extra modules for version 6.2.0 on 64 bit x86 SMP
ii linux-modules-ipu6-6.2.0-32-generic 6.2.0-32.32+lp2031537 amd64 Linux kernel ipu6 modules for version 6.2.0-32
ii li...

Read more...

1 comments hidden view all 106 comments
Revision history for this message
Juerg Haefliger (juergh) wrote :

That looks good. Reboot and select the kernel in grub and then check with 'uname -a'. Don't forget to disable SecureBoot first (in the BIOS).

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):

thanks @Juerg Haefliger,

I am on the test kernel now with pcie_aspm=off for 19 hours : 15 mins hope the network never let me down again I will modify this comment if any change happened

uname -a
Linux OptiPlex-3090 6.2.0-32-generic #32+lp2031537 SMP PREEMPT_DYNAMIC Tue Sep 5 07:27:25 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

sudo dmesg
[sudo] password for :
[ 0.000000] Linux version 6.2.0-32-generic (ubuntu@ip-10-0-61-144) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.40) #32+lp2031537 SMP PREEMPT_DYNAMIC Tue Sep 5 07:27:25 UTC 2023 (Ubuntu 6.2.0-32.32+lp2031537-generic 6.2.16)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.2.0-32-generic root=UUID=bad00fc3-af76-403c-a8f8-e4b840d16e23 ro quiet splash pcie_aspm=off vt.handoff=7

Revision history for this message
Juerg Haefliger (juergh) wrote :

Remove 'pcie_aspm=off', that should not be necessary anymore.

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):

thanks @Juerg Haefliger I reversed my comment #38 I want it to be up for as long as possible to test it so if I don't have to I will keep is running till the next reboot when pcie_aspm=off would be removed

Revision history for this message
Juerg Haefliger (juergh) wrote :

The test is meaningless with 'pcie_aspm=off`. The test kernel has to work without that parameter and if it doesn't it means the fix is no good. Please test without the parameter.

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):

done @Juerg Haefliger I restarted the pc will monitor and update this comment if any thing happened

uname -a

Linux OptiPlex-3090 6.2.0-32-generic #32+lp2031537 SMP PREEMPT_DYNAMIC Tue Sep 5 07:27:25 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

sudo dmesg

[sudo] password for :
[ 0.000000] Linux version 6.2.0-32-generic (ubuntu@ip-10-0-61-144) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.40) #32+lp2031537 SMP PREEMPT_DYNAMIC Tue Sep 5 07:27:25 UTC 2023 (Ubuntu 6.2.0-32.32+lp2031537-generic 6.2.16)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.2.0-32-generic root=UUID=bad00fc3-af76-403c-a8f8-e4b840d16e23 ro quiet splash vt.handoff=7

Revision history for this message
Patrick Ostler (patchos) wrote (last edit ):

Hi Juerg,

Just wanted to report that the test kernel is working for me -- I had the exact scenario described in duplicate #2031448 that was folded into this bug#.

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote (last edit ):

this session was up for around 25 hours , I wanted to make it up for longer to test but the electricity gone down , I hope it is enough to test the fix I will post any problem if detected

sudo journalctl -b -2 --dmesg | grep r8169
Sep 07 14:31:42 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
Sep 07 14:31:42 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 eth0: RTL8168h/8111h, c0:25:a5:b6:a9:22, XID 541, IRQ 140
Sep 07 14:31:42 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
Sep 07 14:31:42 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: renamed from eth0
Sep 07 14:31:43 ahmed-OptiPlex-3090 kernel: Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
Sep 07 14:31:44 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: Link is Down
Sep 07 14:31:44 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0: invalid VPD tag 0x00 (size 0) at offset 0; assume missing optional EEPROM
Sep 07 14:31:47 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow control off
Sep 07 17:57:55 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: Link is Down
Sep 07 18:01:15 ahmed-OptiPlex-3090 kernel: r8169 0000:03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow control off

the ups is not working the electricity went out again but during the time it was up there is nothing different than appove , I hope I can test it for longer period

I hope the fix will be merged soon with the the kernel

Juerg Haefliger (juergh)
description: updated
description: updated
description: updated
Stefan Bader (smb)
Changed in linux (Ubuntu Lunar):
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Larry Chiang (larry0806) wrote :

Dear Team,

   Any news? When will release the official update for this issue? Or need to fix it manually?

   Thank you

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote :

Dear @Larry,

I tested the kernel in comment #78 and the bug didn't show up again it is a test kernel , but Garry in comment 70 mentioned it is fixed already in kernel 6.4 I have no problem keeping the test kernel till ubuntu 23.10 release with kernel 6.5

Revision history for this message
Juerg Haefliger (juergh) wrote :

Patches are in the pipeline:
https://lists.ubuntu.com/archives/kernel-team/2023-September/142665.html

You just need to wait until an updated kernel falls out on the other side. SRU release schedule:
https://kernel.ubuntu.com

Changed in linux (Ubuntu Lunar):
status: In Progress → Fix Committed
Revision history for this message
Larry Chiang (larry0806) wrote :

Dear Team,

   I'm looking for update on ubuntu 22.04, if there have no plan to update this, I need some quick solution...

   Or rollback to kernel 5... or please provide how to migrate kernel to 6.4 or 6.5 on 22.04

   Thank you

Revision history for this message
Juerg Haefliger (juergh) wrote :

This will automatically roll back into the 22.04 HWE kernel. There's no quick solution other than running an unsupported test kernel or the GA 5.15 kernel.

Revision history for this message
Adriano (blkzoid) wrote :

I had the same issue. I changed ASPM to disable in BIOS and now issue gone.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux/6.2.0-36.37 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-lunar-linux' to 'verification-done-lunar-linux'. If the problem still exists, change the tag 'verification-needed-lunar-linux' to 'verification-failed-lunar-linux'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-lunar-linux-v2 verification-needed-lunar-linux
Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote :

hi all,

when I changed setting to get pre release the kernel wasn't there yet

I downloaded those files

linux-headers-6.2.0-36_6.2.0-36.37_all.deb
linux-headers-6.2.0-36-generic_6.2.0-36.37_amd64.deb
linux-image-unsigned-6.2.0-36-generic_6.2.0-36.37_amd64.deb
linux-modules-6.2.0-36-generic_6.2.0-36.37_amd64.deb
linux-modules-extra-6.2.0-36-generic_6.2.0-36.37_amd64.deb

from https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+build/26751907

ran sudo dpkg -i *.deb in the file I created specifically to put them in

uname -a
Linux OptiPlex-3090 6.2.0-36-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 4 10:14:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

this is my running kernel now I hope it is all okay

tags: added: verification-done-lunar-linux
removed: verification-needed-lunar-linux
Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote :

I monitored for 3 days with no problem I changed the tag so that the change don't drop automatically the bug may appear after longer period if so I will change it

Revision history for this message
Garry (garry0garry) wrote :
Download full text (4.5 KiB)

6.2.0-34-generic (release)
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash fsck.mode=force fsck.repair=yes pcie_aspm=off"

When the driver fails, NetworkManager shows "active (running)" and /sys/class/net/enp2s0/speed shows "1000" :-(

kernel: ------------[ cut here ]------------
kernel: NETDEV WATCHDOG: enp2s0 (r8169): transmit queue 0 timed out
kernel: WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:525 dev_watchdog+0x21f/0x230
kernel: Modules linked in: rfcomm tls xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables libc>
kernel: snd_rawmidi rc_core crct10dif_pclmul btusb snd_seq polyval_generic ghash_clmulni_intel drm_kms_helper btrtl btbcm snd_seq_device sha512_ssse3 i2c_algo_bit btintel snd_timer aesni_intel syscopyarea i>
kernel: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.2.0-34-generic #34~22.04.1-Ubuntu
kernel: Hardware name: AZW U59/U59, BIOS JTKT001 05/05/2022
kernel: RIP: 0010:dev_watchdog+0x21f/0x230
kernel: Code: 00 e9 31 ff ff ff 4c 89 e7 c6 05 96 6c 78 01 01 e8 26 00 f8 ff 44 89 f1 4c 89 e6 48 c7 c7 38 5c c4 aa 48 89 c2 e8 01 d6 2b ff <0f> 0b e9 22 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90
kernel: RSP: 0018:ffffb28c4007ce70 EFLAGS: 00010246
kernel: RAX: 0000000000000000 RBX: ffff9b8fd24784c8 RCX: 0000000000000000
kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
kernel: RBP: ffffb28c4007ce98 R08: 0000000000000000 R09: 0000000000000000
kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffff9b8fd2478000
kernel: R13: ffff9b8fd247841c R14: 0000000000000000 R15: 0000000000000000
kernel: FS: 0000000000000000(0000) GS:ffff9b9330080000(0000) knlGS:0000000000000000
kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 000000c000133010 CR3: 00000001d9210000 CR4: 0000000000350ee0
kernel: Call Trace:
kernel: <IRQ>
kernel: ? show_regs+0x72/0x90
kernel: ? dev_watchdog+0x21f/0x230
kernel: ? __warn+0x8d/0x160
kernel: ? dev_watchdog+0x21f/0x230
kernel: ? report_bug+0x1bb/0x1d0
kernel: ? irq_work_queue+0x32/0x80
kernel: ? handle_bug+0x46/0x90
kernel: ? exc_invalid_op+0x19/0x80
kernel: ? asm_exc_invalid_op+0x1b/0x20
kernel: ? dev_watchdog+0x21f/0x230
kernel: ? __pfx_dev_watchdog+0x10/0x10
kernel: call_timer_fn+0x29/0x160
kernel: ? __pfx_dev_watchdog+0x10/0x10
kernel: __run_timers.part.0+0x1fb/0x2b0
kernel: ? ktime_get+0x43/0xc0
kernel: ? __pfx_tick_sched_timer+0x10/0x10
kernel: ? lapic_next_deadline+0x2c/0x50
kernel: ? clockevents_program_event+0xb2/0x140
kernel: run_timer_softirq+0x2a/0x60
kernel: __do_softirq+0xda/0x330
kernel: ? hrtimer_interrupt+0x12b/0x250
kernel: __irq_exit_rcu+0xa2/0xd0
kernel: irq_exit_rcu+0xe/0x20
kernel: sysvec_apic_timer_interrupt+0x96/0xb0
kernel: </IRQ>
kernel: <TASK>
kernel: asm_sysvec_apic_timer_interrupt+0x1b/0x20
kernel: RIP: 0010:cpuidle_enter_state+0xde/0x6f0
kernel: Code: 61 11 56 e8 a4 2b 45 ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 52 0a 44 ff 80 7d d0 00 0f 85 e8 00 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 0f 02 00 00 4d 63 ee 49 83 fd 09 0f 87 c4 04 00 00
kernel: RSP: 0018:ffffb28c4012be28 EFLAGS: 00000246
k...

Read more...

Revision history for this message
ahmed hanafi al-sayed (ahmed-hanafi-data) wrote :

Hi garry could you test the kernel in comment #101 please

Garry (garry0garry)
Changed in linux (Ubuntu Lunar):
status: Fix Committed → Fix Released
Revision history for this message
Juerg Haefliger (juergh) wrote :

Please do not change the status of the ticket manually. It's automatically updated by automation.

Changed in linux (Ubuntu Lunar):
status: Fix Released → Fix Committed
Displaying first 40 and last 40 comments. View all 106 comments or add a comment.