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,
2266
2266
smu_dpm_ctx -> dpm_level = level ;
2267
2267
}
2268
2268
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 ) {
2270
2271
index = fls (smu -> workload_mask );
2271
2272
index = index > 0 && index <= WORKLOAD_POLICY_MAX ? index - 1 : 0 ;
2272
2273
workload [0 ] = smu -> workload_setting [index ];
@@ -2345,7 +2346,8 @@ static int smu_switch_power_profile(void *handle,
2345
2346
workload [0 ] = smu -> workload_setting [index ];
2346
2347
}
2347
2348
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 )
2349
2351
smu_bump_power_profile_mode (smu , workload , 0 );
2350
2352
2351
2353
return 0 ;
You can’t perform that action at this time.
0 commit comments