Skip to content

Commit ae21fba

Browse files
committed
Merge tag 'acpi-5.19-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fix from Rafael Wysocki: "Fix yet another piece of ACPI CPPC changes fallout on AMD platforms (Mario Limonciello)" * tag 'acpi-5.19-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: CPPC: Don't require flexible address space if X86_FEATURE_CPPC is supported
2 parents a523599 + 0907339 commit ae21fba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/acpi/cppc_acpi.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,8 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
782782

783783
if (!osc_cpc_flexible_adr_space_confirmed) {
784784
pr_debug("Flexible address space capability not supported\n");
785-
goto out_free;
785+
if (!cpc_supported_by_cpu())
786+
goto out_free;
786787
}
787788

788789
addr = ioremap(gas_t->address, gas_t->bit_width/8);
@@ -809,7 +810,8 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
809810
}
810811
if (!osc_cpc_flexible_adr_space_confirmed) {
811812
pr_debug("Flexible address space capability not supported\n");
812-
goto out_free;
813+
if (!cpc_supported_by_cpu())
814+
goto out_free;
813815
}
814816
} else {
815817
if (gas_t->space_id != ACPI_ADR_SPACE_FIXED_HARDWARE || !cpc_ffh_supported()) {

0 commit comments

Comments
 (0)