perf/x86/intel/uncore: Generic support for the MMIO type of uncore blocks
authorKan Liang <kan.liang@linux.intel.com>
Wed, 17 Mar 2021 17:59:37 +0000 (10:59 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 2 Apr 2021 08:04:55 +0000 (10:04 +0200)
commitc4c55e362a521d763356b9e02bc9a4348c71a471
tree76d73042a853978e3cdc5a71defb9027ff26d924
parent42839ef4a20a4bda415974ff0e7d85ff540fffa4
perf/x86/intel/uncore: Generic support for the MMIO type of uncore blocks

The discovery table provides the generic uncore block information
for the MMIO type of uncore blocks, which is good enough to provide
basic uncore support.

The box control field is composed of the BAR address and box control
offset. When initializing the uncore blocks, perf should ioremap the
address from the box control field.

Implement the generic support for the MMIO type of uncore block.

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/1616003977-90612-6-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/uncore.c
arch/x86/events/intel/uncore.h
arch/x86/events/intel/uncore_discovery.c
arch/x86/events/intel/uncore_discovery.h