Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH V2 0/3] powercap: Introduce TPMI RAPL PMU support
@ 2024-04-08  3:51 Zhang Rui
  2024-04-08  3:51 ` [PATCH V2 1/3] powercap: intel_rapl: Sort header files Zhang Rui
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Zhang Rui @ 2024-04-08  3:51 UTC (permalink / raw)
  To: rafael.j.wysocki; +Cc: linux-kernel, linux-pm, srinivas.pandruvada

RAPL energy counter MSRs are exposed via perf PMU. But this is done by
separate code which is not part of RAPL framework, and it cannot be
reused by other RAPL Interface drivers like TPMI RAPL.

Introduce two new APIs for PMU support in RAPL framework. This allows
TPMI RAPL PMU support and also makes it possible for future cleanups of
MSR RAPL PMU code.

Changes since V1:
- remove the MSR RAPL PMU conversion because it is a separate work that
  can be done later.
- instead of using a flag to indicate the need of PMU support, introduce
  two APIs for the RAPL Interface driver to invoke explicitly.
- minor code/comments/changelog improvements.

thanks,
rui

----------------------------------------------------------------
Zhang Rui (3):
      powercap: intel_rapl: Sort header files
      powercap: intel_rapl: Introduce APIs for PMU support
      powercap: intel_rapl_tpmi: Enable PMU support

 drivers/powercap/intel_rapl_common.c | 561 ++++++++++++++++++++++++++++++++++-
 drivers/powercap/intel_rapl_tpmi.c   |   3 +
 include/linux/intel_rapl.h           |  23 ++
 3 files changed, 575 insertions(+), 12 deletions(-)

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

end of thread, other threads:[~2024-04-22 16:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-08  3:51 [PATCH V2 0/3] powercap: Introduce TPMI RAPL PMU support Zhang Rui
2024-04-08  3:51 ` [PATCH V2 1/3] powercap: intel_rapl: Sort header files Zhang Rui
2024-04-16 14:01   ` Rafael J. Wysocki
2024-04-17  1:57     ` Zhang, Rui
2024-04-17  8:34       ` Rafael J. Wysocki
2024-04-08  3:51 ` [PATCH V2 2/3] powercap: intel_rapl: Introduce APIs for PMU support Zhang Rui
2024-04-16 13:58   ` Rafael J. Wysocki
2024-04-17  5:26     ` Zhang, Rui
2024-04-22 16:23       ` Zhang, Rui
2024-04-08  3:51 ` [PATCH V2 3/3] powercap: intel_rapl_tpmi: Enable " Zhang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox