drm/amdgpu: dequeue mes scheduler during fini
authorYuBiao Wang <YuBiao.Wang@amd.com>
Thu, 13 Oct 2022 03:31:55 +0000 (11:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Oct 2022 18:52:40 +0000 (14:52 -0400)
commitc4dfad81e444ba27ea9944c9af061a789ab91201
tree19d73bca20bb6f71bc8373a246767a73fc8dac43
parentc520ba3fad335c76f4fad2ab49485eb9edf3de54
drm/amdgpu: dequeue mes scheduler during fini

[Why]
If mes is not dequeued during fini, mes will be in an uncleaned state
during reload, then mes couldn't receive some commands which leads to
reload failure.

[How]
Perform MES dequeue via MMIO after all the unmap jobs are done by mes
and before kiq fini.

v2: Move the dequeue operation inside kiq_hw_fini.

Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Reviewed-by: Jack Xiao <Jack.Xiao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c