Skip to content

Commit e69251e

Browse files
committed
drm/amdgpu/swsmu: remove duplicate call to smu_set_default_dpm_table
For kernel 5.10, this function was called twice right next to each other in the same function due to what looks like a mis-merge. Remove one of them. Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 3e269ee commit e69251e

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,17 +1029,6 @@ static int smu_smc_hw_setup(struct smu_context *smu)
10291029
return ret;
10301030
}
10311031

1032-
/*
1033-
* Set initialized values (get from vbios) to dpm tables context such as
1034-
* gfxclk, memclk, dcefclk, and etc. And enable the DPM feature for each
1035-
* type of clks.
1036-
*/
1037-
ret = smu_set_default_dpm_table(smu);
1038-
if (ret) {
1039-
dev_err(adev->dev, "Failed to setup default dpm clock tables!\n");
1040-
return ret;
1041-
}
1042-
10431032
ret = smu_notify_display_change(smu);
10441033
if (ret)
10451034
return ret;

0 commit comments

Comments
 (0)