diff options
| author | Chengjun Yao <Chengjun.Yao@amd.com> | 2026-09-08 10:15:43 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-09-17 11:38:29 -0400 |
| commit | dd6f86a97260e5207d3329ad03aa89fdad61b1e6 (patch) | |
| tree | b9c73c2d761e1782963cab7e8b7ee9344a642b5e /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 09b336c57518f363eeca7d1e2f8da041fcb613ae (diff) | |
| download | linux-dd6f86a97260e5207d3329ad03aa89fdad61b1e6.tar.gz linux-dd6f86a97260e5207d3329ad03aa89fdad61b1e6.zip | |
drm/amdgpu: fix rmmio iounmap skipped on device removal
amdgpu_pci_remove() calls drm_dev_unplug() before fini_sw(), so
drm_dev_enter() is already false there and the iounmap() guarded by it
is skipped. This .remove path runs on both hot-unplug and plain rmmod,
so the register BAR ioremap mapping leaks one instance per unload.
Unmap rmmio unconditionally (guard only on non-NULL) and drop the now
unused idx.
Fixes: 62d5f9f7110a ("drm/amdgpu: Unmap MMIO mappings when device is not unplugged")
Signed-off-by: Chengjun Yao <Chengjun.Yao@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
