Skip to content

RFC cpuidle: intel_idle: Use ACPI _CTS to get idle states information

Rafael J. Wysocki linux-acpi linux-pm lkml 2 versions – New

Get series with b4
b4 am 35821518.IbFVMVmUy3@kreacher

Versions newest first · linked by author and title

  1. v2 RFC Latest9 patches 0 repliesNew
  2. v1 RFC6 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ACPI: processor: Export function to claim _CST controldrivers/acpi/acpi_processor.c drivers/acpi/processor_idle.c include/linux/acpi.h+35 -80 replies
2/9ACPI: processor: Introduce acpi_processor_evaluate_cst()drivers/acpi/processor_idle.c+32 -200 replies
3/9ACPI: processor: Clean up acpi_processor_evaluate_cst()drivers/acpi/processor_idle.c+52 -620 replies
4/9ACPI: processor: Export acpi_processor_evaluate_cst()drivers/acpi/acpi_processor.c drivers/acpi/processor_idle.c include/linux/acpi.h+166 -1420 replies
5/9intel_idle: Refactor intel_idle_cpuidle_driver_init()drivers/idle/intel_idle.c+25 -240 replies
6/9intel_idle: Use ACPI _CST for processor models without C-state tablesdrivers/idle/intel_idle.c+153 -280 replies
7/9cpuidle: 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/9intel_idle: Use ACPI _CST for selected known processorsdrivers/idle/intel_idle.c+42 -30 replies
9/9intel_idle: Add module parameter to prevent ACPI _CST from being useddrivers/idle/intel_idle.c+9 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC v2][PATCH 0/9] cpuidle: intel_idle: Use ACPI _CTS to get idle states information

Hi All,

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.

The patch [6/9] 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 [7/9] is the same as https://patchwork.kernel.org/patch/11256815/.

Patch [8/9] changes intel_idle to also use ACPI _CST if there is a tables of C-states for the given processor in the driver, in which case it will use the _CST information to decide which C-state to enable by default.

The last patch adds a module parameter called "no_acpi" that can be used to prevent intel_idle from using ACPI _CST via the kernel command line.

This has been lightly tested on a Dell XPS13 9360 (with an additional patch to drop the Kaby Lake entries from intel_idle_ids[] which normally would prevent intel_idle from registering itself as the cpuidle driver). The difference between using the idle states list from _CST and the built-in one generally is 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.

Thanks,
Rafael