]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ACPI / CPPC: Make CPPC ACPI driver aware of PCC subspace IDs
authorGeorge Cherian <george.cherian@cavium.com>
Wed, 11 Oct 2017 08:54:58 +0000 (08:54 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Nov 2017 23:39:54 +0000 (00:39 +0100)
commit85b1407bf6d2f4a1583e9201b8c163703df733cc
tree7917e008abdc2af39e9be55cf1cee856d4718ee3
parentc4b766c2f3fc4d847f16a3735913b7edf3136343
ACPI / CPPC: Make CPPC ACPI driver aware of PCC subspace IDs

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>
drivers/acpi/cppc_acpi.c