diff options
author | Kan Liang <kan.liang@linux.intel.com> | 2021-03-17 20:59:37 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-04-02 11:04:55 +0300 |
commit | c4c55e362a521d763356b9e02bc9a4348c71a471 (patch) | |
tree | 76d73042a853978e3cdc5a71defb9027ff26d924 /arch/x86/events/intel/uncore.c | |
parent | 42839ef4a20a4bda415974ff0e7d85ff540fffa4 (diff) | |
download | linux-c4c55e362a521d763356b9e02bc9a4348c71a471.tar.xz |
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
Diffstat (limited to 'arch/x86/events/intel/uncore.c')
-rw-r--r-- | arch/x86/events/intel/uncore.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/events/intel/uncore.c b/arch/x86/events/intel/uncore.c index 3109082f38bd..35b347027f93 100644 --- a/arch/x86/events/intel/uncore.c +++ b/arch/x86/events/intel/uncore.c @@ -1755,6 +1755,7 @@ static const struct intel_uncore_init_fun snr_uncore_init __initconst = { static const struct intel_uncore_init_fun generic_uncore_init __initconst = { .cpu_init = intel_uncore_generic_uncore_cpu_init, .pci_init = intel_uncore_generic_uncore_pci_init, + .mmio_init = intel_uncore_generic_uncore_mmio_init, }; static const struct x86_cpu_id intel_uncore_match[] __initconst = { |