Skip to content

Commit ebabf9b

Browse files
weihuang-amdgregkh
authored andcommitted
acpi-cpufreq: Honor _PSD table setting on new AMD CPUs
commit 5368512 upstream. acpi-cpufreq has a old quirk that overrides the _PSD table supplied by BIOS on AMD CPUs. However the _PSD table of new AMD CPUs (Family 19h+) now accurately reports the P-state dependency of CPU cores. Hence this quirk needs to be fixed in order to support new CPUs' frequency control. Fixes: acd3162 ("acpi-cpufreq: Add quirk to disable _PSD usage on all AMD CPUs") Signed-off-by: Wei Huang <wei.huang2@amd.com> [ rjw: Subject edit ] Cc: 3.10+ <stable@vger.kernel.org> # 3.10+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6584331 commit ebabf9b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/cpufreq/acpi-cpufreq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,8 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
691691
cpumask_copy(policy->cpus, topology_core_cpumask(cpu));
692692
}
693693

694-
if (check_amd_hwpstate_cpu(cpu) && !acpi_pstate_strict) {
694+
if (check_amd_hwpstate_cpu(cpu) && boot_cpu_data.x86 < 0x19 &&
695+
!acpi_pstate_strict) {
695696
cpumask_clear(policy->cpus);
696697
cpumask_set_cpu(cpu, policy->cpus);
697698
cpumask_copy(data->freqdomain_cpus,

0 commit comments

Comments
 (0)