Thinkpad ethernet unavailable after undocking

Bug #1169244 reported by robled
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
In Progress
Medium
Joseph Salisbury

Bug Description

I've got a Lenovo ThinkPad T430s with a MiniDock Series 3. In Ubuntu 13.04, the ethernet connection is not available after undocking. The output of 'ip link show dev eth0' shows <NO_CARRIER> status if a CAT5 cable is plugged into the ethernet port after undocking. The link light comes on, but it's impossible to use the connection. It seems as if the system still thinks it's in the docked state, so the onboard ethernet port is overridden by the now-disconnected docking station ethernet port.

This kernel will exhibit the problem: 3.8.0-18-generic

This kernel from the mainline PPA will not exhibit the problem: 3.9.0-030900rc6

Also, the output of 'acpi_listen' is interesting when comparing the working and broken kernels.

3.9.0-030900rc6 (working):

ac_adapter AC 00000080 00000000
ibm/hotkey HKEY 00000080 00006030
thermal_zone THM0 00000081 00000000
battery BAT0 00000080 00000001
ibm/hotkey HKEY 00000080 00004011
ibm/hotkey HKEY 00000080 00004010
ac_adapter AC 00000080 00000001
ibm/hotkey HKEY 00000080 00006030
thermal_zone THM0 00000081 00000000
battery BAT0 00000080 00000001

3.8.0-18-generic (broken):

ac_adapter AC 00000080 00000000
ibm/hotkey HKEY 00000080 00006040
ibm/hotkey HKEY 00000080 00006030
thermal_zone THM0 00000081 00000000
battery BAT0 00000080 00000001
ibm/hotkey HKEY 00000080 00004011
ibm/hotkey HKEY 00000080 00004010
ac_adapter AC 00000080 00000001
ibm/hotkey HKEY 00000080 00006040
ibm/hotkey HKEY 00000080 00006030
thermal_zone THM0 00000081 00000000
battery BAT0 00000080 00000001

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: linux-image-3.8.0-18-generic 3.8.0-18.28
ProcVersionSignature: Ubuntu 3.8.0-18.28-generic 3.8.6
Uname: Linux 3.8.0-18-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: droble 2378 F.... pulseaudio
Date: Mon Apr 15 11:56:03 2013
HibernationDevice: RESUME=UUID=c317a0cf-3abf-44b6-af3d-7d55ef0267ac
MachineType: LENOVO 23539MU
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-18-generic root=/dev/mapper/vg0-root ro
RelatedPackageVersions:
 linux-restricted-modules-3.8.0-18-generic N/A
 linux-backports-modules-3.8.0-18-generic N/A
 linux-firmware 1.105
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/12/2012
dmi.bios.vendor: LENOVO
dmi.bios.version: G7ET63WW (2.05 )
dmi.board.asset.tag: Not Available
dmi.board.name: 23539MU
dmi.board.vendor: LENOVO
dmi.board.version: Win8 Pro DPK TPG
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrG7ET63WW(2.05):bd11/12/2012:svnLENOVO:pn23539MU:pvrThinkPadT430s:rvnLENOVO:rn23539MU:rvrWin8ProDPKTPG:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 23539MU
dmi.product.version: ThinkPad T430s
dmi.sys.vendor: LENOVO

Revision history for this message
robled (robled) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

It appears the 3.8 kernel has an HKEY even 0x6040, but this does not exist on 3.9.

[ 50.453624] thinkpad_acpi: unknown possible thermal alarm or keyboard event received
[ 50.453628] thinkpad_acpi: unhandled HKEY event 0x6040
[ 50.453629] thinkpad_acpi: please report the conditions when this event happened to <email address hidden>
[ 50.453915] thinkpad_acpi: EC reports that Thermal Table has changed

This may be resolved by upstream commit: 6f62bc3

I'll build a Raring test kernel with that commit applied and post a link shortly.

Changed in linux (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Joseph Salisbury (jsalisbury)
status: Confirmed → In Progress
Revision history for this message
robled (robled) wrote :

Thanks Joseph! I will be happy to help test the new kernel.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built a test kernel with commit 6f62bc3 applied.

The test kernel can be downloaded from:
http://people.canonical.com/~jsalisbury/lp1169244

Can you test that kernel and report back if it has the bug or not.

One thing to note, you will need to install both the linux-image and linux-image-extra .deb packages.

Thanks in advance

Revision history for this message
robled (robled) wrote :

Unfortunately I observe the same behavior with this new kernel build. I installed all of the packages in that directory. Here is the output of 'uname -a':

Linux lasky 3.8.0-18-generic #28~lp1169244 SMP Mon Apr 15 17:51:15 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

'dmesg' output when undocking:

[ 24.609587] usb 3-3: USB disconnect, device number 2
[ 24.630112] hid-generic 0003:04B3:301B.0002: can't reset device, 0000:00:1d.0-1.5.6.1/input0, status -71
[ 24.634070] usb 2-1.5: clear tt 6 (0050) error -71
[ 24.638832] hid-generic 0003:04B3:301B.0002: can't reset device, 0000:00:1d.0-1.5.6.1/input0, status -71
[ 24.642800] usb 2-1.5: clear tt 6 (0050) error -71
[ 24.654059] hid-generic 0003:04B3:301B.0002: can't reset device, 0000:00:1d.0-1.5.6.1/input0, status -71
[ 24.658653] usb 2-1.5: clear tt 6 (0050) error -71
[ 24.670032] hid-generic 0003:04B3:301B.0002: can't reset device, 0000:00:1d.0-1.5.6.1/input0, status -71
[ 24.674622] usb 2-1.5: clear tt 6 (0050) error -71
[ 24.685992] hid-generic 0003:04B3:301B.0002: can't reset device, 0000:00:1d.0-1.5.6.1/input0, status -71
[ 24.690593] usb 2-1.5: clear tt 6 (0050) error -71
[ 24.701971] hid-generic 0003:04B3:301B.0002: can't reset device, 0000:00:1d.0-1.5.6.1/input0, status -71
[ 24.706562] usb 2-1.5: clear tt 6 (0050) error -71
[ 24.717931] hid-generic 0003:04B3:301B.0002: can't reset device, 0000:00:1d.0-1.5.6.1/input0, status -71
[ 24.722532] usb 2-1.5: clear tt 6 (0050) error -71
[ 24.733911] hid-generic 0003:04B3:301B.0002: can't reset device, 0000:00:1d.0-1.5.6.1/input0, status -71
[ 24.738488] usb 2-1.5: clear tt 6 (0050) error -71
[ 24.744253] usb 2-1.5: USB disconnect, device number 3
[ 24.744256] usb 2-1.5.6: USB disconnect, device number 4
[ 24.744258] usb 2-1.5.6.1: USB disconnect, device number 5
[ 24.956201] e1000e: eth0 NIC Link is Down
[ 25.231974] thinkpad_acpi: EC reports that Thermal Table has changed
[ 25.331526] thinkpad_acpi: undocked from hotplug port replicator

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

It's probably best to perform a reverse kernel bisect to figure which commit fixes this issue.

One question, does this issue only happen after undocking then trying to use ethernet? Does it happen if you perform a cold boot without using the dock?

Also, can you test the latest upstream 3.8 stable kernel, just to confirm it's not fixed there yet:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.8.8-raring/

Revision history for this message
robled (robled) wrote :

The issue only occurs after undocking while the system is running. If you cold boot off the dock, ethernet works fine.

For reference, the stock Ubuntu 12.10 kernel worked flawlessly with the ThinkPad docks. I will test the kernel you posted and report back.

Revision history for this message
robled (robled) wrote :

I'm able to reproduce the problem with the kernel from #7:

uname -a
Linux lasky 3.8.8-030808-generic #201304170248 SMP Wed Apr 17 06:49:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

dmesg
[ 27.897311] e1000e: eth0 NIC Link is Down
[ 28.136659] thinkpad_acpi: unknown possible thermal alarm or keyboard event received
[ 28.136664] thinkpad_acpi: unhandled HKEY event 0x6040
[ 28.136666] thinkpad_acpi: please report the conditions when this event happened to <email address hidden>
[ 28.137125] thinkpad_acpi: EC reports that Thermal Table has changed
[ 28.236466] thinkpad_acpi: undocked from hotplug port replicator

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I'd like to perform a reverse bisect to figure out which commit upstream fixes this regression. It would be very helpful to know the last kernel that had this issue and the first kernel that did not.

Can you test the following kernels and report back? We are looking for the earliest kernel version that doesn't have this bug:

v3.9-rc4: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-rc4-raring/

If v3.9-rc4 exhibits the bug then test v3.9-rc6:
v3.9-rc6: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-rc6-raring/

If v3.9-rc4 does not exhibit the bug then test v3.9-rc2:
v3.9-rc2: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-rc2-raring/

You don't have to test every kernel, just up until the first kernel that does not have this bug.

Thanks in advance!

tags: added: performing-bisect
Revision history for this message
robled (robled) wrote :

Last broken kernel: 3.9.0-030900rc2

First working kernel: 3.9.0-030900rc3

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I started a kernel "Reverse" bisect between v3.9-rc2 and v3.9-rc3. The kernel bisect will require testing of about 7-10 test kernels.

I built the first test kernel, up to the following commit:
6d9431a7496947cba54fa3b4940ba6041029d5c1

The test kernel can be downloaded from:
http://people.canonical.com/~jsalisbury/lp1169244

Can you test that kernel and report back if it has the bug or not. I will build the next test kernel based on your test results.

Thanks in advance!

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This seems similar to bug 1165248 Can you confirm 3.9-rc2 exhibits the bug?

Revision history for this message
roland (roland-micite) wrote :

This seems similar to #1142961 #1131616 and #1112652

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built a Raring test kernel with commit 66148ba applied.

The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1112652

Can you test that kernel and report back if it has the bug or not.

One thing to note, you will need to install both the linux-image and linux-image-extra .deb packages.

Thanks in advance!

Revision history for this message
robled (robled) wrote :

I tried the kernel you just posted, but still no ethernet.

$ uname -a
Linux lasky 3.8.0-19-generic #30~lp1112652v1 SMP Thu May 2 18:08:15 UTC 2013 x86_64 x86_64 x8

As requested I'll go back through some of the other kernels that you've posted as well as checking to see if my issue is similar to the other ones listed in this report.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Thanks for testing. It's probably best for us to perform a Reverse bisect to identify the bad commit. It would be great if you could next test the kernel listed in comment #12

Revision history for this message
John Bloom (johnxx) wrote :

jsalisbury,
The directory linked in #12 seems to be kernels compiled for armhf. I'm happy to test since this affects me too on a ThinkPad X61.

Revision history for this message
Jason Gipson-Nahman (jgip-dr) wrote :

I was having this problem, but ethernet is working for me right now. I didn't do anything special, just been running updates over the last couple of days. Good thing, too, because I was planning on downgrading back to 12.10 today. Now if this audio over hdmi will work we'll be in business.

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.