drm/amd/powerplay: fix bug dpm can't work when resume back on Polaris
authorEric Huang <JinHuiEric.Huang@amd.com>
Mon, 4 Apr 2016 15:52:56 +0000 (11:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:29:39 +0000 (20:29 -0400)
commit681ed01c62915656b9807f25e23f18c0d77ad786
tree3f725bd1f61feca500c1d7bc3f234fdb666820a7
parent7d367c2aeaf6058e9c55c1d6bff4f5174b65854c
drm/amd/powerplay: fix bug dpm can't work when resume back on Polaris

Need to initialize the values to 0 since they get or'ed with additional
values.  If the initialization is missing, on resume, they may end up
with a combination of stale data and new data.

Fixes dpm on resume.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c