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

From: Pandruvada, Srinivas

Date: Thu Nov 20 2025 - 20:50:04 EST


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@xxxxxxxxxxxxxxx>


> 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(-)
>