drm/amdgpu: enable UVD clockgating in Polaris-10/11
authorMaruthi Srinivas Bayyavarapu <Maruthi.Bayyavarapu@amd.com>
Mon, 31 Oct 2016 14:11:55 +0000 (19:41 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Nov 2016 15:20:57 +0000 (10:20 -0500)
UVD clocks are set to be disabled, when not in use.

Signed-off-by: Maruthi Bayyavarapu <maruthi.bayyavarapu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Tom StDenis <Tom.StDenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vi.c

index 52d0a83e6ad102d63ee6e82000e4afaf85c30150..820af9293655f0767153436ce541be3d07049db7 100644 (file)
@@ -934,12 +934,12 @@ static int vi_common_early_init(void *handle)
                adev->external_rev_id = adev->rev_id + 0x14;
                break;
        case CHIP_POLARIS11:
-               adev->cg_flags = 0;
+               adev->cg_flags = AMD_CG_SUPPORT_UVD_MGCG;
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x5A;
                break;
        case CHIP_POLARIS10:
-               adev->cg_flags = 0;
+               adev->cg_flags = AMD_CG_SUPPORT_UVD_MGCG;
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x50;
                break;