Commit 687e8ad0 authored by Kenneth Feng's avatar Kenneth Feng Committed by Alex Deucher

amd/powerplay: fix the issue of uclk dpm

PPSMC_MSG_SetUclkFastSwitch message can be applied on vega20,
but can't on navi10. This is the prerequisite of uclk dpm on
navi10.
Signed-off-by: default avatarKenneth Feng <kenneth.feng@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c39f3da4
...@@ -327,7 +327,6 @@ static int smu_v11_0_setup_pptable(struct smu_context *smu) ...@@ -327,7 +327,6 @@ static int smu_v11_0_setup_pptable(struct smu_context *smu)
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data; hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
version_major = le16_to_cpu(hdr->header.header_version_major); version_major = le16_to_cpu(hdr->header.header_version_major);
version_minor = le16_to_cpu(hdr->header.header_version_minor); version_minor = le16_to_cpu(hdr->header.header_version_minor);
if (version_major == 2 && smu->smu_table.boot_values.pp_table_id > 0) { if (version_major == 2 && smu->smu_table.boot_values.pp_table_id > 0) {
switch (version_minor) { switch (version_minor) {
case 0: case 0:
...@@ -900,8 +899,9 @@ static int smu_v11_0_notify_display_change(struct smu_context *smu) ...@@ -900,8 +899,9 @@ static int smu_v11_0_notify_display_change(struct smu_context *smu)
if (!smu->pm_enabled) if (!smu->pm_enabled)
return ret; return ret;
if (smu_feature_is_enabled(smu, SMU_FEATURE_DPM_UCLK_BIT)) if (smu_feature_is_enabled(smu, SMU_FEATURE_DPM_UCLK_BIT) &&
ret = smu_send_smc_msg_with_param(smu, SMU_MSG_SetUclkFastSwitch, 1); smu->adev->gmc.vram_type == AMDGPU_VRAM_TYPE_HBM)
ret = smu_send_smc_msg_with_param(smu, SMU_MSG_SetUclkFastSwitch, 1);
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