]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit825a54af72db3e4f142254ee31937e412b22c902
treea2dd02daa5c939d95bf88543298e30fee5c05474
parentfe8562292f2fe4d8045558495e95b3f728c37926
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