]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9575f9dd5aca402a78c2b43700048a4d01929b39
tree6f0920c62f0f35ae91587a89c7128478e8376c9e
parent2af7af0509c3f93c09b389433f8eae96aeb9ff90
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