diff options
| author | Muralidhara M K <muralidhara.mk@amd.com> | 2026-07-23 15:16:52 +0530 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-07-24 19:12:12 +0300 |
| commit | 5622564fc6924c1607944f0ad22be81ed6fd38fb (patch) | |
| tree | 570d1272b7230c974cfd7127a4379c0fbd4dfee5 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 9c40a57258f6cb4109de46467966498e6f90ece6 (diff) | |
platform/x86/amd/hsmp: Map the metric table with ioremap() and unmap it explicitly
The metric-table DRAM region is mapped with devm_ioremap(), which ties the
mapping to the socket device's devres scope. An upcoming change lets the
ACPI front-end share the socket array across sockets and run its own
coordinated teardown, so the mapping can no longer be pinned to a single
per-socket devres scope.
Map it with plain ioremap() instead and add hsmp_unmap_metric_tbls(), which
drops every socket's metric_tbl_addr mapping. The platform driver registers
that helper with devm_add_action_or_reset() so the mappings are released on
both remove and probe failure, while the socket array itself stays
devm-managed.
Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
Link: https://patch.msgid.link/20260723094656.3806028-3-muralidhara.mk@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
