drm/amd/display: Fix crash on device remove/driver unload
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 15 Sep 2021 20:07:49 +0000 (16:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Sep 2021 19:17:29 +0000 (15:17 -0400)
commit006c26a0f1c851e0693e4bdd5657a687514d21cf
tree40165d311079ba281d89f30f19b31b0b05603b4b
parent7f6ab50a62a81f91aba6e853364e4f7d9fbaf27d
drm/amd/display: Fix crash on device remove/driver unload

Why:
DC core is being released from DM before it's referenced
from hpd_rx wq destruction code.

How: Move hpd_rx destruction before DC core destruction.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c