Commit 5bbc5c64 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher

drm/amd/powerplay: refine dmesg info under powerplay.

Use pr_debug to prevent spamming unimportant dmesg.
Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 41cc07cf
...@@ -557,9 +557,8 @@ uint16_t phm_find_closest_vddci(struct pp_atomctrl_voltage_table *vddci_table, u ...@@ -557,9 +557,8 @@ uint16_t phm_find_closest_vddci(struct pp_atomctrl_voltage_table *vddci_table, u
return vddci_table->entries[i].value; return vddci_table->entries[i].value;
} }
PP_ASSERT_WITH_CODE(false, pr_debug("vddci is larger than max value in vddci_table\n");
"VDDCI is larger than max VDDCI in VDDCI Voltage Table!", return vddci_table->entries[i-1].value;
return vddci_table->entries[i-1].value);
} }
int phm_find_boot_level(void *table, int phm_find_boot_level(void *table,
...@@ -597,10 +596,10 @@ int phm_get_sclk_for_voltage_evv(struct pp_hwmgr *hwmgr, ...@@ -597,10 +596,10 @@ int phm_get_sclk_for_voltage_evv(struct pp_hwmgr *hwmgr,
break; break;
} }
PP_ASSERT_WITH_CODE(entryId < table_info->vdd_dep_on_sclk->count, if (entryId >= table_info->vdd_dep_on_sclk->count) {
"Can't find requested voltage id in vdd_dep_on_sclk table!", pr_debug("Can't find requested voltage id in vdd_dep_on_sclk table\n");
return -EINVAL; return -EINVAL;
); }
*sclk = table_info->vdd_dep_on_sclk->entries[entryId].clk; *sclk = table_info->vdd_dep_on_sclk->entries[entryId].clk;
......
...@@ -4162,7 +4162,7 @@ static int vega10_notify_smc_display_config_after_ps_adjustment( ...@@ -4162,7 +4162,7 @@ static int vega10_notify_smc_display_config_after_ps_adjustment(
pr_info("Attempt to set Hard Min for DCEFCLK Failed!"); pr_info("Attempt to set Hard Min for DCEFCLK Failed!");
} }
} else { } else {
pr_info("Cannot find requested DCEFCLK!"); pr_debug("Cannot find requested DCEFCLK!");
} }
if (min_clocks.memoryClock != 0) { if (min_clocks.memoryClock != 0) {
......
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