drm/amd/powerplay: fix wrong clock adjust sequence
authorEvan Quan <evan.quan@amd.com>
Wed, 6 Jun 2018 03:54:45 +0000 (11:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jun 2018 18:45:22 +0000 (13:45 -0500)
commitc3dade5ef72d9141e28fb86ebd46a9b3f3f4e030
treeaa822bf466574a031c3c7aae8f0b48aae599060f
parent97028037a38ae40c0e06789b71038d3a6045a413
drm/amd/powerplay: fix wrong clock adjust sequence

The clocks should be adjusted after display configuration changed.
Otherwise, the socclk and memclk may be forced on an unnecessary higher
level.

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