summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-09-05 04:27:11 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-09-05 04:27:11 +0000
commit724f2057a61d6f6bae91b70b3a28201bfe95e2df (patch)
treeca866170a6fd350ff08c0f260e78d1e56fb73798
parentddf2728ce6b36dd6433c8c96bd7cfebf43d7c269 (diff)
drm/amdgpu: align pp_power_profile_mode with kernel docs
From Alex Deucher 11182b33faf3ee80f5ea042a465b26a23e257f8a in linux-6.6.y/6.6.49 8f614469de248a4bc55fb07e55d5f4c340c75b11 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c b/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
index d6daf3c1cec..fafffbe3a42 100644
--- a/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -1882,8 +1882,7 @@ static int smu_adjust_power_state_dynamic(struct smu_context *smu,
smu_dpm_ctx->dpm_level = level;
}
- if (smu_dpm_ctx->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL &&
- smu_dpm_ctx->dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM) {
+ if (smu_dpm_ctx->dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM) {
index = fls(smu->workload_mask);
index = index > 0 && index <= WORKLOAD_POLICY_MAX ? index - 1 : 0;
workload[0] = smu->workload_setting[index];
@@ -1960,8 +1959,7 @@ static int smu_switch_power_profile(void *handle,
workload[0] = smu->workload_setting[index];
}
- if (smu_dpm_ctx->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL &&
- smu_dpm_ctx->dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM)
+ if (smu_dpm_ctx->dpm_level != AMD_DPM_FORCED_LEVEL_PERF_DETERMINISM)
smu_bump_power_profile_mode(smu, workload, 0);
return 0;