drm/amdgpu: enable JPEG3.0 PG and CG for Sienna_Cichlid
authorLeo Liu <leo.liu@amd.com>
Tue, 3 Dec 2019 14:23:24 +0000 (09:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:09 +0000 (01:59 -0400)
By setting up the flags to the ASIC

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index a7a0370..81032b0 100644 (file)
@@ -712,8 +712,10 @@ static int nv_common_early_init(void *handle)
                adev->external_rev_id = adev->rev_id + 0xa;
                break;
        case CHIP_SIENNA_CICHLID:
-               adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG;
-               adev->pg_flags = AMD_PG_SUPPORT_VCN;
+               adev->cg_flags = 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 + 0x28;
                break;
        default: