diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2024-07-31 16:13:53 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2024-08-05 16:54:46 +0200 |
commit | aaad0e2aa50723969f96b690f72e2f4aefa433f2 (patch) | |
tree | 6c6017866e0c859c2d480e6baa0bf8b2bb827c18 /arch/x86/events | |
parent | perf/x86/intel/uncore: Add LNL uncore iMC freerunning support (diff) | |
download | linux-aaad0e2aa50723969f96b690f72e2f4aefa433f2.tar.xz linux-aaad0e2aa50723969f96b690f72e2f4aefa433f2.zip |
perf/x86/intel/uncore: Use D0:F0 as a default device
Some uncore PMON registers are located in the MMIO space of the Host
Bridge and DRAM Controller device, which is located at D0:F0 for
Tiger Lake and later client generation.
Use D0:F0 as a default device. So it doesn't need to keep adding the
complete Device ID list for each generation anymore.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20240731141353.759643-5-kan.liang@linux.intel.com
Diffstat (limited to 'arch/x86/events')
-rw-r--r-- | arch/x86/events/intel/uncore_snb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/events/intel/uncore_snb.c b/arch/x86/events/intel/uncore_snb.c index f7402bd4da6e..3934e1e4e3b1 100644 --- a/arch/x86/events/intel/uncore_snb.c +++ b/arch/x86/events/intel/uncore_snb.c @@ -1504,6 +1504,10 @@ static struct pci_dev *tgl_uncore_get_mc_dev(void) ids++; } + /* Just try to grab 00:00.0 device */ + if (!mc_dev) + mc_dev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0)); + return mc_dev; } |