Re: [PATCH] perf/x86/rapl: Fix PP1 event for Intel Meteor/Lunar Lake

2025-02-20 Thread Dave Hansen
On 2/20/25 10:27, Lucas De Marchi wrote: > On Thu, Feb 20, 2025 at 08:28:01AM -0800, Dave Hansen wrote: >> On 2/20/25 07:36, Lucas De Marchi wrote: >>> On some boots the read of MSR_PP1_ENERGY_STATUS msr returns 0, causing >>> perf_msr_probe() to make the power/events/energy-gpu event non-visible.

Re: [PATCH] perf/x86/rapl: Fix PP1 event for Intel Meteor/Lunar Lake

2025-02-20 Thread Lucas De Marchi
On Thu, Feb 20, 2025 at 11:47:21AM -0500, Liang, Kan wrote: On 2025-02-20 10:36 a.m., Lucas De Marchi wrote: On some boots the read of MSR_PP1_ENERGY_STATUS msr returns 0, causing perf_msr_probe() to make the power/events/energy-gpu event non-visible. When that happens, the msr always read 0 u

Re: [PATCH] perf/x86/rapl: Fix PP1 event for Intel Meteor/Lunar Lake

2025-02-20 Thread Lucas De Marchi
On Thu, Feb 20, 2025 at 08:28:01AM -0800, Dave Hansen wrote: On 2/20/25 07:36, Lucas De Marchi wrote: On some boots the read of MSR_PP1_ENERGY_STATUS msr returns 0, causing perf_msr_probe() to make the power/events/energy-gpu event non-visible. When that happens, the msr always read 0 until the

Re: [PATCH] perf/x86/rapl: Fix PP1 event for Intel Meteor/Lunar Lake

2025-02-20 Thread Liang, Kan
On 2025-02-20 10:36 a.m., Lucas De Marchi wrote: > On some boots the read of MSR_PP1_ENERGY_STATUS msr returns 0, causing > perf_msr_probe() to make the power/events/energy-gpu event non-visible. > When that happens, the msr always read 0 until the graphics module (i915 > for Meteor Lake, xe for

Re: [PATCH] perf/x86/rapl: Fix PP1 event for Intel Meteor/Lunar Lake

2025-02-20 Thread Dave Hansen
On 2/20/25 07:36, Lucas De Marchi wrote: > On some boots the read of MSR_PP1_ENERGY_STATUS msr returns 0, causing > perf_msr_probe() to make the power/events/energy-gpu event non-visible. > When that happens, the msr always read 0 until the graphics module (i915 > for Meteor Lake, xe for Lunar Lake

[PATCH] perf/x86/rapl: Fix PP1 event for Intel Meteor/Lunar Lake

2025-02-20 Thread Lucas De Marchi
On some boots the read of MSR_PP1_ENERGY_STATUS msr returns 0, causing perf_msr_probe() to make the power/events/energy-gpu event non-visible. When that happens, the msr always read 0 until the graphics module (i915 for Meteor Lake, xe for Lunar Lake) is loaded. Then it starts returning something d