@@ -2555,18 +2555,16 @@ static int smu_v13_0_0_set_power_profile_mode(struct smu_context *smu,
2555
2555
workload_mask = 1 << workload_type ;
2556
2556
2557
2557
/* Add optimizations for SMU13.0.0/10. Reuse the power saving profile */
2558
- if (smu -> power_profile_mode == PP_SMC_POWER_PROFILE_COMPUTE ) {
2559
- if ((amdgpu_ip_version (smu -> adev , MP1_HWIP , 0 ) == IP_VERSION (13 , 0 , 0 ) &&
2560
- ((smu -> adev -> pm .fw_version == 0x004e6601 ) ||
2561
- (smu -> adev -> pm .fw_version >= 0x004e7300 ))) ||
2562
- (amdgpu_ip_version (smu -> adev , MP1_HWIP , 0 ) == IP_VERSION (13 , 0 , 10 ) &&
2563
- smu -> adev -> pm .fw_version >= 0x00504500 )) {
2564
- workload_type = smu_cmn_to_asic_specific_index (smu ,
2565
- CMN2ASIC_MAPPING_WORKLOAD ,
2566
- PP_SMC_POWER_PROFILE_POWERSAVING );
2567
- if (workload_type >= 0 )
2568
- workload_mask |= 1 << workload_type ;
2569
- }
2558
+ if ((amdgpu_ip_version (smu -> adev , MP1_HWIP , 0 ) == IP_VERSION (13 , 0 , 0 ) &&
2559
+ ((smu -> adev -> pm .fw_version == 0x004e6601 ) ||
2560
+ (smu -> adev -> pm .fw_version >= 0x004e7300 ))) ||
2561
+ (amdgpu_ip_version (smu -> adev , MP1_HWIP , 0 ) == IP_VERSION (13 , 0 , 10 ) &&
2562
+ smu -> adev -> pm .fw_version >= 0x00504500 )) {
2563
+ workload_type = smu_cmn_to_asic_specific_index (smu ,
2564
+ CMN2ASIC_MAPPING_WORKLOAD ,
2565
+ PP_SMC_POWER_PROFILE_POWERSAVING );
2566
+ if (workload_type >= 0 )
2567
+ workload_mask |= 1 << workload_type ;
2570
2568
}
2571
2569
2572
2570
ret = smu_cmn_send_smc_msg_with_param (smu ,
0 commit comments