Re: 3.2.11: PCI Express card cannot be re-detected withing cca 60sec timeframe

From: Yinghai Lu
Date: Wed Apr 18 2012 - 21:58:21 EST


On Wed, Apr 18, 2012 at 3:55 PM, Martin Mokrejs
<mmokrejs@xxxxxxxxxxxxxxxxxx> wrote:
>
>>>> Can you try to use acpiphp instead of pciehp?
>>>
>>> Umm. I do have acpiphp in my kernel already. I am rather attaching my .config,
>>> please me know what you want me to do. My kernel command line could be seen
>>> in my previous posts in the dmesg file.
>>
>> remove
>>
>> CONFIG_HOTPLUG_PCI_PCIE=y
>
> The express card slot seems "dead", nothing happens when I plugin the card.
> I have attached the lspci of the bridge (when card p[lugged in), in case there is
> something of interest to you. ;-) Same for dmesg.
>
>
>
> # grep HOTPLUG /usr/src/linux-3.4-rc3__patches_yinghai_jeff_garzik/.config
> CONFIG_HOTPLUG=y
> # CONFIG_MEMORY_HOTPLUG is not set
> CONFIG_HOTPLUG_CPU=y
> CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
> CONFIG_ACPI_HOTPLUG_CPU=y
> # CONFIG_HOTPLUG_PCI_PCIE is not set
> CONFIG_HOTPLUG_PCI=y
> # CONFIG_HOTPLUG_PCI_FAKE is not set
> CONFIG_HOTPLUG_PCI_ACPI=y
> # CONFIG_HOTPLUG_PCI_ACPI_IBM is not set
> # CONFIG_HOTPLUG_PCI_CPCI is not set
> CONFIG_HOTPLUG_PCI_SHPC=m
> #
>
>
> The echo commands just do:
>
> [  616.477711] pcieport 0000:00:1c.7: pcie_link_disable_set: lnk_ctrl = 53
> [  637.242990] pcieport 0000:00:1c.7: pcie_link_disable_set: lnk_ctrl = 43
> [  641.791748] pcieport 0000:00:1c.7: pcie_link_disable_set: lnk_ctrl = 52
> [  654.317009] pcieport 0000:00:1c.7: pcie_link_disable_set: lnk_ctrl = 42
> [  664.238154] pcieport 0000:00:1c.7: pcie_link_disable_set: lnk_ctrl = 52
> [  686.101576] pcieport 0000:00:1c.7: pcie_link_disable_set: lnk_ctrl = 43
>

looks your BIOS does not support acpiphp.

Maybe you have to stay with

echo 1 > .../pcie_link_disable
echo 0 > .../pcie_link_disable

after removal every time.

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/