linux/drivers/acpi/arm64
Breno Leitao 3ea4415015 ACPI: arm64: cpuidle: Tolerate platforms with no deep PSCI idle states
Commit cac173bea5 ("ACPI: processor: idle: Rework the handling of
acpi_processor_ffh_lpi_probe()") moved the acpi_processor_ffh_lpi_probe()
call from acpi_processor_setup_cpuidle_dev(), where its return value was
ignored, to acpi_processor_get_power_info(), where it is now treated as
a hard failure. As a result, platforms where psci_acpi_cpu_init_idle()
returned -ENODEV stopped registering any cpuidle states, forcing CPUs to
busy-poll when idle.

On NVIDIA Grace (aarch64) systems with PSCIv1.1, pr->power.count is 1
(only WFI, no deep PSCI states beyond it), so the previous
"count = pr->power.count - 1; if (count <= 0) return -ENODEV;" check
returned -ENODEV for all 72 CPUs and disabled cpuidle entirely.

The lpi_states count is already validated in acpi_processor_get_lpi_info(),
so the check here is redundant. Simplify the loop to iterate over
lpi_states[1..power.count). When only WFI is present, the loop body
simply does not execute and the function returns 0, which is the correct
outcome: there is nothing to validate for FFH and no error to report.

Suggested-by: Huisong Li <lihuisong@huawei.com>
Cc: stable@vger.kernel.org
Fixes: cac173bea5 ("ACPI: processor: idle: Rework the handling of acpi_processor_ffh_lpi_probe()")
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Sudeep Holla <sudeep.holla@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2026-04-27 13:39:32 +01:00
..
agdi.c ACPI: AGDI: fix missing newline in error message 2026-04-08 17:45:06 +01:00
amba.c ACPI / amba: Drop unnecessary check for registered amba_dummy_clk 2024-06-24 18:36:07 +01:00
apmt.c Merge branches 'for-next/kpti', 'for-next/missing-proto-warn', 'for-next/iss2-decode', 'for-next/kselftest', 'for-next/misc', 'for-next/feat_mops', 'for-next/module-alloc', 'for-next/sysreg', 'for-next/cpucap', 'for-next/acpi', 'for-next/kdump', 'for-next/acpi-doc', 'for-next/doc' and 'for-next/tpidr2-fix', remote-tracking branch 'arm64/for-next/perf' into for-next/core 2023-06-23 18:32:20 +01:00
cpuidle.c ACPI: arm64: cpuidle: Tolerate platforms with no deep PSCI idle states 2026-04-27 13:39:32 +01:00
dma.c iommu: Get DT/ACPI parsing into the proper probe path 2025-03-11 14:05:43 +01:00
ffh.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
gtdt.c arm64 updates for 6.19: 2025-12-02 17:03:55 -08:00
init.c ACPI: introduce acpi_arch_init() 2024-11-22 21:32:25 +01:00
init.h ACPI: Move AMBA bus scan handling into arm64 specific directory 2023-08-01 13:59:25 +02:00
iort.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig ACPI / MPAM: Parse the MPAM table 2025-11-19 18:34:20 +00:00
Makefile ACPI / MPAM: Parse the MPAM table 2025-11-19 18:34:20 +00:00
mpam.c ACPI / MPAM: Parse the MPAM table 2025-11-19 18:34:20 +00:00
thermal_cpufreq.c ACPI: arm64: export acpi_arch_thermal_cpufreq_pctg() 2023-12-13 13:53:01 +01:00