Commit 09073396 authored by Mario Limonciello's avatar Mario Limonciello Committed by Rafael J. Wysocki
Browse files

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

Commit 0651ab90 ("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: 0651ab90 ("ACPI: CPPC: Check _OSC for flexible address space")
Reported-and-tested-by: default avatarArek Ruśniak <arek.rusi@gmail.com>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ff699273
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -782,6 +782,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)

					if (!osc_cpc_flexible_adr_space_confirmed) {
						pr_debug("Flexible address space capability not supported\n");
						if (!cpc_supported_by_cpu())
							goto out_free;
					}

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