perf/x86/intel/uncore: Support Granite Rapids
authorKan Liang <kan.liang@linux.intel.com>
Fri, 17 Nov 2023 16:39:37 +0000 (08:39 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 24 Nov 2023 19:25:01 +0000 (20:25 +0100)
commit632c4bf6d007862307440b177d9fee829857e8bb
treebaa0432577a555f8d2907e3d13affe6cfae31aad
parentb560e0cd882b11921c84307efe139f1247434c5e
perf/x86/intel/uncore: Support Granite Rapids

The same as Sapphire Rapids, Granite Rapids also supports the discovery
table feature. All the basic uncore PMON information can be retrieved
from the discovery table which resides in the BIOS.

There are 4 new units are added on Granite Rapids, b2cmi, b2cxl, ubox,
and mdf_sbo. The layout of the counters is exactly the same as the
generic uncore counters. Only add a name for the new units. All the
details can be retrieved from the discovery table.
The description of the new units can be found at
https://www.intel.com/content/www/us/en/secure/content-details/772943/content-details.html

The other units, e.g., cha, iio, irp, pcu, and imc, are the same as
Sapphire Rapids.

Ignore the upi and b2upi units in the discovery table, which are broken
for now.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Ammy Yi <ammy.yi@intel.com>
Link: https://lore.kernel.org/r/20231117163939.2468007-3-kan.liang@linux.intel.com
arch/x86/events/intel/uncore.c
arch/x86/events/intel/uncore.h
arch/x86/events/intel/uncore_snbep.c