drm/amdgpu/vcn: enable VCN PG for VCN4_0_4
authorJames Zhu <James.Zhu@amd.com>
Thu, 6 Jan 2022 01:39:06 +0000 (20:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2022 20:52:18 +0000 (16:52 -0400)
Enable VCN PG for VCN4_0_4.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index d2ea7db18141cc31c5aabeb996481fca0203c7ca..b72bbad753f5283da87ce1e6c154ac44670f4df8 100644 (file)
@@ -552,6 +552,7 @@ static int soc21_common_early_init(void *handle)
                        AMD_CG_SUPPORT_VCN_MGCG |
                        AMD_CG_SUPPORT_JPEG_MGCG;
                adev->pg_flags =
+                       AMD_PG_SUPPORT_VCN |
                        AMD_PG_SUPPORT_JPEG;
                adev->external_rev_id = adev->rev_id + 0x10;
                break;