Skip to content

Commit 2e34689

Browse files
Dapeng Migregkh
authored andcommitted
perf/x86/intel: Enable auto counter reload for DMR
commit aa4384b upstream. Panther cove µarch starts to support auto counter reload (ACR), but the static_call intel_pmu_enable_acr_event() is not updated for the Panther Cove µarch used by DMR. It leads to the auto counter reload is not really enabled on DMR. Update static_call intel_pmu_enable_acr_event() in intel_pmu_init_pnc(). Fixes: d345b6b ("perf/x86/intel: Add core PMU support for DMR") Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260430002558.712334-5-dapeng1.mi@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 53df288 commit 2e34689

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/events/intel/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7525,6 +7525,7 @@ static __always_inline void intel_pmu_init_pnc(struct pmu *pmu)
75257525
hybrid(pmu, event_constraints) = intel_pnc_event_constraints;
75267526
hybrid(pmu, pebs_constraints) = intel_pnc_pebs_event_constraints;
75277527
hybrid(pmu, extra_regs) = intel_pnc_extra_regs;
7528+
static_call_update(intel_pmu_enable_acr_event, intel_pmu_enable_acr);
75287529
}
75297530

75307531
static __always_inline void intel_pmu_init_skt(struct pmu *pmu)

0 commit comments

Comments
 (0)