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>
Wed, 19 Oct 2022 02:13:59 +0000 (22:13 -0400)
commit2abe92c7adc9c0397ba51bf74909b85bc0fff84b
treea2dd02daa5c939d95bf88543298e30fee5c05474
parent5ce4726a1376bd0673d7b8edd243e76fbb4476d1
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