perf/x86/intel/uncore: Add IMC uncore support for ADL
Current ADL uncore code only supports the legacy IMC (memory controller) free-running counters. Besides the free-running counters, ADL also supports several general purpose-counters. The general-purpose counters can also be accessed via MMIO but in a different location. Factor out __uncore_imc_init_box() with offset as a parameter. The function can be shared between ADL and TGL. The event format and the layout of the control registers are a little bit different from other uncore counters. The intel_generic_uncore_mmio_enable_event() can be shared with client IMC uncore. Expose the function. Add more PCI IDs for ADL machines. Fixes: 772ed05f ("perf/x86/intel/uncore: Add Alder Lake support") Signed-off-by:Kan Liang <kan.liang@linux.intel.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/1642111554-118524-1-git-send-email-kan.liang@linux.intel.com
Showing
- arch/x86/events/intel/uncore.c 1 addition, 1 deletionarch/x86/events/intel/uncore.c
- arch/x86/events/intel/uncore.h 2 additions, 1 deletionarch/x86/events/intel/uncore.h
- arch/x86/events/intel/uncore_discovery.c 2 additions, 2 deletionsarch/x86/events/intel/uncore_discovery.c
- arch/x86/events/intel/uncore_discovery.h 2 additions, 0 deletionsarch/x86/events/intel/uncore_discovery.h
- arch/x86/events/intel/uncore_snb.c 213 additions, 1 deletionarch/x86/events/intel/uncore_snb.c
Please register or sign in to comment