drm/amdgpu: initialize common sw config for v11_0_3
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 27 Jun 2022 16:41:52 +0000 (00:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Aug 2022 21:59:30 +0000 (17:59 -0400)
init cp/pg_flags and extenal_rev_id

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Frank Min <Frank.Min@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index 55284b24f113934bcf9470be8ab8c03805dbd3b8..f87dfae4efdad1bf231864dfc3def0920eaeaad8 100644 (file)
@@ -627,6 +627,11 @@ static int soc21_common_early_init(void *handle)
                        AMD_PG_SUPPORT_JPEG;
                adev->external_rev_id = adev->rev_id + 0x1;
                break;
+       case IP_VERSION(11, 0, 3):
+               adev->cg_flags = 0;
+               adev->pg_flags = 0;
+               adev->external_rev_id = adev->rev_id + 0x20;
+               break;
        default:
                /* FIXME: not supported yet */
                return -EINVAL;