[PATCH v1 0/2] Add MSR-based RAPL PMU support

Kuppuswamy Sathyanarayanan posted 2 patches 1 week, 4 days ago
drivers/powercap/intel_rapl_common.c          | 36 +++++++++--------
drivers/powercap/intel_rapl_msr.c             | 40 +++++++++++++++++--
drivers/powercap/intel_rapl_tpmi.c            |  2 +-
.../int340x_thermal/processor_thermal_rapl.c  |  2 +-
include/linux/intel_rapl.h                    |  2 +-
5 files changed, 59 insertions(+), 23 deletions(-)
[PATCH v1 0/2] Add MSR-based RAPL PMU support
Posted by Kuppuswamy Sathyanarayanan 1 week, 4 days ago
This patch series enables MSR-based PMU support for the Intel RAPL
driver in the Linux powercap subsystem.

Following are the patch details:

Patch 1/2 - Preparatory patch that updates the read_raw() interface
            to allow atomic-context callers.

Patch 2/2 - More details about motivation of this series and adds
            MSR-based RAPL PMU access support.

This series has been tested and verified in the Panther Lake and
Wildcat Lake platforms using perf tool.

Please let me know your review comments.

Kuppuswamy Sathyanarayanan (2):
  powercap: intel_rapl: Prepare read_raw interface for atomic-context
    callers
  powercap: intel_rapl: Enable MSR-based RAPL PMU support

 drivers/powercap/intel_rapl_common.c          | 36 +++++++++--------
 drivers/powercap/intel_rapl_msr.c             | 40 +++++++++++++++++--
 drivers/powercap/intel_rapl_tpmi.c            |  2 +-
 .../int340x_thermal/processor_thermal_rapl.c  |  2 +-
 include/linux/intel_rapl.h                    |  2 +-
 5 files changed, 59 insertions(+), 23 deletions(-)

-- 
2.43.0
Re: [PATCH v1 0/2] Add MSR-based RAPL PMU support
Posted by Pandruvada, Srinivas 1 week, 3 days ago
On Thu, 2025-11-20 at 16:05 -0800, Kuppuswamy Sathyanarayanan wrote:
> This patch series enables MSR-based PMU support for the Intel RAPL
> driver in the Linux powercap subsystem.
> 
> Following are the patch details:
> 
> Patch 1/2 - Preparatory patch that updates the read_raw() interface
>             to allow atomic-context callers.
> 
> Patch 2/2 - More details about motivation of this series and adds
>             MSR-based RAPL PMU access support.
> 
> This series has been tested and verified in the Panther Lake and
> Wildcat Lake platforms using perf tool.
> 
> Please let me know your review comments.
> 

Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>


> Kuppuswamy Sathyanarayanan (2):
>   powercap: intel_rapl: Prepare read_raw interface for atomic-context
>     callers
>   powercap: intel_rapl: Enable MSR-based RAPL PMU support
> 
>  drivers/powercap/intel_rapl_common.c          | 36 +++++++++--------
>  drivers/powercap/intel_rapl_msr.c             | 40
> +++++++++++++++++--
>  drivers/powercap/intel_rapl_tpmi.c            |  2 +-
>  .../int340x_thermal/processor_thermal_rapl.c  |  2 +-
>  include/linux/intel_rapl.h                    |  2 +-
>  5 files changed, 59 insertions(+), 23 deletions(-)
> 

Re: [PATCH v1 0/2] Add MSR-based RAPL PMU support
Posted by Rafael J. Wysocki 1 week, 3 days ago
On Fri, Nov 21, 2025 at 2:50 AM Pandruvada, Srinivas
<srinivas.pandruvada@intel.com> wrote:
>
> On Thu, 2025-11-20 at 16:05 -0800, Kuppuswamy Sathyanarayanan wrote:
> > This patch series enables MSR-based PMU support for the Intel RAPL
> > driver in the Linux powercap subsystem.
> >
> > Following are the patch details:
> >
> > Patch 1/2 - Preparatory patch that updates the read_raw() interface
> >             to allow atomic-context callers.
> >
> > Patch 2/2 - More details about motivation of this series and adds
> >             MSR-based RAPL PMU access support.
> >
> > This series has been tested and verified in the Panther Lake and
> > Wildcat Lake platforms using perf tool.
> >
> > Please let me know your review comments.
> >
>
> Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>

Both patches applied as 6.19 material, thanks!