diff options
author | Kan Liang <kan.liang@linux.intel.com> | 2024-07-31 07:13:50 -0700 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2024-08-05 16:54:46 +0200 |
commit | efb0c9c0b9f78d964fb23ec6fdebe5a493f477f3 (patch) | |
tree | 3710b45d94efa89388090897c1c838188ee536b3 /tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c | |
parent | e0f49f15f6344ef3eeb0a04a8b5dedde2a454136 (diff) |
perf/x86/intel/uncore: Factor out common MMIO init and ops functions
Some uncore PMON registers are located in the MMIO space. For the client
machine, the MMIO space is usually located at D0:F0 but in a different
BAR. For example, some uncore PMON registers are located in the SAF BAR,
not the MCHBAR in the Lunar Lake.
The current __uncore_imc_init_box() hard code the BAR information.
Factor out the uncore_get_box_mmio_addr() which uses the BAR information
as a parameter.
The only change is the error output message. The hardcode name 'MCHBAR'
is replaced by the offset of a BAR.
Add a new macro, MMIO_UNCORE_COMMON_OPS(), since the MMIO ops functions
are usually the same among different generations.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240731141353.759643-2-kan.liang@linux.intel.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c')
0 files changed, 0 insertions, 0 deletions