Skip to content

powercap: Enable RAPL for AMD Fam17h and Fam19h

Kim Phillips linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/msr-index: sort AMD RAPL MSRs by addressarch/x86/include/asm/msr-index.h+1 -10 replies
2/4powercap/intel_rapl_msr: Convert rapl_msr_priv into pointerdrivers/powercap/intel_rapl_msr.c+20 -170 replies
3/4powercap: Add AMD Fam17h RAPL supportarch/x86/include/asm/msr-index.h drivers/powercap/intel_rapl_common.c drivers/powercap/intel_rapl_msr.c+29 -12 replies
4/4powercap: Add AMD Fam19h RAPL supportdrivers/powercap/intel_rapl_common.c+1 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchKim Phillips
1/4A-b
2/4A-b
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] powercap: Enable RAPL for AMD Fam17h and Fam19h

From: Victor Ding <[email protected]>

This patch series adds support for AMD Fam17h RAPL counters. As per AMD PPR, Fam17h support RAPL counters to monitor power usage. The RAPL counter operates as with Intel RAPL. Therefore, it is beneficial to re-use existing framework for Intel, especially to allow existing tools to seamlessly run on AMD.

From the user's point view, this series enables the following two sysfs entry on AMD Fam17h:
/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0/energy_uj

Cc Victor Ding <[email protected]>
Cc Alexander Shishkin <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Daniel Lezcano <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Josh Poimboeuf <[email protected]>
Cc Pawan Gupta <[email protected]>
Cc "Peter Zijlstra (Intel)" <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Sean Christopherson <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Tony Luck <[email protected]>
Cc Vineela Tummalapalli <[email protected]>

Kim Phillips (1):
powercap: Add AMD Fam19h RAPL support

Victor Ding (3):
x86/msr-index: sort AMD RAPL MSRs by address powercap/intel_rapl_msr: Convert rapl_msr_priv into pointer
powercap: Add AMD Fam17h RAPL support

 arch/x86/include/asm/msr-index.h     |  3 +-
 drivers/powercap/intel_rapl_common.c |  3 ++
 drivers/powercap/intel_rapl_msr.c    | 62 ++++++++++++++++++++--------
 3 files changed, 50 insertions(+), 18 deletions(-)

v2: Kim's changes from Victor's original submission:

https://lore.kernel.org/lkml/[email protected]/

- Added the Fam19h patch to the end of the series
- Added my Acked-by
- Added Daniel Lezcano to Cc
- (linux-pm was already on Cc)
- (No code changes)

Signature · 1 line
2.27.0