drm/amd/powerplay: dpm clk can be set only when performance level is manual
authorLikun Gao <Likun.Gao@amd.com>
Wed, 23 Jan 2019 05:37:39 +0000 (13:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:00 +0000 (15:04 -0500)
commit1507418667f8b0893c90fa8bd4ff965cd4bc14ea
tree2fc6b1ac9ceacaf981aca2192ca6c011c84847ef
parentc16df976a2fe2ea145bf20343efb3e74f073e9e7
drm/amd/powerplay: dpm clk can be set only when performance level is manual

Add condition to make dpm clk can not be set when perfomance level isn't
equal to manual.
Add mutex lock to smu when set dpm clk.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/vega20_ppt.c