ACPI: CPPC: Don't require flexible address space if X86_FEATURE_CPPC is supported

Commit 0651ab90e4 ("ACPI: CPPC: Check _OSC for flexible address space")
changed _CPC probing to require flexible address space to be negotiated
for CPPC to work.

However it was observed that this caused a regression for Arek's ROG
Zephyrus G15 GA503QM which previously CPPC worked, but now it stopped
working.

To avoid causing a regression waive this failure when the CPU is known
to support CPPC.

Cc: Pierre Gondois <pierre.gondois@arm.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216248
Fixes: 0651ab90e4 ("ACPI: CPPC: Check _OSC for flexible address space")
Reported-and-tested-by: Arek Ruśniak <arek.rusi@gmail.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Mario Limonciello 2022-07-15 12:33:25 -05:00 committed by Rafael J. Wysocki
parent ff6992735a
commit 09073396ea
1 changed files with 4 additions and 2 deletions

View File

@ -782,6 +782,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
if (!osc_cpc_flexible_adr_space_confirmed) { if (!osc_cpc_flexible_adr_space_confirmed) {
pr_debug("Flexible address space capability not supported\n"); pr_debug("Flexible address space capability not supported\n");
if (!cpc_supported_by_cpu())
goto out_free; goto out_free;
} }
@ -809,6 +810,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
} }
if (!osc_cpc_flexible_adr_space_confirmed) { if (!osc_cpc_flexible_adr_space_confirmed) {
pr_debug("Flexible address space capability not supported\n"); pr_debug("Flexible address space capability not supported\n");
if (!cpc_supported_by_cpu())
goto out_free; goto out_free;
} }
} else { } else {