drm/amdgpu: update vcn/jpeg PG flags for VCN 3.1.1
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Fri, 28 Jan 2022 08:21:18 +0000 (13:51 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Feb 2022 22:30:03 +0000 (17:30 -0500)
update vcn and jpeg power gating flags for VCN 3.1.1

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 66adc4f..4b39f27 100644 (file)
@@ -909,7 +909,9 @@ static int nv_common_early_init(void *handle)
                break;
        case IP_VERSION(10, 3, 7):
                adev->cg_flags = 0;
-               adev->pg_flags = 0;
+               adev->pg_flags = AMD_PG_SUPPORT_VCN |
+                       AMD_PG_SUPPORT_VCN_DPG |
+                       AMD_PG_SUPPORT_JPEG;
                adev->external_rev_id = adev->rev_id + 0x01;
                break;
        default: