Commit 2913b567 authored by Likun Gao's avatar Likun Gao Committed by Alex Deucher

drm/amd/smu: Increace dpm level count only for smu v13.0.2

Only V13.0.2 on SMU v13 will get 0 based max level from fw and
increment by one, other ASIC will not need for this.
V2: replace the asic_type check with ip versioning check.
Signed-off-by: default avatarLikun Gao <Likun.Gao@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent db56aebd
...@@ -1750,8 +1750,8 @@ int smu_v13_0_get_dpm_level_count(struct smu_context *smu, ...@@ -1750,8 +1750,8 @@ int smu_v13_0_get_dpm_level_count(struct smu_context *smu,
int ret; int ret;
ret = smu_v13_0_get_dpm_freq_by_index(smu, clk_type, 0xff, value); ret = smu_v13_0_get_dpm_freq_by_index(smu, clk_type, 0xff, value);
/* FW returns 0 based max level, increment by one */ /* SMU v13.0.2 FW returns 0 based max level, increment by one for it */
if (!ret && value) if((smu->adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 2)) && (!ret && value))
++(*value); ++(*value);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment