drm/amdgpu: load pmfw prior to other non-psp fw for aldebaran
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 25 May 2020 07:27:18 +0000 (15:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:52:24 +0000 (22:52 -0400)
PMFW should be loaded before any operation that
may toggling DF-Cstate. otherwsie, tOS has no
choice but to locally toggle DF Cstate (i.e.
disable DF-Cstate even it already enabled by VBIOS)

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Le Ma <Le.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 8851889..a5f79b0 100644 (file)
@@ -72,7 +72,8 @@ static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp
        if (adev->flags & AMD_IS_APU)
                return;
 
-       if ((adev->asic_type == CHIP_ARCTURUS) ||
+       if ((adev->asic_type == CHIP_ARCTURUS)  ||
+           (adev->asic_type == CHIP_ALDEBARAN) ||
            (adev->asic_type >= CHIP_NAVI12))
                psp->pmfw_centralized_cstate_management = true;
 }