drm/amdgpu: refine vce3.0 code and related powerplay pg code.
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 26 Jan 2017 02:47:00 +0000 (10:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Feb 2017 22:23:19 +0000 (17:23 -0500)
commit6fc11b0ed354bc7a756ecf55af01fc974ae0f2f5
tree14fa399a1341d623135f2946abb02691ae6c6042
parentf1ea278d6fe00945b21ac9f9f56fd424b719bdea
drm/amdgpu: refine vce3.0 code and related powerplay pg code.

1. not start vce3.0 when hw_init
2. stop vce3.0 when vce idle.
3. pg mask used to ctrl power down/up vce.
4. change cg pg sequence in powerplay.

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/vce_v3_0.c
drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c