powercap: Enable RAPL for AMD Fam17h and Fam19h
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 9 repliesIn review
- v13 patches 3 repliesSuperseded
Changes in v3 from the cover letter
By Victor Ding <[email protected]>
- Rebased to the latest code.
- Created a new rapl_defaults for AMD CPUs.
- Removed redundant setting to zeros.
- Stopped using the fake power limit domain 1.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | x86/msr-index: sort AMD RAPL MSRs by addressarch/ | +1 | 0 replies | |
| 2/4 | powercap/intel_rapl_msr: Convert rapl_msr_priv into pointerdrivers/ | +18 | 0 replies | |
| 3/4 | powercap: Add AMD Fam17h RAPL supportarch/ drivers/ drivers/ | +26 | 8 replies | |
| 4/4 | powercap: Add AMD Fam19h RAPL supportdrivers/ | +1 | 0 replies |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Kim Phillips |
|---|---|
| 1/4 | A-b |
| 2/4 | A-b |
| 3/4 | A-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/4] powercap: Enable RAPL for AMD Fam17h and Fam19h
This patch series adds support for AMD Fam17h RAPL counters. As per AMD PPR, Fam17h and Fam19h 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 or Fam19h:
/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0/energy_uj
Changes in v3:
By Victor Ding <[email protected]>
- Rebased to the latest code.
- Created a new rapl_defaults for AMD CPUs.
- Removed redundant setting to zeros.
- Stopped using the fake power limit domain 1.
Changes in v2:
By Kim Phillips <[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)
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 | 7 ++++ drivers/powercap/intel_rapl_msr.c | 51 ++++++++++++++++++++-------- 3 files changed, 45 insertions(+), 16 deletions(-)
Signature · 1 line
2.29.0.rc2.309.g374f81d7ae-goog