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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jan 2022 14:35:18 +0000 (15:35 +0100)
commitf55383e6b92bb574edefd2cf23f74f133d4e1263
treead8eed1418ad9b33e1fb4d351efa62c16bde2735
parent3c196f05666610912645c7c5d9107706003f67c3
drm/amdgpu: put SMU into proper state on runpm suspending for BOCO capable platform

[ Upstream commit 7be3be2b027c12e84833b3dc9597d3bb7e4c5464 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c