diff options
author | Kan Liang <[email protected]> | 2024-07-31 07:13:50 -0700 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2024-08-05 16:54:46 +0200 |
commit | efb0c9c0b9f78d964fb23ec6fdebe5a493f477f3 (patch) | |
tree | 3710b45d94efa89388090897c1c838188ee536b3 /tools/perf/util/scripting-engines/trace-event-python.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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions