Autonegotiation fails for various Lenovo notebooks when resuming inside the docking station

Bug #1817562 reported by Cs-gon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The autonegotiation fails sporadically for various Lenovo notebooks (e.g. T450s, T550, W540) when resuming inside the docking station. The speed ethtool reports is 10Mb/s, full duplex, even though that is not the speed the connected switch uses. So the systems are unable to send/receive any packages.

Issuing the command "ethtool -r eth0" does not lead to a successful renegotiation. To get a correct link, I have to either undock the notebook for about 15 seconds, and then re-dock it, or disconnect the LAN cable for about 15 seconds, and then reconnect the cable.

In my case the problem appears about one time in 10-20 suspend/resume cycles.

I found the problem in the 4.15 Ubuntu Bionic kernel, but the problem is still present in kernel 5.0-rc8.

I've done a git bisect and the following commit seems to have introduced the problem:

commit 04e04009bb01502f8023c707d7569ea42fba903b
Author: Rafael J. Wysocki <email address hidden>
Date: Fri Feb 9 22:55:28 2018 +0100

    ACPI / EC: Restore polling during noirq suspend/resume phases

    BugLink: http://bugs.launchpad.net/bugs/1774063

    [ Upstream commit 3cd091a773936c54344a519f7ee1379ccb620bee ]

    Commit 662591461c4b (ACPI / EC: Drop EC noirq hooks to fix a
    regression) modified the ACPI EC driver so that it doesn't switch
    over to busy polling mode during noirq stages of system suspend and
    resume in an attempt to fix an issue resulting from that behavior.

    However, that modification introduced a system resume regression on
    Thinkpad X240, so make the EC driver switch over to the polling mode
    during noirq stages of system suspend and resume again, which
    effectively reverts the problematic commit.

    Fixes: 662591461c4b (ACPI / EC: Drop EC noirq hooks to fix a regression)
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=197863
    Reported-by: Markus Demleitner <email address hidden>
    Tested-by: Markus Demleitner <email address hidden>
    Signed-off-by: Rafael J. Wysocki <email address hidden>
    Signed-off-by: Sasha Levin <email address hidden>
    Signed-off-by: Greg Kroah-Hartman <email address hidden>
    Signed-off-by: Kamal Mostafa <email address hidden>
    Signed-off-by: Khalid Elmously <email address hidden>

I have reverted the commit in the Ubuntu Bionic kernel, and cannot reproduce the problem any longer.

I have also opened a corresponding upstream bugreport on bugzilla.kernel.org: https://bugzilla.kernel.org/show_bug.cgi?id=202675
---
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: m525025 2871 F.... pulseaudio
 /dev/snd/controlC0: m525025 2871 F.... pulseaudio
CurrentDesktop: Unity
DistroRelease: Ubuntu 16.04
HibernationDevice: RESUME=/dev/mapper/VolGroup00-swaplv
MachineType: LENOVO 20BWS00V00
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.15.0-45-generic root=/dev/mapper/VolGroup00-rootlv ro net.ifnames=0 biosdevname=0 ipv6.disable=1 quiet splash usbcore.authorized_default=0 i915.enable_psr=0 i915.enable_rc6=0 crashkernel=384M-:128M vt.handoff=7
ProcVersionSignature: Ubuntu 4.15.0-45.48~16.04.1-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-45-generic N/A
 linux-backports-modules-4.15.0-45-generic N/A
 linux-firmware 1.157.21
Tags: xenial
Uname: Linux 4.15.0-45-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: dvi lapadmins projekt-lap
WifiSyslog:

_MarkForUpload: True
dmi.bios.date: 02/27/2018
dmi.bios.vendor: LENOVO
dmi.bios.version: JBET68WW (1.32 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20BWS00V00
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrJBET68WW(1.32):bd02/27/2018:svnLENOVO:pn20BWS00V00:pvrThinkPadT450s:rvnLENOVO:rn20BWS00V00:rvrNotDefined:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad T450s
dmi.product.name: 20BWS00V00
dmi.product.version: ThinkPad T450s
dmi.sys.vendor: LENOVO

Cs-gon (cs-gon)
description: updated
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 1817562

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
Cs-gon (cs-gon) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected xenial
description: updated
Revision history for this message
Cs-gon (cs-gon) wrote : CRDA.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : IwConfig.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : Lspci.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : Lsusb.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : ProcEnviron.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : ProcModules.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : PulseList.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : RfKill.txt

apport information

Revision history for this message
Cs-gon (cs-gon) wrote : UdevDb.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
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.