]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ACPI / CPPC: Make CPPC ACPI driver aware of PCC subspace IDs
authorGeorge Cherian <george.cherian@cavium.com>
Tue, 23 Jan 2018 19:29:45 +0000 (12:29 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 14 Mar 2018 10:40:49 +0000 (11:40 +0100)
commit3d11161369741efae508cecde8bb80835cabd37e
tree816eb5580e24f323dffd3d30e0680aa0fff58aec
parent4cdd6bc0f682b35931b8836c07785e49d8cf95d3
ACPI / CPPC: Make CPPC ACPI driver aware of PCC subspace IDs

BugLink: https://bugs.launchpad.net/bugs/1745007
Based on ACPI 6.2 Section 8.4.7.1.9 If the PCC register space is used,
all PCC registers, for all processors in the same performance domain
(as defined by _PSD), must be defined to be in the same subspace.

Based on Section 14.1 of ACPI specification, it is possible to have a
maximum of 256 PCC subspace IDs. Add support of multiple PCC subspace
ID instead of using a single global pcc_data structure.

While at that, fix the time_delta check in send_pcc_cmd() so that
last_mpar_reset and mpar_count are initialized properly.

Signed-off-by: George Cherian <george.cherian@cavium.com>
Reviewed-by: Prashanth Prakash <pprakash@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 85b1407bf6d2f4a1583e9201b8c163703df733cc)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/acpi/cppc_acpi.c