]> www.infradead.org Git - users/willy/xarray.git/commitdiff
drm/amdgpu: apply new pmfw loading sequence to arcturus and onwards
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 20 Jan 2021 11:49:05 +0000 (19:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:57:44 +0000 (22:57 -0400)
Arcturus and onwards products should follow the same sequence
that have pmfw loading ahead of tmr setup

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

index 38d400289013c248cb2b19bd788bd384a7e023f0..cf8cfe620d8c8c8404fff4fa245f266d2f8278b3 100644 (file)
@@ -57,7 +57,7 @@ static int psp_load_smu_fw(struct psp_context *psp);
  *   - Load XGMI/RAS/HDCP/DTM TA if any
  *
  * This new sequence is required for
- *   - Arcturus
+ *   - Arcturus and onwards
  *   - Navi12 and onwards
  */
 static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp)
@@ -72,8 +72,7 @@ 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)  ||
-           (adev->asic_type == CHIP_ALDEBARAN) ||
+       if ((adev->asic_type >= CHIP_ARCTURUS) ||
            (adev->asic_type >= CHIP_NAVI12))
                psp->pmfw_centralized_cstate_management = true;
 }