OSDN Git Service

x86: intel_epb: Allow model specific normal EPB value
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 11 Dec 2021 16:33:27 +0000 (08:33 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Jan 2022 15:37:23 +0000 (16:37 +0100)
commit4ecc933b7d1f4793c51f6f716501b73aaa6ca5d0
treea54c35fd7e0edc2044403631fff1d20edea8b815
parentc9e6606c7fe92b50a02ce51dda82586ebdf99b48
x86: intel_epb: Allow model specific normal EPB value

The current EPB "normal" is defined as 6 and set whenever power-up EPB
value is 0. This setting resulted in the desired out of box power and
performance for several CPU generations. But this value is not suitable
for AlderLake mobile CPUs, as this resulted in higher uncore power.
Since EPB is model specific, this is not unreasonable to have different
behavior.

Allow a capability where "normal" EPB can be redefined. For AlderLake
mobile CPUs this desired normal value is 7.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/kernel/cpu/intel_epb.c