drm/amd/powerplay: fix save dpm level error for smu
authorKevin Wang <kevin1.wang@amd.com>
Fri, 12 Jul 2019 09:05:52 +0000 (17:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jul 2019 18:08:12 +0000 (13:08 -0500)
commit8e33376b7649b353ffd55f2b40fe129ead3880f7
tree6f0920c62f0f35ae91587a89c7128478e8376c9e
parent42b3aa9a5bafef922de78f0b4d54435bf774d1c1
drm/amd/powerplay: fix save dpm level error for smu

the save dpm level should be save previous dpm profile level,
should not modified by get dpm level function.
eg: default auto
1. auto -> standard ==> dpm_level = standard, save_dpm = auto.
2. standard -> auto ==> dpm_level = auto, save_dpm = standard.

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c