From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f54.google.com ([209.85.220.54]:38863 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753251Ab3ACPlr (ORCPT ); Thu, 3 Jan 2013 10:41:47 -0500 Message-ID: <50E5A6A1.5040508@gmail.com> Date: Thu, 03 Jan 2013 23:41:21 +0800 From: Jiang Liu MIME-Version: 1.0 To: Daniel J Blueman CC: Jesse Barnes , Kenji Kaneshige , Yinghai Lu , Linux Kernel , Linux PCI Subject: Re: 3.8-rc2: pciehp waitqueue hang... References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-pci-owner@vger.kernel.org List-ID: Hi Daniel, It seems like an issue caused by recursive PCIe HPC. Could you please help to try the patch from: http://www.spinics.net/lists/linux-pci/msg18625.html Thanks! Gerry On 01/03/2013 11:11 PM, Daniel J Blueman wrote: > When the Apple thunderbolt ethernet adapter comes loose on my Macbook > Pro Retina (Intel DSL3510), we see pci_slot_name return > non-deterministic data (ie varying each boot), and we see pciehp_wp > remain armed with events causing the kthread to get stuck: > > tg3 0000:0a:00.0 eth0: Link is up at 1000 Mbps, full duplex > tg3 0000:0a:00.0 eth0: Flow control is on for TX and on for RX > > pciehp 0000:06:03.0:pcie24: Card not present on Slot(3) > tg3 0000:0a:00.0: tg3_abort_hw timed out, TX_MODE_ENABLE will not > clear MAC_TX_MODE=ffffffff > tg3 0000:0a:00.0 eth0: No firmware running > tg3 0000:0a:00.0 eth0: Link is down > pcieport 0000:00:01.1: System wakeup enabled by ACPI > pciehp 0000:09:00.0:pcie24: unloading service driver pciehp > pciehp 0000:09:00.0:pcie24: Latch open on > Slot(\xfffffff89\xffffffbbe\x02\xffffff88\xffffffff\xffffffff\xffffffe09\xffffffbbe\x02\xffffff88\xffffffff\xfffffffffbcon) > pciehp 0000:09:00.0:pcie24: Button pressed on > Slot(\xfffffff89\xffffffbbe\x02\xffffff88\xffffffff\xffffffff\xffffffe09\xffffffbbe\x02\xffffff88\xffffffff\xfffffffffbcon) > pciehp 0000:09:00.0:pcie24: Card present on > Slot(\xfffffff89\xffffffbbe\x02\xffffff88\xffffffff\xffffffff\xffffffe09\xffffffbbe\x02\xffffff88\xffffffff\xfffffffffbcon) > pciehp 0000:09:00.0:pcie24: Power fault on slot > \xfffffff89\xffffffbbe\x02\xffffff88\xffffffff\xffffffff\xffffffe09\xffffffbbe\x02\xffffff88\xffffffff\xfffffffffbcon > pciehp 0000:09:00.0:pcie24: Power fault bit 0 set > pciehp 0000:09:00.0:pcie24: PCI slot > #\xfffffff89\xffffffbbe\x02\xffffff88\xffffffff\xffffffff\xffffffe09\xffffffbbe\x02\xffffff88\xffffffff\xfffffffffbcon > - powering on due to button press. > pciehp 0000:09:00.0:pcie24: Link Training Error occurs > pciehp 0000:09:00.0:pcie24: Failed to check link status > INFO: task kworker/0:1:52 blocked for more than 120 seconds. > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > kworker/0:1 D ffff880265893090 0 52 2 0x00000000 > ffff8802655456f8 0000000000000046 ffffffff81a21a60 ffff880265545fd8 > 0000000000004000 ffff880265545fd8 ffff880265892bb0 ffff880265adc8d0 > 000000000000059e 0000000000000082 ffff880265545668 ffffffff810415aa > Call Trace: > [] ? console_unlock+0x1fa/0x4a0 > [] ? trace_hardirqs_off+0xd/0x10 > [] ? vprintk_emit+0x1c9/0x510 > [] schedule+0x24/0x70 > [] schedule_timeout+0x19c/0x1e0 > [] wait_for_common+0xe3/0x180 > [] ? flush_workqueue+0x111/0x4d0 > [] ? try_to_wake_up+0x2d0/0x2d0 > [] wait_for_completion+0x18/0x20 > [] flush_workqueue+0x1d6/0x4d0 > [] ? flush_workqueue_prep_cwqs+0x200/0x200 > [] pciehp_release_ctrl+0x39/0x90 > [] pciehp_remove+0x25/0x30 > [] pcie_port_remove_service+0x52/0x70 > [] __device_release_driver+0x77/0xe0 > [] device_release_driver+0x29/0x40 > [] bus_remove_device+0xf1/0x140 > [] device_del+0x127/0x1c0 > [] ? resume_iter+0x40/0x40 > [] device_unregister+0x11/0x20 > [] remove_iter+0x35/0x40 > [] device_for_each_child+0x36/0x70 > [] pcie_port_device_remove+0x21/0x40 > [] pcie_portdrv_remove+0x28/0x50 > [] pci_device_remove+0x41/0xc0 > [] __device_release_driver+0x77/0xe0 > [] device_release_driver+0x29/0x40 > [] bus_remove_device+0xf1/0x140 > [] device_del+0x127/0x1c0 > [] device_unregister+0x11/0x20 > [] pci_stop_bus_device+0x8c/0xa0 > [] pci_stop_bus_device+0x35/0xa0 > [] pci_stop_and_remove_bus_device+0x11/0x20 > [] pciehp_unconfigure_device+0x91/0x190 > [] ? pciehp_power_thread+0x2d/0x110 > [] pciehp_disable_slot+0x71/0x220 > [] pciehp_power_thread+0xe6/0x110 > [] process_one_work+0x193/0x550 > [] ? process_one_work+0x131/0x550 > [] ? pciehp_disable_slot+0x220/0x220 > [] worker_thread+0x15d/0x400 > [] ? trace_hardirqs_on+0xd/0x10 > [] ? rescuer_thread+0x210/0x210 > [] kthread+0xd6/0xe0 > [] ? _raw_spin_unlock_irq+0x2b/0x50 > [] ? __init_kthread_worker+0x70/0x70 > [] ret_from_fork+0x7c/0xb0 > [] ? __init_kthread_worker+0x70/0x70 >