OSDN Git Service

drm/amdgpu: enable jpeg3.0 PG and CG for dimgrey_cavefish
authorJames Zhu <James.Zhu@amd.com>
Wed, 5 Aug 2020 21:59:09 +0000 (17:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Oct 2020 18:01:43 +0000 (14:01 -0400)
Enable JPEG3.0 PG and CG for dimgrey_cavefish.

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

index 45177ed..12dc78b 100644 (file)
@@ -904,9 +904,11 @@ static int nv_common_early_init(void *handle)
                adev->external_rev_id = adev->rev_id + 0x01;
                break;
        case CHIP_DIMGREY_CAVEFISH:
-               adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG;
+               adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |
+                       AMD_CG_SUPPORT_JPEG_MGCG;
                adev->pg_flags = AMD_PG_SUPPORT_VCN |
-                       AMD_PG_SUPPORT_VCN_DPG;
+                       AMD_PG_SUPPORT_VCN_DPG |
+                       AMD_PG_SUPPORT_JPEG;
                adev->external_rev_id = adev->rev_id + 0x3c;
                break;
        default: