drm/amd/display: not reset dmub in driver.
authorYongqiang Sun <yongqiang.sun@amd.com>
Wed, 27 May 2020 17:57:55 +0000 (13:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:21 +0000 (01:59 -0400)
commitffa2151a8f4dab8670d46abcfacacbe68e394ae6
tree89fc63c17e1c6684c59458fe5441ea733a2f60de
parenta0a85ac4eac9b1560d9a40d6636f82f81162de10
drm/amd/display: not reset dmub in driver.

[Why]
during S0i3, set power state is toggled a few times,
and dmub uC will restart with current reset/hw_init.

[How]
Remove reset in set power state, and before doing hw_init,
check if dmub is enabled, and doing FW autoload check only
if dmub is already enabled.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn20.c