drm/amd/powerplay: delete dead functions in vega10.
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 17 Apr 2017 12:46:29 +0000 (20:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:32:39 +0000 (17:32 -0400)
Vega10 does not support AVFS BTC, remove function.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h

index 561b837b09bef47eb0d828a8f4a47898f99ad11d..3e11abe9cd0aa0e600fc1733fc04c661f1a14084 100644 (file)
@@ -2411,35 +2411,9 @@ static int vega10_init_smc_table(struct pp_hwmgr *hwmgr)
        PP_ASSERT_WITH_CODE(!result,
                        "Failed to upload PPtable!", return result);
 
-       if (data->smu_features[GNLD_AVFS].supported) {
-               uint32_t features_enabled;
-               result = vega10_get_smc_features(hwmgr->smumgr, &features_enabled);
-               PP_ASSERT_WITH_CODE(!result,
-                               "Failed to Retrieve Enabled Features!",
-                               return result);
-               if (!(features_enabled & (1 << FEATURE_AVFS_BIT))) {
-                       result = vega10_perform_btc(hwmgr->smumgr);
-                       PP_ASSERT_WITH_CODE(!result,
-                                       "Failed to Perform BTC!",
+       result = vega10_avfs_enable(hwmgr, true);
+       PP_ASSERT_WITH_CODE(!result, "Attempt to enable AVFS feature Failed!",
                                        return result);
-                       result = vega10_avfs_enable(hwmgr, true);
-                       PP_ASSERT_WITH_CODE(!result,
-                                       "Attempt to enable AVFS feature Failed!",
-                                       return result);
-                       result = vega10_save_vft_table(hwmgr->smumgr,
-                                       (uint8_t *)&(data->smc_state_table.avfs_table));
-                       PP_ASSERT_WITH_CODE(!result,
-                                       "Attempt to save VFT table Failed!",
-                                       return result);
-               } else {
-                       data->smu_features[GNLD_AVFS].enabled = true;
-                       result = vega10_restore_vft_table(hwmgr->smumgr,
-                                       (uint8_t *)&(data->smc_state_table.avfs_table));
-                       PP_ASSERT_WITH_CODE(!result,
-                                       "Attempt to restore VFT table Failed!",
-                                       return result;);
-               }
-       }
 
        return 0;
 }
index 2685f02ab551eb84f542c0f9475e57062add5fd2..7a36a7404f738988a658b9e5b5ab0007dfd30f48 100644 (file)
@@ -299,15 +299,6 @@ int vega10_copy_table_to_smc(struct pp_smumgr *smumgr,
        return 0;
 }
 
-int vega10_perform_btc(struct pp_smumgr *smumgr)
-{
-       PP_ASSERT_WITH_CODE(!vega10_send_msg_to_smc_with_parameter(
-                       smumgr, PPSMC_MSG_RunBtc, 0),
-                       "Attempt to run DC BTC Failed!",
-                       return -1);
-       return 0;
-}
-
 int vega10_save_vft_table(struct pp_smumgr *smumgr, uint8_t *avfs_table)
 {
        PP_ASSERT_WITH_CODE(avfs_table,
index ad050212426df09eb11a3b2caf6775d5fb3064df..71e9b6492647d76cc7c4879689e43f5e9898e53f 100644 (file)
@@ -62,7 +62,6 @@ int vega10_get_smc_features(struct pp_smumgr *smumgr,
                uint32_t *features_enabled);
 int vega10_save_vft_table(struct pp_smumgr *smumgr, uint8_t *avfs_table);
 int vega10_restore_vft_table(struct pp_smumgr *smumgr, uint8_t *avfs_table);
-int vega10_perform_btc(struct pp_smumgr *smumgr);
 
 int vega10_set_tools_address(struct pp_smumgr *smumgr);