@@ -2530,38 +2530,10 @@ static int smu_v13_0_0_set_power_profile_mode(struct smu_context *smu,
2530
2530
}
2531
2531
}
2532
2532
2533
- if (smu -> power_profile_mode == PP_SMC_POWER_PROFILE_COMPUTE &&
2534
- (((smu -> adev -> pdev -> device == 0x744C ) && (smu -> adev -> pdev -> revision == 0xC8 )) ||
2535
- ((smu -> adev -> pdev -> device == 0x744C ) && (smu -> adev -> pdev -> revision == 0xCC )))) {
2536
- ret = smu_cmn_update_table (smu ,
2537
- SMU_TABLE_ACTIVITY_MONITOR_COEFF ,
2538
- WORKLOAD_PPLIB_COMPUTE_BIT ,
2539
- (void * )(& activity_monitor_external ),
2540
- false);
2541
- if (ret ) {
2542
- dev_err (smu -> adev -> dev , "[%s] Failed to get activity monitor!" , __func__ );
2543
- return ret ;
2544
- }
2545
-
2546
- ret = smu_cmn_update_table (smu ,
2547
- SMU_TABLE_ACTIVITY_MONITOR_COEFF ,
2548
- WORKLOAD_PPLIB_CUSTOM_BIT ,
2549
- (void * )(& activity_monitor_external ),
2550
- true);
2551
- if (ret ) {
2552
- dev_err (smu -> adev -> dev , "[%s] Failed to set activity monitor!" , __func__ );
2553
- return ret ;
2554
- }
2555
-
2556
- workload_type = smu_cmn_to_asic_specific_index (smu ,
2557
- CMN2ASIC_MAPPING_WORKLOAD ,
2558
- PP_SMC_POWER_PROFILE_CUSTOM );
2559
- } else {
2560
- /* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */
2561
- workload_type = smu_cmn_to_asic_specific_index (smu ,
2533
+ /* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */
2534
+ workload_type = smu_cmn_to_asic_specific_index (smu ,
2562
2535
CMN2ASIC_MAPPING_WORKLOAD ,
2563
2536
smu -> power_profile_mode );
2564
- }
2565
2537
2566
2538
if (workload_type < 0 )
2567
2539
return - EINVAL ;
0 commit comments