]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Do irq_fini_hw after ip_fini_early
authorYuBiao Wang <YuBiao.Wang@amd.com>
Tue, 19 Oct 2021 21:16:23 +0000 (17:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Oct 2021 21:16:50 +0000 (17:16 -0400)
commit7d6313c70e3f3dcb34428c0115399cb625a21f92
tree7a450ee7c74d8adc1b321850affdb585139c820c
parent99b8c37e0ffaea958ee83750cf25bdd44ec5bf8e
drm/amd/amdgpu: Do irq_fini_hw after ip_fini_early

[Why]
drm_irq_uninstall is called in irq_fini_hw so that irq is disabled in sw
stage. SMU (and maybe other IP blocks) fini_hw will call irq_put for
cleanup and the whole cleanup process will be skipped because of
drm->irq_enable = false.

[How]
Move ip_fini_early before irq_fini_hw.

Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c