• Kenji Kaneshige's avatar
    PCI: pciehp: add ACPI based slot detection · c9ffa5a5
    Kenji Kaneshige authored
    There is a problem that some non hot-pluggable PCIe slots are detected
    as hot-pluggable by pciehp on some platforms. The immediate cause of
    this problem is that hot-plug capable bit in the Slot Capabilities
    register is set even for non hot-pluggable slots on those platforms.
    It seems a BIOS/hardware problem, but we need workaround about that.
    
    Some of those platforms define hot-pluggable PCIe slots on ACPI
    namespace properly, while hot-plug capable bit in the Slot
    Capabilities register is set improperly. So using ACPI namespace
    information in pciehp to detect PCIe hot-pluggable slots would be a
    workaround.
    
    This patch adds 'pciehp_detect_mode' module option. When 'acpi' is
    specified, pciehp uses ACPI namespace information to detect PCIe
    hot-pluggable slots.
    Signed-off-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    c9ffa5a5
pciehp_core.c 13.9 KB