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:58:48 -0400 |
| commit | 5155002b03b24ba3ef91c5c313b8cf0171b24904 (patch) | |
| tree | 2b7b0e2cf2d4867f77210b02c24505692a974f1a /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 7f9caa70aef0950e06d395ca0035831214d88187 (diff) | |
| download | linux-next-5155002b03b24ba3ef91c5c313b8cf0171b24904.tar.gz linux-next-5155002b03b24ba3ef91c5c313b8cf0171b24904.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>
(cherry picked from commit dd6f86a97260e5207d3329ad03aa89fdad61b1e6)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
