drm/amdgpu: fix dpm bug on Kv.
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 20 Jan 2017 06:27:22 +0000 (14:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 17:20:43 +0000 (12:20 -0500)
commit36a94a8ad74e83a135a4b0a2157dabe50b4562a6
tree6c62b44bfc8615181b8ff43ce4aad2694f1961ef
parentcb256cc383bddd5e5f135279ebb4112dfb991f37
drm/amdgpu: fix dpm bug on Kv.

1. current_ps/request_ps not update.
2. compare crrent_ps and request_ps, if same,
   don't re-set power state.

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/amdgpu/kv_dpm.c