drm/amdgpu: refine uvd pg code in kv_dpm.c
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 20 Jan 2017 06:34:43 +0000 (14:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Feb 2017 22:20:55 +0000 (17:20 -0500)
commitd01c6236acff6ec460690dd5b040e53435799295
tree33b1ea2f9fdcb80f07d0c33ef4fcb4f5795b9a9d
parent3a78696658a0c99d02efa109758c41d2e060eea0
drm/amdgpu: refine uvd pg code in kv_dpm.c

1. no need to set cg as use hw dynamic cg.
2. when uvd idle, stop uvd. encode, start uvd.
3. if pg feature enabled, power on/down uvd by smu.
4. drm/amdgpu: dpm do not set uvd pg status.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@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