]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/core: Set pebs_capable and PMU_FL_PEBS_ALL for the Baseline
authorPeter Zijlstra <peterz@infradead.org>
Tue, 16 Aug 2022 11:40:57 +0000 (19:40 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 19 Aug 2022 17:47:31 +0000 (19:47 +0200)
commit34bcee99edc7ce8b84cd3e6cea663bc5a3e1f51b
tree664e979cf0d5cd79348af8736a9a6e62c1c1e986
parent243333e4e60ce5bb030d73c7ae64fed174e26c3f
perf/x86/core: Set pebs_capable and PMU_FL_PEBS_ALL for the Baseline

The SDM explicitly states that PEBS Baseline implies Extended PEBS.
For cpu model forward compatibility (e.g. on ICX, SPR, ADL), it's
safe to stop doing FMS table thing such as setting pebs_capable and
PMU_FL_PEBS_ALL since it's already set in the intel_ds_init().

The Goldmont Plus is the only platform which supports extended PEBS
but doesn't have Baseline. Keep the status quo.

Reported-by: Like Xu <likexu@tencent.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lkml.kernel.org/r/20220816114057.51307-1-likexu@tencent.com
arch/x86/events/intel/core.c
arch/x86/events/intel/ds.c