drm/amdgpu/powerplay: add a new interface to set the mp1 state
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jul 2019 14:41:53 +0000 (09:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:24:21 +0000 (23:24 -0500)
commita2c28e34f8c42e35f5f2990d558d367152e63c27
tree93c0a8e1e6f4a42c5c67576b9cb13dcff9b11020
parent2ddc6c3ef9d5f22ad004aad2e28a32810fe9c407
drm/amdgpu/powerplay: add a new interface to set the mp1 state

This is required for certain cases such as various GPU resets
(mode1, mode2), BACO, shutdown, unload, etc. to put the SMU into
the appropriate state for when the hw is re-initialized.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h