]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
amdgpu/vcn: enable AMD_PG_SUPPORT_VCN
authorDavid (Ming Qiang) Wu <David.Wu3@amd.com>
Wed, 11 Oct 2023 21:03:03 +0000 (17:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 20:18:14 +0000 (16:18 -0400)
turn on AMD_PG_SUPPORT_VCN flag for power saving

Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc24.c

index 6b438f0cc86e72b01ae1dbdb37e4b70a72c1c97a..c8cb255b6cf68940abdd77b55600251cf7fdae09 100644 (file)
@@ -359,7 +359,7 @@ static int soc24_common_early_init(void *handle)
                break;
        case IP_VERSION(12, 0, 1):
                adev->cg_flags = 0;
-               adev->pg_flags = 0;
+               adev->pg_flags = AMD_PG_SUPPORT_VCN;
                adev->external_rev_id = adev->rev_id + 0x50;
                adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
                                AMD_CG_SUPPORT_GFX_CGLS;