mbox series

[RFC,v2,0/1] Add a header for MSR_PKG_CST_CONFIG_CONTROL

Message ID 20250317145430.2153013-1-dedekind1@gmail.com (mailing list archive)
Headers show
Series Add a header for MSR_PKG_CST_CONFIG_CONTROL | expand

Message

Artem Bityutskiy March 17, 2025, 2:54 p.m. UTC
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

Implement a suggestion from Rafael Wysocki. Previous version of the RFC:
https://lore.kernel.org/linux-pm/20250220154306.2166129-1-dedekind1@gmail.com/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
Link: https://lore.kernel.org/linux-pm/20250317135541.1471754-1-dedekind1@gmail.com/T/#t


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