]> 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)
commitdbb436851766fcb92a303b59b621846bb9047b3d
treed4951ccf23652a0e786af503d0e22f451e1ae993
parent605bd0667468fc5fbb64ed250d32f4fd48b92fec
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 d2d22baa7a1a
(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
d2d22baa7a1a 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 d2d22baa7a1a will be restored on the affected systems.

Fixes: d2d22baa7a1a (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