linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] powercap: Enable RAPL for AMD Fam17h
@ 2020-07-29 10:52 Victor Ding
  2020-07-29 10:52 ` [PATCH 2/3] powercap/intel_rapl_msr: Convert rapl_msr_priv into pointer Victor Ding
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Victor Ding @ 2020-07-29 10:52 UTC (permalink / raw)
  To: LKML
  Cc: Victor Ding, Alexander Shishkin, Borislav Petkov, H. Peter Anvin,
	Ingo Molnar, Jan Beulich, Josh Poimboeuf, Kim Phillips,
	Pawan Gupta, Peter Zijlstra (Intel),
	Rafael J. Wysocki, Sean Christopherson, Thomas Gleixner,
	Tony Luck, Vineela Tummalapalli, linux-pm, x86

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


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 |  2 +
 drivers/powercap/intel_rapl_msr.c    | 58 +++++++++++++++++++++-------
 3 files changed, 47 insertions(+), 16 deletions(-)

-- 
2.28.0.rc0.142.g3c755180ce-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-09-21 15:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29 10:52 [PATCH 0/3] powercap: Enable RAPL for AMD Fam17h Victor Ding
2020-07-29 10:52 ` [PATCH 2/3] powercap/intel_rapl_msr: Convert rapl_msr_priv into pointer Victor Ding
2020-07-29 10:52 ` [PATCH 3/3] powercap: Add AMD Fam17h RAPL support Victor Ding
2020-08-17 22:38   ` Kim Phillips
2020-09-21 15:51 ` [PATCH 0/3] powercap: Enable RAPL for AMD Fam17h Rafael J. Wysocki
2020-09-21 15:53   ` Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).