]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5462857a0af7af18b8a7c8f0f47815cd28cbc0a9
tree3f725bd1f61feca500c1d7bc3f234fdb666820a7
parent9872ac0fbb3f1499fdd408180bfbee0830e62bc3
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