• Adrian Huang's avatar
    intel_pstate: skip the driver if ACPI has power mgmt option · fbbcdc07
    Adrian Huang authored
    Do not load the Intel pstate driver if the platform firmware
    (ACPI BIOS) supports the power management alternatives.
    The ACPI BIOS indicates that the OS control mode can be used
    if the _PSS (Performance Supported States) is defined in ACPI
    table. For the OS control mode, the Intel pstate driver will be
    loaded.
    
    HP BIOS has several power management modes (firmware, OS-control and
    so on). For the OS control mode in HP BIOS, the Intel p-state driver
    will be loaded. When the customer chooses the firmware power
    management in HP BIOS, the Intel p-state driver will be ignored.
    
    I put hw_vendor_info vendor_info in case other vendors (Dell, Lenovo...)
    have their firmware power management. Vendors should make sure their
    firmware power management works properly, and they can go for adding
    their vendor info to the variable.
    
    I have verified the patch on HP ProLiant servers.  The patch worked
    correctly.
    Signed-off-by: default avatarAdrian Huang <adrianhuang0701@gmail.com>
    [rjw: Fixed up !CONFIG_ACPI build]
    [Linda Knippers: As Adrian has recently left HP, I retested the
    updated patch on an HP ProLiant server and verified that it is
    behaving correctly.  When the BIOS is configured for OS control for
    power management, the intel_pstate driver loads as expected.  When
    the BIOS is configured to provide the power management, the
    intel_pstate driver does not load and we get the pcc_cpufreq driver
    instead.]
    Signed-off-by: default avatarLinda Knippers <linda.knippers@hp.com>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    fbbcdc07
intel_pstate.c 20.6 KB