]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix module unload hang by KIQ IRQ set
authorTrigger Huang <trigger.huang@amd.com>
Mon, 20 Feb 2017 02:57:39 +0000 (21:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:19 +0000 (23:53 -0400)
commit2b8c85b85905df4afb9fdd07986e38f997e48ee9
tree572dc1a5b241bcfacdc8dcd753b4f096fdac5884
parent97cd3acc758478e1cfe8d1238cea10e845190e4c
drm/amdgpu: Fix module unload hang by KIQ IRQ set

In some cases, manually insmod/rmmod amdgpu is necessary. When
unloading amdgpu, the KIQ IRQ enable/disable function will case
system hang. The root cause is, in the sequence of function
amdgpu_fini, the sw_fini of IP block AMD_IP_BLOCK_TYPE_GFX will be
invoked earlier than that of AMD_IP_BLOCK_TYPE_IH. So continue to use
the variable freed by AMD_IP_BLOCK_TYPE_GFX will cause system hang.

Signed-off-by: Trigger Huang <trigger.huang@amd.com>
Reviewed-by: Xiangliang Yu < Xiangliang.Yu@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c