https://bugzilla.kernel.org/show_bug.cgi?id=98581

            Bug ID: 98581
           Summary: HP ZBook G2 systems fail expresscard hotplug setup
           Product: ACPI
           Version: 2.5
    Kernel Version: At least 2.6.32+
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Config-Hotplug
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

I've got a new HP ZBook 17 G2 here (have also tested with a ZBook 15, same
problem), which has an expresscard slot. Out of the box, the expresscard slot
doesn't allow hotplugging, as no hotplug driver successfully binds to it.
Booting the system with a card inserted, or switching from PCIEHP_DETECT_ACPI
to PCIEHP_DETECT_PCIE (pciehp_detect_mode=pcie) makes it function.

Looking through the ACPI tables for the machine and the code for _ACPI mode, my
first thought was that it was missing an _RMV object for the expresscard slot,
and thus never binding. I posted a patch here to quirk around it via dmi
matching:

https://lkml.org/lkml/2015/5/14/666

However, discussion indicates the problem may lay elsewhere. I'll attach dmesg
spew and an acpidump shortly, but I'll note that the system DOES indicate the
operating system has been given full control over PCIeHotplug:

[    4.013326] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM
Segments MSI]
[    4.015860] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER
PCIeCapability]

Perhaps pciehp_acpi should be setting PCIEHP_DETECT_PCIE when it sees the OS
has full control of PCIeHotplug?

Also of possible interest is this bit in drivers/acpi/pci_root.c:

static const struct acpi_device_id root_device_ids[] = {
        {"PNP0A03", 0},
        {"", 0},
};

static struct acpi_scan_handler pci_root_handler = {
        .ids = root_device_ids,
        .attach = acpi_pci_root_add,
        .detach = acpi_pci_root_remove,
        .hotplug = {
                .enabled = true,
                .scan_dependent = acpi_pci_root_scan_dependent,
        },
};

The device ID for the pcie bus is PNP0A08.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to