Skip to content

RFC Add a header for MSR_PKG_CST_CONFIG_CONTROL

Artem Bityutskiy linux-pm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest1 patch 2 repliesIn review
  2. v1 RFC1 patch 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1x86: msr: add 'msr_pkg_cst_config_control.h' headerarch/x86/include/asm/msr_pkg_cst_config_control.h drivers/idle/intel_idle.c drivers/platform/x86/intel/pmc/cnp.c+46 -122 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC PATCH v2 0/1] Add a header for MSR_PKG_CST_CONFIG_CONTROL

From: Artem Bityutskiy <[email protected]>

Implement a suggestion from Rafael Wysocki. Previous version of the RFC:
https://lore.kernel.org/linux-pm/[email protected]/T/#t

The suggestion is to add a common helper for switching the C1 demotion feature on/off via MSR_PKG_CST_CONFIG_CONTROL.

Still RFC because I feel like the common helper is not universal enough, because the bit number was different on the Lincroft platform, and the MSR is not architectural, so may change from platform to platform.

Therefore, just to linux-pm as RFC so far, and as a single patch.

This patch applies on top of the following patch-set that I sent to linux-pm a bit earlier today:

Subject: [PATCH v3 0/3] intel_idle: Add C1 demotion on/off sysfs knob

Artem Bityutskiy (1):
x86: msr: add 'msr_pkg_cst_config_control.h' header

 .../include/asm/msr_pkg_cst_config_control.h  | 41 +++++++++++++++++++
 drivers/idle/intel_idle.c                     | 10 +----
 drivers/platform/x86/intel/pmc/cnp.c          |  7 ++--
 3 files changed, 46 insertions(+), 12 deletions(-)
 create mode 100644 arch/x86/include/asm/msr_pkg_cst_config_control.h
Signature · 1 line
2.48.1