Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: enable UVD clockgating in Polaris-10/11

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>

authored by

Maruthi Srinivas Bayyavarapu and committed by
Alex Deucher
f8bdce3e 81c1514b

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/vi.c
··· 934 934 adev->external_rev_id = adev->rev_id + 0x14; 935 935 break; 936 936 case CHIP_POLARIS11: 937 - adev->cg_flags = 0; 937 + adev->cg_flags = AMD_CG_SUPPORT_UVD_MGCG; 938 938 adev->pg_flags = 0; 939 939 adev->external_rev_id = adev->rev_id + 0x5A; 940 940 break; 941 941 case CHIP_POLARIS10: 942 - adev->cg_flags = 0; 942 + adev->cg_flags = AMD_CG_SUPPORT_UVD_MGCG; 943 943 adev->pg_flags = 0; 944 944 adev->external_rev_id = adev->rev_id + 0x50; 945 945 break;