Skip to content

cpuidle: intel_idle: Use ACPI _CST to get idle states information

Rafael J. Wysocki linux-acpi linux-pm lkml 1 version New

Get series with b4
b4 am 3950312.2WmFeOdZGY@kreacher

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ACPI: processor: Export function to claim _CST controldrivers/acpi/acpi_processor.c drivers/acpi/processor_idle.c include/linux/acpi.h+35 -80 replies
2/10ACPI: processor: Introduce acpi_processor_evaluate_cst()drivers/acpi/processor_idle.c+32 -200 replies
3/10ACPI: processor: Clean up acpi_processor_evaluate_cst()drivers/acpi/processor_idle.c+52 -620 replies
4/10ACPI: processor: Export acpi_processor_evaluate_cst()drivers/acpi/acpi_processor.c drivers/acpi/processor_idle.c include/linux/acpi.h+166 -1420 replies
5/10intel_idle: Refactor intel_idle_cpuidle_driver_init()drivers/idle/intel_idle.c+25 -240 replies
6/10intel_idle: Use ACPI _CST for processor models without C-state tablesdrivers/idle/intel_idle.c+162 -280 replies
7/10cpuidle: Allow idle states to be disabled by defaultDocumentation/ABI/testing/sysfs-devices-system-cpu Documentation/admin-guide/pm/cpuidle.rst drivers/cpuidle/cpuidle.c +2 more+25 -10 replies
8/10intel_idle: Allow ACPI _CST to be used for selected known processorsdrivers/idle/intel_idle.c+42 -30 replies
9/10intel_idle: Add module parameter to prevent ACPI _CST from being useddrivers/idle/intel_idle.c+9 -00 replies
10/10intel_idle: Use ACPI _CST on server systemsdrivers/idle/intel_idle.c+50 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 00/10] cpuidle: intel_idle: Use ACPI _CST to get idle states information

Hi All,

The RFC of this does not seem to have attracted much attention, so here goes the first non-RFC revision.

The purpose of this set of patches is to allow the intel_idle driver to use C-states information from ACPI _CST on systems where the processor is not recognized by it.

The first five patches are preparatory (please look into the changelogs for details) and are not expected to make any functional difference.

Patch [06/10] adds ACPI _CST support to intel_idle so that _CST is used when the driver does not have a dedicated list of C-states for the given processor.

Patch [07/10] is an update of https://patchwork.kernel.org/patch/11256815/.

Patch [08/10] changes intel_idle to also use ACPI _CST in specific cases when there is a tables of C-states for the given processor in the driver (it will use the _CST information to decide which C-state to enable by default then).

Patch [09/10] adds a module parameter called "no_acpi" that can be used to prevent intel_idle from using ACPI _CST via the kernel command line.

Finally, the last patch makes intel_idle use ACPI _CST, if available, on all server systems supported by it.

This has been lightly tested on a Dell XPS13 9360 (with an additional patch to set use_acpi for Kaby Lake). The difference between using the idle states list from _CST and the built-in one generally appears to be that in the latter case the processor spends more time in package C-state when the system is idle.

If there are any concerns about this series, please let me know.

For easier access, the patches are available from the intel_idle+acpi branch in the linux-pm.git tree.

Thanks,
Rafael