summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-01-20 18:17:02 +0000
committerMark Brown <broonie@kernel.org>2026-01-20 18:17:02 +0000
commit9ef552fcf0e0fbc0d8a7d6a5903a08a90eb97f34 (patch)
treeed6c419c2a447c638c669518709615c05ea9c1fd /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent58b2e9a1d9a7ccaafb75a2569b09108f56291f81 (diff)
parentcafadbf430f4b2f3ca4158de48ef6ba4d97fbf17 (diff)
downloadlwn-9ef552fcf0e0fbc0d8a7d6a5903a08a90eb97f34.tar.gz
lwn-9ef552fcf0e0fbc0d8a7d6a5903a08a90eb97f34.zip
ASoC: renesas: rz-ssi: Cleanups
Merge series from Claudiu <claudiu.beznea@tuxon.dev>: This series adds cleanups for the Renesas RZ SSI driver.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index d5c44bd34d45..d2c3885de711 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -5063,6 +5063,14 @@ void amdgpu_device_fini_hw(struct amdgpu_device *adev)
amdgpu_ttm_set_buffer_funcs_status(adev, false);
+ /*
+ * device went through surprise hotplug; we need to destroy topology
+ * before ip_fini_early to prevent kfd locking refcount issues by calling
+ * amdgpu_amdkfd_suspend()
+ */
+ if (drm_dev_is_unplugged(adev_to_drm(adev)))
+ amdgpu_amdkfd_device_fini_sw(adev);
+
amdgpu_device_ip_fini_early(adev);
amdgpu_irq_fini_hw(adev);