]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Adjust _PSS[0] freqeuency if needed
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 15 Jun 2016 06:12:59 +0000 (23:12 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 14 Jun 2016 23:56:47 +0000 (01:56 +0200)
commit60e8b111adf78616274d07e917f07f0ee17bffb9
treed4951ccf23652a0e786af503d0e22f451e1ae993
parentac906ebd33f34471dcc16d6e467abbc77a95d2c8
cpufreq: intel_pstate: Adjust _PSS[0] freqeuency if needed

The maximum turbo P-State used by the intel_pstate driver may be
limited by ACPI _PSS table entry 0.  After commit 8e0035fa306e
(cpufreq: intel_pstate: Enforce _PPC limits), the maximum performance
on servers will be capped by the _PSS table entry 0 by default.

Even though that is formally correct, it may lead to preformance
regressions in some cases.  Namely, if the _PSS table entry 0 is
not the maximum turbo P-State, performance measured after commit
8e0035fa306e will not match the performance measured before that
commit on the same system.

For this reason, modify the code to always use the maximum turbo
frequency as the one that corresponds to _PSS table entry 0 if turbo
is enabled in the BIOS.  This way, the performance levels from
before commit 8e0035fa306e will be restored on the affected systems.

Fixes: 8e0035fa306e (cpufreq: intel_pstate: Enforce _PPC limits)
Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
[ rjw : Changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c