mbox series

[v2,0/3] intel_idle: Add C1 demotion on/off sysfs knob

Message ID 20250220151702.2153579-1-dedekind1@gmail.com
Headers show
Series intel_idle: Add C1 demotion on/off sysfs knob | expand

Message

Artem Bityutskiy Feb. 20, 2025, 3:16 p.m. UTC
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

Version 2 of the patch. Find version 1 here:
https://patches.linaro.org/project/linux-pm/list/?series=260892

I believe I addressed all the comments except for this one from Rafael
Wysocki:

"This is not the only place where MSR_PKG_CST_CONFIG_CONTROL gets updated.
The other one is drivers/platform/x86/intel/pmc/cnp.c

There is no real conflict because the PMC core thing happens during system
suspend/resume on client platforms, but this is kind of duplicated code.
Any chance to consolidate this?"

This comment I am trying to address in a separate RFC patch that I am going
to send very soon.

Changelog

v1->v2:
  * Address comments from Rafael Wysocki:
    1. Rename the sysfs file from 'c1_demotion' to 'intel_c1_demotion'
    2. Add a commentary about reading the feature only for 1 CPU.
    3. Update Documentation/API (new patch 3/3).


Artem Bityutskiy (3):
  intel_idle: Add C1 demotion on/off sysfs knob
  Documentation: admin-guide: pm: document intel_idle C1 demotion
  Documentation: ABI: testing: document the new cpuidle sysfs file

 .../ABI/testing/sysfs-devices-system-cpu      |   7 +-
 Documentation/admin-guide/pm/intel_idle.rst   |  21 ++++
 drivers/idle/intel_idle.c                     | 103 ++++++++++++++++++
 3 files changed, 130 insertions(+), 1 deletion(-)