drm/amd/pm: Relax manual min/max clock check

Allow min == max for the soft frequency limit when
AMD_DPM_FORCED_LEVEL_MANUAL is used on SMU v13.0.6

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Asad Kamal 2026-04-30 18:12:12 +08:00 committed by Alex Deucher
parent c5c1102295
commit c115f22248

View File

@ -2075,9 +2075,9 @@ static int smu_v13_0_6_set_soft_freq_limited_range(struct smu_context *smu,
return -EINVAL;
if (smu_dpm->dpm_level == AMD_DPM_FORCED_LEVEL_MANUAL) {
if (min >= max) {
if (min > max) {
dev_err(smu->adev->dev,
"Minimum clk should be less than the maximum allowed clock\n");
"Minimum clk should be less/equal to the maximum allowed clock\n");
return -EINVAL;
}