File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
drivers/gpu/drm/amd/pm/swsmu Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2266,7 +2266,8 @@ static int smu_adjust_power_state_dynamic(struct smu_context *smu,
22662266 smu_dpm_ctx -> dpm_level = level ;
22672267 }
22682268
2269- if (smu_dpm_ctx -> dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM ) {
2269+ if (smu_dpm_ctx -> dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL &&
2270+ smu_dpm_ctx -> dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM ) {
22702271 index = fls (smu -> workload_mask );
22712272 index = index > 0 && index <= WORKLOAD_POLICY_MAX ? index - 1 : 0 ;
22722273 workload [0 ] = smu -> workload_setting [index ];
@@ -2345,7 +2346,8 @@ static int smu_switch_power_profile(void *handle,
23452346 workload [0 ] = smu -> workload_setting [index ];
23462347 }
23472348
2348- if (smu_dpm_ctx -> dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM )
2349+ if (smu_dpm_ctx -> dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL &&
2350+ smu_dpm_ctx -> dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM )
23492351 smu_bump_power_profile_mode (smu , workload , 0 );
23502352
23512353 return 0 ;
You can’t perform that action at this time.
0 commit comments