drm/amdgpu: put SMU into proper state on runpm suspending for BOCO capable platform
authorEvan Quan <evan.quan@amd.com>
Fri, 17 Dec 2021 11:05:06 +0000 (19:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Dec 2021 13:54:45 +0000 (08:54 -0500)
commit4a700546ec9b8fafedf569f363f905b9ec7f5ee8
tree8d47d769effc9ffb77124157578089246d769e1e
parent0726ed3065eeb910f9cea0c933bc021a848e00b3
drm/amdgpu: put SMU into proper state on runpm suspending for BOCO capable platform

By setting mp1_state as PP_MP1_STATE_UNLOAD, MP1 will do some proper cleanups and
put itself into a state ready for PNP. That can workaround some random resuming
failure observed on BOCO capable platforms.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c