perf/x86/intel/uncore: Generic uncore_get_uncores and MMIO format of SPR
authorKan Liang <kan.liang@linux.intel.com>
Fri, 17 Nov 2023 16:39:35 +0000 (08:39 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 24 Nov 2023 19:25:00 +0000 (20:25 +0100)
commitcf35791476fcb3230b98a42241a56242d60ebdd3
tree2acc66de59bf21795c5b934ee363560b75789cf6
parent388a1fb7da6aaa1970c7e2a7d7fcd983a87a8484
perf/x86/intel/uncore: Generic uncore_get_uncores and MMIO format of SPR

Factor out SPR_UNCORE_MMIO_COMMON_FORMAT which can be reused by
Granite Rapids in the following patch.

Granite Rapids have more uncore units than Sapphire Rapids. Add new
parameters to support adjustable uncore units.

No functional change.

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-1-kan.liang@linux.intel.com
arch/x86/events/intel/uncore_snbep.c