|
@@ -1243,8 +1243,8 @@ int vega10_enable_didt_config(struct pp_hwmgr *hwmgr)
|
|
|
}
|
|
|
|
|
|
if (0 == result) {
|
|
|
- PP_ASSERT_WITH_CODE((!vega10_enable_smc_features(hwmgr, true, data->smu_features[GNLD_DIDT].smu_feature_bitmap)),
|
|
|
- "[EnableDiDtConfig] Attempt to Enable DiDt feature Failed!", return result);
|
|
|
+ result = vega10_enable_smc_features(hwmgr, true, data->smu_features[GNLD_DIDT].smu_feature_bitmap);
|
|
|
+ PP_ASSERT_WITH_CODE((0 == result), "[EnableDiDtConfig] Attempt to Enable DiDt feature Failed!", return result);
|
|
|
data->smu_features[GNLD_DIDT].enabled = true;
|
|
|
}
|
|
|
}
|
|
@@ -1290,8 +1290,8 @@ int vega10_disable_didt_config(struct pp_hwmgr *hwmgr)
|
|
|
}
|
|
|
|
|
|
if (0 == result) {
|
|
|
- PP_ASSERT_WITH_CODE((0 != vega10_enable_smc_features(hwmgr, false, data->smu_features[GNLD_DIDT].smu_feature_bitmap)),
|
|
|
- "[DisableDiDtConfig] Attempt to Disable DiDt feature Failed!", return result);
|
|
|
+ result = vega10_enable_smc_features(hwmgr, false, data->smu_features[GNLD_DIDT].smu_feature_bitmap);
|
|
|
+ PP_ASSERT_WITH_CODE((0 == result), "[DisableDiDtConfig] Attempt to Disable DiDt feature Failed!", return result);
|
|
|
data->smu_features[GNLD_DIDT].enabled = false;
|
|
|
}
|
|
|
}
|