drm/amdgpu/pm: Remove the duplicate dpm status check
Subsystems (3)
PATCH 1/1 drm/amdgpu/pm: Remove the duplicate dpm status check
Since the smu firmware has fixed the issue that described in the commit "60d61f4ed6ead". So we only need keep dpm status check in the funciton - smu_v13_0_5_set_soft_freq_limited_range.
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c +1 -1
@@ -1060,7 +1060,7 @@ static int smu_v13_0_5_set_performance_level(struct smu_context *smu,return -EINVAL ; } -if (sclk_min && sclk_max &&smu_v13_0_5_clk_dpm_is_enabled (smu,SMU_SCLK )) { +if (sclk_min && sclk_max) { ret = smu_v13_0_5_set_soft_freq_limited_range(smu, SMU_SCLK, sclk_min,
Signature · 1 line
2.25.1
[AMD Official Use Only - General]
This patch is
-----Original Message-----
From: Jesse Zhang <[email protected]>
Sent: Wednesday, August 23, 2023 3:16 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Yifan <[email protected]>; Zhang, Jesse(Jie) <[email protected]>
Subject: [PATCH] drm/amdgpu/pm: Remove the duplicate dpm status check
Since the smu firmware has fixed the issue that described in the commit "60d61f4ed6ead". So we only need keep dpm status check in the funciton - smu_v13_0_5_set_soft_freq_limited_range.
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c +1 -1
@@ -1060,7 +1060,7 @@ static int smu_v13_0_5_set_performance_level(struct smu_context *smu,return -EINVAL ; } -if (sclk_min && sclk_max &&smu_v13_0_5_clk_dpm_is_enabled (smu,SMU_SCLK )) { +if (sclk_min && sclk_max) { ret = smu_v13_0_5_set_soft_freq_limited_range(smu, SMU_SCLK, sclk_min,
--
2.25.1