[PATCH v1 0/7] RAPL fixes (for linux-next)

Kuppuswamy Sathyanarayanan posted 7 patches 9 hours ago
drivers/powercap/intel_rapl_common.c          | 421 +-----------------
drivers/powercap/intel_rapl_msr.c             | 392 ++++++++++++++--
drivers/powercap/intel_rapl_tpmi.c            |  53 +++
.../int340x_thermal/processor_thermal_rapl.c  |  72 +++
include/linux/intel_rapl.h                    |  34 +-
5 files changed, 522 insertions(+), 450 deletions(-)
[PATCH v1 0/7] RAPL fixes (for linux-next)
Posted by Kuppuswamy Sathyanarayanan 9 hours ago
Hi Rafael,

This series consolidates and rebases patches from three previously
submitted cleanup series that were dropped from your linux-next due
to a circular locking dependency issue:

  https://lore.kernel.org/linux-pm/202603300921.b5dc709c-lkp@intel.com/

The three series are:

  Move RAPL defaults to interface drivers:
  https://lore.kernel.org/linux-pm/20260212233044.329790-1-sathyanarayanan.kuppuswamy@linux.intel.com/

  Move RAPL primitives to interface drivers:
  https://lore.kernel.org/linux-pm/20260313185333.2370733-1-sathyanarayanan.kuppuswamy@linux.intel.com/

  Consolidate CPU list in RAPL MSR drivers:
  https://lore.kernel.org/linux-pm/20260313190052.2370963-1-sathyanarayanan.kuppuswamy@linux.intel.com/

The circular locking dependency was introduced by a patch in the first
series that registered and unregistered the PM notifier dynamically
from rapl_add_package_cpuslocked() and rapl_remove_package_cpuslocked(),
which are called from CPU hotplug callbacks leading to circular
dependency between PM notifier lock and hotplug locks.

That patch has been dropped in this series. The PM notifier
registration is kept in rapl_init()/rapl_exit() as it was originally,
and the remaining dependent patches are rebased on top of this.

This series is based on top of:
  https://github.com/rafaeljw/linux-pm/tree/pm-powercap

Kuppuswamy Sathyanarayanan (7):
  powercap: intel_rapl: Move MSR default settings into MSR interface
    driver
  powercap: intel_rapl: Remove unused macro definitions
  powercap: intel_rapl: Move primitive info to header for interface
    drivers
  powercap: intel_rapl: Move TPMI primitives to TPMI driver
  thermal: intel: int340x: processor: Move MMIO primitives to MMIO
    driver
  powercap: intel_rapl: Move MSR primitives to MSR driver
  powercap: intel_rapl: Consolidate PL4 and PMU support flags into
    rapl_defaults

 drivers/powercap/intel_rapl_common.c          | 421 +-----------------
 drivers/powercap/intel_rapl_msr.c             | 392 ++++++++++++++--
 drivers/powercap/intel_rapl_tpmi.c            |  53 +++
 .../int340x_thermal/processor_thermal_rapl.c  |  72 +++
 include/linux/intel_rapl.h                    |  34 +-
 5 files changed, 522 insertions(+), 450 deletions(-)

-- 
2.43.0