From: Hawking Zhang Date: Mon, 25 May 2020 07:27:18 +0000 (+0800) Subject: drm/amdgpu: load pmfw prior to other non-psp fw for aldebaran X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=428ad99e9ccd0410b106910ede61ace700bb0fe5;p=linux.git drm/amdgpu: load pmfw prior to other non-psp fw for aldebaran 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 Reviewed-by: Kevin Wang Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 88518897c17cc..a5f79b09de9c8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -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; }