drm/amdgpu/jpeg: enable JPEG PG for VCN4_0_4
authorJames Zhu <James.Zhu@amd.com>
Fri, 15 Apr 2022 15:50:10 +0000 (11:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2022 20:52:14 +0000 (16:52 -0400)
Enable JPEG 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 6d6aca7..a75860e 100644 (file)
@@ -550,7 +550,8 @@ static int soc21_common_early_init(void *handle)
        case IP_VERSION(11, 0, 2):
                adev->cg_flags =
                        AMD_CG_SUPPORT_JPEG_MGCG;
-               adev->pg_flags = 0;
+               adev->pg_flags =
+                       AMD_PG_SUPPORT_JPEG;
                adev->external_rev_id = adev->rev_id + 0x10;
                break;
        default: