Re: [PATCH v4 02/11] perf/x86/rapl: Fix the energy-pkg event for AMD CPUs

2024-07-16 Thread Dhananjay Ugwekar
Hello Peter, Rui, After Ian's comments on the series, I have decided to rethink the approach of adding a new PMU for the per-core RAPL counters. However this patch is still needed as a fix for the commit ("x86/cpu/topology: Add support for the AMD 0x8026 leaf"), I will be sending this separa

Re: [PATCH v4 02/11] perf/x86/rapl: Fix the energy-pkg event for AMD CPUs

2024-07-11 Thread Dhananjay Ugwekar
Hello Rui, On 7/12/2024 7:34 AM, Zhang, Rui wrote: > On Thu, 2024-07-11 at 10:24 +, Dhananjay Ugwekar wrote: >> After commit ("x86/cpu/topology: Add support for the AMD 0x8026 >> leaf"), >> on AMD processors that support extended CPUID leaf 0x8026, the >> topology_die_cpumask() and top

Re: [PATCH v4 02/11] perf/x86/rapl: Fix the energy-pkg event for AMD CPUs

2024-07-11 Thread Zhang, Rui
On Thu, 2024-07-11 at 10:24 +, Dhananjay Ugwekar wrote: > After commit ("x86/cpu/topology: Add support for the AMD 0x8026 > leaf"), > on AMD processors that support extended CPUID leaf 0x8026, the > topology_die_cpumask() and topology_logical_die_id() macros, no > longer > return the pa

[PATCH v4 02/11] perf/x86/rapl: Fix the energy-pkg event for AMD CPUs

2024-07-11 Thread Dhananjay Ugwekar
After commit ("x86/cpu/topology: Add support for the AMD 0x8026 leaf"), on AMD processors that support extended CPUID leaf 0x8026, the topology_die_cpumask() and topology_logical_die_id() macros, no longer return the package cpumask and package id, instead they return the CCD (Core Complex