drm/amdgpu/soc15:Add vega20 soc15_common_early_init support
authorFeifei Xu <Feifei.Xu@amd.com>
Fri, 26 Jan 2018 07:06:22 +0000 (15:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 May 2018 15:13:17 +0000 (10:13 -0500)
Set external_rev_id and disable cg,pg for now.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index f31df18..f45bea8 100644 (file)
@@ -658,6 +658,11 @@ static int soc15_common_early_init(void *handle)
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x14;
                break;
+       case CHIP_VEGA20:
+               adev->cg_flags = 0;
+               adev->pg_flags = 0;
+               adev->external_rev_id = adev->rev_id + 0x28;
+               break;
        case CHIP_RAVEN:
                adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |
                        AMD_CG_SUPPORT_GFX_MGLS |