mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] RAPL driver fixes for AMD CPUs
@ 2024-07-30  4:49 Dhananjay Ugwekar
  2024-07-30  4:49 ` [PATCH v2 1/2] perf/x86/rapl: Fix the energy-pkg event " Dhananjay Ugwekar
  2024-07-30  4:49 ` [PATCH v2 2/2] powercap/intel_rapl: " Dhananjay Ugwekar
  0 siblings, 2 replies; 9+ messages in thread
From: Dhananjay Ugwekar @ 2024-07-30  4:49 UTC (permalink / raw)
  To: peterz, mingo, acme, namhyung, mark.rutland, alexander.shishkin,
	jolsa, irogers, adrian.hunter, kan.liang, tglx, bp, dave.hansen,
	x86, rui.zhang
  Cc: linux-perf-users, linux-kernel, linux-pm, ananth.narayan,
	gautham.shenoy, kprateek.nayak, ravi.bangoria, Dhananjay.Ugwekar

After commit ("x86/cpu/topology: Add support for the AMD 0x80000026 leaf"),
AMD CPUs with 0x80000026 leaf have become CCD(Core Complex Die)-aware and 
this CCD info is reported by the _die_ macros, which earlier used to return
package info.

e.g: Earlier topology_logical_die_id() and topology_logical_package_id()
used to return the same value for all the CPUs even on a multi-die/
multi-CCD system. But after the above mentioned commit, 
topology_logical_die_id() returns the CCD id and 
topology_logical_package_id() returns the package/socket id.

Hence, the RAPL energy-pkg event which uses _die_ macros has to be
fixed, in light of above change.

Dhananjay Ugwekar (2):
  perf/x86/rapl: Fix the energy-pkg event for AMD CPUs
  powercap/intel_rapl: Fix the energy-pkg event for AMD CPUs

 arch/x86/events/rapl.c               | 47 +++++++++++++++++++++++++---
 drivers/powercap/intel_rapl_common.c | 34 +++++++++++++++++---
 2 files changed, 72 insertions(+), 9 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-08-21  4:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-30  4:49 [PATCH v2 0/2] RAPL driver fixes for AMD CPUs Dhananjay Ugwekar
2024-07-30  4:49 ` [PATCH v2 1/2] perf/x86/rapl: Fix the energy-pkg event " Dhananjay Ugwekar
2024-08-02 15:26   ` Liang, Kan
2024-08-08 12:10     ` Dhananjay Ugwekar
2024-07-30  4:49 ` [PATCH v2 2/2] powercap/intel_rapl: " Dhananjay Ugwekar
2024-08-02 12:35   ` Rafael J. Wysocki
2024-08-08 11:17     ` Dhananjay Ugwekar
2024-08-19 13:34       ` Rafael J. Wysocki
2024-08-21  4:57         ` Gautham R. Shenoy

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

all inboxes | Powered by JetHome®