drm/amd/pm: support runtime PPTable update for dimgrey_cavefish
authorTao Zhou <tao.zhou1@amd.com>
Tue, 17 Nov 2020 06:24:17 +0000 (14:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Nov 2020 19:36:11 +0000 (14:36 -0500)
There is no need to reset DPM for PPTable uploading on
dimgrey_cavefish and PMFW can handle it, same as navy_flounder.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Jiansong Chen <Jiansong.Chen@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index 1904df5..8e3e7a5 100644 (file)
@@ -1183,7 +1183,7 @@ static int smu_disable_dpms(struct smu_context *smu)
         */
        if (smu->uploading_custom_pp_table &&
            (adev->asic_type >= CHIP_NAVI10) &&
-           (adev->asic_type <= CHIP_NAVY_FLOUNDER))
+           (adev->asic_type <= CHIP_DIMGREY_CAVEFISH))
                return 0;
 
        /*