Commit e91ec3b9 authored by Srinivas Pandruvada's avatar Srinivas Pandruvada Committed by yingbao jia
Browse files

cpufreq: intel_pstate: Enable HWP IO boost for all servers

mainline inclusion
from mainline-v6.4-rc1
commit 1f5e62f5
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I78I87
CVE: NA
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1f5e62f5fb217f2c1e003236be7d03cf606c26c4



Intel-SIG: commit 1f5e62f5 cpufreq: intel_pstate: Enable HWP IO boost for all servers.
Backport for intel-pstate driver

-------------------------------------------------

The HWP IO boost results in slight improvements for IO performance on
both Ice Lake and Sapphire Rapid servers.

Currently there is a CPU model check for Skylake desktop and server along
with the ACPI PM profile for performance and enterprise servers to enable
IO boost.

Remove the CPU model check, so that all current server models enable HWP
IO boost by default.

Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avataryingbao jia <yingbao.jia@intel.com>
parent a07538b9
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -2121,12 +2121,6 @@ static const struct x86_cpu_id intel_pstate_cpu_ee_disable_ids[] = {
	{}
};

static const struct x86_cpu_id intel_pstate_hwp_boost_ids[] = {
	X86_MATCH(SKYLAKE_X,		core_funcs),
	X86_MATCH(SKYLAKE,		core_funcs),
	{}
};

static int intel_pstate_init_cpu(unsigned int cpunum)
{
	struct cpudata *cpu;
@@ -2145,12 +2139,9 @@ static int intel_pstate_init_cpu(unsigned int cpunum)
		cpu->epp_default = -EINVAL;

		if (hwp_active) {
			const struct x86_cpu_id *id;

			intel_pstate_hwp_enable(cpu);

			id = x86_match_cpu(intel_pstate_hwp_boost_ids);
			if (id && intel_pstate_acpi_pm_profile_server())
			if (intel_pstate_acpi_pm_profile_server())
				hwp_boost = true;
		}
	} else if (hwp_active) {