[regression] r8169 network device unable to detect link on x86 arch

Bug #1838477 reported by Roman Valov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Fix Committed
Undecided
Unassigned
Disco
Won't Fix
Undecided
Unassigned

Bug Description

=== SRU Justification ===
[Impact]
r8169 network device unable to detect link after boot.

[Fix]
Don't use MSI for older r8169 chips.

[Test]
User confirmed the issue is fixed with the patch applied.

[Regression Potential]
Low. This reverts affected r8169 device to use INTx, which is more
reliable on older hardware.

=== Original Bug Report ===
Since changes were introduced with 4.15.0-24 (LP #1752772), the r8169 driver became unusable on x86 machines (16.04 and 18.04 distributions). The device is always in link down state.
---
ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version k4.15.0-23-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: i386
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer': 'amixer'
Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer': 'amixer'
DistroRelease: Ubuntu 18.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
MachineType: MICRO-STAR INTERNATIONAL CO., LTD U90/U100
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-23-generic root=UUID=48a31456-880b-4326-960e-2c7e4b8f476d ro splash quiet vt.handoff=1
ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-23-generic N/A
 linux-backports-modules-4.15.0-23-generic N/A
 linux-firmware 1.173.9
Tags: bionic
Uname: Linux 4.15.0-23-generic i686
UnreportableReason: This report is about a package that is not installed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: False
dmi.bios.date: 12/01/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.3
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: U90/U100
dmi.board.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.board.version: Ver.001
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 10
dmi.chassis.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.chassis.version: Ver.001
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.3:bd12/01/2009:svnMICRO-STARINTERNATIONALCO.,LTD:pnU90/U100:pvrVer.001:rvnMICRO-STARINTERNATIONALCO.,LTD:rnU90/U100:rvrVer.001:cvnMICRO-STARINTERNATIONALCO.,LTD:ct10:cvrVer.001:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: U90/U100
dmi.product.version: Ver.001
dmi.sys.vendor: MICRO-STAR INTERNATIONAL CO., LTD
---
ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version k4.15.0-23-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: i386
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer': 'amixer'
Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer': 'amixer'
DistroRelease: Ubuntu 18.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
MachineType: MICRO-STAR INTERNATIONAL CO., LTD U90/U100
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-23-generic root=UUID=48a31456-880b-4326-960e-2c7e4b8f476d ro splash quiet vt.handoff=1
ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-23-generic N/A
 linux-backports-modules-4.15.0-23-generic N/A
 linux-firmware 1.173.9
Tags: bionic
Uname: Linux 4.15.0-23-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 12/01/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.3
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: U90/U100
dmi.board.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.board.version: Ver.001
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 10
dmi.chassis.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.chassis.version: Ver.001
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.3:bd12/01/2009:svnMICRO-STARINTERNATIONALCO.,LTD:pnU90/U100:pvrVer.001:rvnMICRO-STARINTERNATIONALCO.,LTD:rnU90/U100:rvrVer.001:cvnMICRO-STARINTERNATIONALCO.,LTD:ct10:cvrVer.001:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: U90/U100
dmi.product.version: Ver.001
dmi.sys.vendor: MICRO-STAR INTERNATIONAL CO., LTD

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 1838477

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
Changed in linux (Ubuntu):
assignee: nobody → Kai-Heng Feng (kaihengfeng)
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please run `apport-collect 1838477`.

Changed in linux (Ubuntu):
assignee: Kai-Heng Feng (kaihengfeng) → nobody
Revision history for this message
Roman Valov (reddot) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected bionic
description: updated
Revision history for this message
Roman Valov (reddot) wrote : CRDA.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : Lspci.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : Lsusb.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : PciMultimedia.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : ProcCpuinfoMinimal.txt

apport information

description: updated
Revision history for this message
Roman Valov (reddot) wrote : AlsaDevices.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : CRDA.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : Lspci.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : Lsusb.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : PciMultimedia.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : ProcEnviron.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : ProcModules.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : RfKill.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : UdevDb.txt

apport information

Revision history for this message
Roman Valov (reddot) wrote : WifiSyslog.txt

apport information

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.3-rc2/

It contains several fixes for r8169.

Revision history for this message
Roman Valov (reddot) wrote :

@Kai-Heng Feng, I've tested v5.3-rc2 and v5.3-rc4 today.

v5.3-rc4 seems to be working fine and v5.3-rc2 has same issues as latest kernels from repo.

Actual behavior of problematic kernels -- interface is actually working on cold boot,
but turns to be unable to detect a link after a several reboots (in 5-10 minutes from initial boot).

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

There are two commits between the two kernel versions:
003bd5b4a7b4a94b501e3a1e2e7c9df6b2a94ed4 r8169: don't use MSI before RTL8168d
66058b1ca5651c7671bf2ba27fcf6907fb20bd0b Revert ("r8169: remove 1000/Half from supported modes")

Can you test which one actually fixes the issue?

Revision history for this message
Roman Valov (reddot) wrote :

As of my tests, only `003bd5b4a7b4a94b501e3a1e2e7c9df6b2a94ed4` (r8169: don't use MSI before RTL8168d) among of two discussed commits is required to fix the issue.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
Roman Valov (reddot) wrote :

Could you please i386 kernel to test?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
Roman Valov (reddot) wrote :

Works well!

description: updated
Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Khaled El Mously (kmously) wrote :

The patches for this bug were applied to Bionic and Disco via stable updates under 2 other bugs:

Bionic: https://bugs.launchpad.net/bugs/1840378

Disco: https://bugs.launchpad.net/bugs/1841994

Changed in linux (Ubuntu Bionic):
status: New → Fix Committed
Changed in linux (Ubuntu Disco):
status: New → Fix Committed
Steve Langasek (vorlon)
Changed in linux (Ubuntu Disco):
status: Fix Committed → Won't Fix
You-Sheng Yang (vicamo)
tags: added: hwe-networking-ethernet
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.