TencentOS-kernel/arch/x86/events
Kim Phillips 5dbc635ccc perf/amd/uncore: Add support for Family 19h L3 PMU
Family 19h introduces change in slice, core and thread specification in
its L3 Performance Event Select (ChL3PmcCfg) h/w register. The change is
incompatible with Family 17h's version of the register.

Introduce a new path in l3_thread_slice_mask() to do things differently
for Family 19h vs. Family 17h, otherwise the new hardware doesn't get
programmed correctly.

Instead of a linear core--thread bitmask, Family 19h takes an encoded
core number, and a separate thread mask. There are new bits that are set
for all cores and all slices, of which only the latter is used, since
the driver counts events for all slices on behalf of the specified CPU.

Also update amd_uncore_init() to base its L2/NB vs. L3/Data Fabric mode
decision based on Family 17h or above, not just 17h and 18h: the Family
19h Data Fabric PMC is compatible with the Family 17h DF PMC.

 [ bp: Touchups. ]

Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200313231024.17601-3-kim.phillips@amd.com
2021-09-23 19:21:43 +08:00
..
amd perf/amd/uncore: Add support for Family 19h L3 PMU 2021-09-23 19:21:43 +08:00
intel perf/x86/kvm: Fix Broadwell Xeon stepping in isolation_ucodes[] 2021-05-20 16:07:14 +08:00
Kconfig perf/x86/rapl: Move RAPL support to common x86 code 2021-03-16 16:31:24 +08:00
Makefile perf/x86/rapl: Fix RAPL config variable bug 2021-03-16 16:31:24 +08:00
core.c Intel: perf/x86: Fix n_metric for cancelled txn 2021-04-25 14:31:15 +08:00
msr.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
perf_event.h Intel: perf/x86: Fix n_metric for cancelled txn 2021-04-25 14:31:15 +08:00
probe.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
probe.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
rapl.c perf/x86: fix sysfs type mismatches 2021-03-16 16:41:40 +08:00