]> Git Repo - linux.git/commitdiff
perf/x86/intel: Fix pebs event constraints for ADL
authorKan Liang <[email protected]>
Thu, 18 Aug 2022 18:44:29 +0000 (11:44 -0700)
committerPeter Zijlstra <[email protected]>
Fri, 19 Aug 2022 17:47:31 +0000 (19:47 +0200)
According to the latest event list, the LOAD_LATENCY PEBS event only
works on the GP counter 0 and 1 for ADL and RPL.

Update the pebs event constraints table.

Fixes: f83d2f91d259 ("perf/x86/intel: Add Alder Lake Hybrid support")
Reported-by: Ammy Yi <[email protected]>
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/events/intel/ds.c

index e5b58749912270fd079bc15a253017933304cf28..de1f55d517847b04e039eacbe9ff1765b563a1f6 100644 (file)
@@ -830,7 +830,7 @@ struct event_constraint intel_glm_pebs_event_constraints[] = {
 
 struct event_constraint intel_grt_pebs_event_constraints[] = {
        /* Allow all events as PEBS with no flags */
-       INTEL_HYBRID_LAT_CONSTRAINT(0x5d0, 0xf),
+       INTEL_HYBRID_LAT_CONSTRAINT(0x5d0, 0x3),
        INTEL_HYBRID_LAT_CONSTRAINT(0x6d0, 0xf),
        EVENT_CONSTRAINT_END
 };
This page took 0.051599 seconds and 4 git commands to generate.