ExpressCard34 slot not hotplugable after boot

Bug #999462 reported by sunbird
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I have a 3,1 Macbook Pro. In 10.04, my ExpressCard34 slot was hotplugable after I added acpiphp to /etc/modules. On upgrade to 12.04, the slot will only work if the device is plugged in at boot.

Current behavior:

Must plug in device at boottime, or the system will never recognize it.

Expected behavior:

Can plug in the device after boot and it is recognized.

I should note, the attached documents were generated with apport-bug _after_ I rebooted with the device plugged in. If helpful, I can reboot again and attach additional files without the device plugged in.

Thanks and I hope I'm reporting this against the right package.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: udev 175-0ubuntu9
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Mon May 14 21:04:43 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64+mac (20120425.1)
MachineType: Apple Inc. MacBookPro3,1
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-24-generic root=/dev/mapper/root ro quiet splash nomodeset video=uvesafb:mode_option=1280x800-32,mtrr=3,scroll=ywrap
SourcePackage: udev
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/05/08
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP31.88Z.0070.B07.0803051658
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Mac-F4238BC8
dmi.board.vendor: Apple Inc.
dmi.board.version: PVT
dmi.chassis.asset.tag: Asset Tag#
dmi.chassis.type: 2
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F4238BC8
dmi.modalias: dmi:bvnAppleInc.:bvrMBP31.88Z.0070.B07.0803051658:bd03/05/08:svnAppleInc.:pnMacBookPro3,1:pvr1.0:rvnAppleInc.:rnMac-F4238BC8:rvrPVT:cvnAppleInc.:ct2:cvrMac-F4238BC8:
dmi.product.name: MacBookPro3,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
sunbird (sunbird) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udev (Ubuntu):
status: New → Confirmed
Revision history for this message
rduke15 (rduke15) wrote :

Same problem on a Thinkpad X200. Trying to load the acpiphp module after boot fails:

  $ sudo modprobe acpiphp
  FATAL: Error inserting acpiphp (/lib/modules/3.2.0-27-generic/kernel/drivers/pci/hotplug/acpiphp.ko): No such device

  $ uname -a
  Linux x200s 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
rduke15 (rduke15) wrote :

The following fixed the problem for my USB 3 Expresscard (NEC uPD720200):

    sudo echo acpiphp >> /etc/modules:

Modify /etc/default/grub to have:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pciehp_force=1 pciehp_poll_mode=1"

and run

    sudo update-grub

Now hotplugging works as expected.

Revision history for this message
Vladyslav Shtabovenko (vl-sht) wrote :

I confirm that rduke15's workaround also solves the problem on my Thinkpad Z61m running Ubuntu 12.04. Thanks!

Revision history for this message
David Kirba (dckirba) wrote :

I also confirm that rduke15's workaround solves this problem on a Dell Studio 1555 running Ubuntu 12.04 :)

Revision history for this message
Paul Libert (plibert) wrote :

Workaround seems to solve the problem here too, Lenovo T520.

penalvch (penalvch)
tags: added: needs-upstream-testing
removed: expresscard
Revision history for this message
dwan (dwanafite) wrote :

Workaround works great ! HP pavilion DV6164ea with ti-based firewire expresscard.

Revision history for this message
Jan Zacharias (janz) wrote :
Download full text (6.5 KiB)

I'm using ubuntu 13.04 (Linux 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:22:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux)
on a lenovo T420.

Trying to use an AKE USB3.0 ExpressCard (detected as 05:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02))

The workaround does not work for me, after hotplugging the card this happens:

[ 29.072009] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/serio2/input/input12
[ 40.583406] pci 0000:05:00.0: [1912:0015] type 00 class 0x0c0330
[ 40.583451] pci 0000:05:00.0: reg 10: [mem 0x00000000-0x00001fff 64bit]
[ 40.583664] pci 0000:05:00.0: PME# supported from D0 D3hot
[ 40.591364] pci 0000:05:00.0: BAR 0: assigned [mem 0xf1c00000-0xf1c01fff 64bit]
[ 40.591393] pci 0000:05:00.0: no hotplug settings from platform
[ 40.591414] pci 0000:05:00.0: enabling device (0000 -> 0002)
[ 40.598015] pci 0000:05:00.0: xHCI HW not ready after 5 sec (HC bug?) status = 0x801
[ 40.598144] xhci_hcd 0000:05:00.0: xHCI Host Controller
[ 40.598152] xhci_hcd 0000:05:00.0: new USB bus registered, assigned bus number 3
[ 67.996088] BUG: soft lockup - CPU#0 stuck for 23s! [kworker/0:1:38]
[ 67.996093] Modules linked in: joydev(F) pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF) vboxdrv(OF) kvm_intel kvm cdc_mbim cdc_ncm usbnet cdc_wdm cdc_acm ip6t_REJECT(F) xt_hl(F) ip6t_rt(F) uvcvideo nf_conntrack_ipv6(F) nf_defrag_ipv6(F) videobuf2_vmalloc videobuf2_memops videobuf2_core ipt_REJECT(F) videodev xt_LOG(F) xt_limit(F) microcode(F) xt_tcpudp(F) xt_addrtype(F) btusb nf_conntrack_ipv4(F) nf_defrag_ipv4(F) xt_state(F) ip6table_filter(F) snd_hda_codec_conexant ip6_tables(F) nf_conntrack_netbios_ns(F) nf_conntrack_broadcast(F) nf_nat_ftp(F) nf_nat(F) arc4(F) nf_conntrack_ftp(F) nf_conntrack(F) snd_hda_intel iptable_filter(F) thinkpad_acpi nvram(F) snd_hda_codec snd_hwdep(F) snd_pcm(F) snd_page_alloc(F) ip_tables(F) x_tables(F) snd_seq_midi(F) snd_seq_midi_event(F) iwldvm lpc_ich mac80211 snd_rawmidi(F) psmouse(F) snd_seq(F) iwlwifi serio_raw(F) cfg80211 parport_pc(F) snd_seq_device(F) snd_timer(F) snd(F) ppdev(F) soundcore(F) bnep rfcomm mac_hid bluetooth mei acpiphp(F) coretemp lp(F) parport(F) ext2(F) dm_crypt(F) ghash_clmulni_intel(F) aesni_intel(F) wmi aes_x86_64(F) xts(F) lrw(F) gf128mul(F) ablk_helper(F) cryptd(F) ahci(F) libahci(F) i915 sdhci_pci sdhci video(F) i2c_algo_bit drm_kms_helper e1000e(F) drm
[ 67.996146] CPU 0
[ 67.996149] Pid: 38, comm: kworker/0:1 Tainted: GF O 3.8.0-23-generic #34-Ubuntu LENOVO 417882G/417882G
[ 67.996150] RIP: 0010:[<ffffffff8151e424>] [<ffffffff8151e424>] xhci_handshake+0x24/0x70
[ 67.996157] RSP: 0018:ffff8802127c58e8 EFLAGS: 00000206
[ 67.996158] RAX: 0000000000000002 RBX: 000000000117e0d0 RCX: 000000000117e0d0
[ 67.996160] RDX: 000000000000090b RSI: ffffc90004ee8020 RDI: 00000000000008e3
[ 67.996161] RBP: ffff8802127c5908 R08: 0000000000989680 R09: 0000000000000000
[ 67.996162] R10: ffff880210acb000 R11: 303030206463685f R12: 0000000000989680
[ 67.996162] R13: 0000000000000000 R14: ffff880210acb000 R15: 303030206463685f
[ 67.996164] FS: 0000000000000000(0000) GS:ffff88021e200000(0000) knlG...

Read more...

Martin Pitt (pitti)
affects: udev (Ubuntu) → linux (Ubuntu)
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.10 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10-rc5-saucy/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Jan Zacharias (janz)
tags: added: kernel-bug-exists-upstream
Revision history for this message
Jan Zacharias (janz) wrote :

Allright done that with (Linux 3.10.0-031000rc5-generic #201306082135 SMP Sun Jun 9 01:36:22 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux)

First I removed the workaround stuff, namely:

    sudo echo acpiphp >> /etc/modules:

Modify /etc/default/grub to have:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pciehp_force=1 pciehp_poll_mode=1"

Result: Card is not detected when plugging it in after boot.

Now I wanted to check if the workaround helps, but

modprobe acpiphp
FATAL: Module acpiphp not found.

Plus my Computer won't boot when the card is inserted, log:

[ 0.869378] xhci_hcd 0000:05:00.0: xHCI Host Controller
[ 0.869382] xhci_hcd 0000:05:00.0: new USB bus registered, assigned bus number 3
[ 1.785834] tsc: Refined TSC clocksource calibration: 2292.554 MHz
[ 1.785840] Switching to clocksource tsc
 - here it hangs until the card is removed -
[ 13.253006] xhci_hcd 0000:05:00.0: can't setup
[ 13.253012] xhci_hcd 0000:05:00.0: USB bus 3 deregistered
[ 13.253076] xhci_hcd 0000:05:00.0: init 0000:05:00.0 fail, -19

Revision history for this message
Yannick Hein (catwissel) wrote :

Workaround doesn't worl for me either.

After hotplug dmesg says
[ 144.626651] pciehp 0000:00:15.3:pcie04: Card present on Slot(0-1)

but in lsusb my USB 3.0-card is still not listed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Enzo (ozzy19) wrote :

I solved the problem of running too, but I have another problem: the Express card I connected the fan to cool the notebook, if I leave it attached and I try to shut down the notebook does not turn off, but restarts, while if I disconnect the notebook shuts down regularly.
How can I fix? mine is Ubuntu 13.04. Thank you.

rduke15 (rduke15)
Changed in linux (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Hubert Hesse (hubx) wrote :

For me too, the hot plug workaround doesn't and I can't use the card (uPD720202) in Ubuntu 14.10 like that

Revision history for this message
Hubert Hesse (hubx) wrote :

I have to retract my statement. I'm using a Lenovo x220.
Disabling "PCI Express Power management" (Config -> Power) via Bios resolves the issue for me. Before Ubuntu became unresponsive (like the card is throwing a lot of interrupts) after the *2nd* hot-plug, first one seems fine though. On AC or Battery did not change the behavior.

Also I noticed "ACPI FADT declares the system doesn't support PCIe ASPM" in dmesg, so I'm not sure this bug is even related. I leave it here for people who have similar issues :)

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.