diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1057-drm-amd-powerplay-refine-dmesg-info-under-powerplay.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1057-drm-amd-powerplay-refine-dmesg-info-under-powerplay.patch | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1057-drm-amd-powerplay-refine-dmesg-info-under-powerplay.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1057-drm-amd-powerplay-refine-dmesg-info-under-powerplay.patch new file mode 100644 index 00000000..4ce16e14 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1057-drm-amd-powerplay-refine-dmesg-info-under-powerplay.patch @@ -0,0 +1,78 @@ +From 13d557d536f4b6d3aae65e333023246c3ce75a64 Mon Sep 17 00:00:00 2001 +From: Rex Zhu <Rex.Zhu@amd.com> +Date: Fri, 15 Sep 2017 11:09:20 +0800 +Subject: [PATCH 1057/4131] drm/amd/powerplay: refine dmesg info under + powerplay + +Use pr_debug to prevent spamming unimportant dmesg. + +Change-Id: I7e76361a47681ff03187fe91a3fce9c25759017f +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +--- + drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c | 6 +++--- + drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 10 +++++----- + 2 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c +index 49733c7..fa0305e 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c +@@ -1100,10 +1100,10 @@ int atomctrl_get_voltage_evv(struct pp_hwmgr *hwmgr, + } + } + +- PP_ASSERT_WITH_CODE(entry_id < hwmgr->dyn_state.vddc_dependency_on_sclk->count, +- "Can't find requested voltage id in vddc_dependency_on_sclk table!", ++ if (entry_id >= hwmgr->dyn_state.vddc_dependency_on_sclk->count) { ++ pr_debug("Can't find requested voltage id in vddc_dependency_on_sclk table!\n"); + return -EINVAL; +- ); ++ } + + get_voltage_info_param_space.ucVoltageType = VOLTAGE_TYPE_VDDC; + get_voltage_info_param_space.ucVoltageMode = ATOM_GET_VOLTAGE_EVV_VOLTAGE; +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +index 1dad8a2..5e09876 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +@@ -1543,7 +1543,7 @@ static int smu7_get_evv_voltages(struct pp_hwmgr *hwmgr) + if (vddc >= 2000 || vddc == 0) + return -EINVAL; + } else { +- pr_warn("failed to retrieving EVV voltage!\n"); ++ pr_debug("failed to retrieving EVV voltage!\n"); + continue; + } + +@@ -3029,11 +3029,11 @@ static int smu7_get_pp_table_entry_v1(struct pp_hwmgr *hwmgr, + if (dep_mclk_table != NULL && dep_mclk_table->count == 1) { + if (dep_mclk_table->entries[0].clk != + data->vbios_boot_state.mclk_bootup_value) +- pr_err("Single MCLK entry VDDCI/MCLK dependency table " ++ pr_debug("Single MCLK entry VDDCI/MCLK dependency table " + "does not match VBIOS boot MCLK level"); + if (dep_mclk_table->entries[0].vddci != + data->vbios_boot_state.vddci_bootup_value) +- pr_err("Single VDDCI entry VDDCI/MCLK dependency table " ++ pr_debug("Single VDDCI entry VDDCI/MCLK dependency table " + "does not match VBIOS boot VDDCI level"); + } + +@@ -3177,11 +3177,11 @@ static int smu7_get_pp_table_entry_v0(struct pp_hwmgr *hwmgr, + if (dep_mclk_table != NULL && dep_mclk_table->count == 1) { + if (dep_mclk_table->entries[0].clk != + data->vbios_boot_state.mclk_bootup_value) +- pr_err("Single MCLK entry VDDCI/MCLK dependency table " ++ pr_debug("Single MCLK entry VDDCI/MCLK dependency table " + "does not match VBIOS boot MCLK level"); + if (dep_mclk_table->entries[0].v != + data->vbios_boot_state.vddci_bootup_value) +- pr_err("Single VDDCI entry VDDCI/MCLK dependency table " ++ pr_debug("Single VDDCI entry VDDCI/MCLK dependency table " + "does not match VBIOS boot VDDCI level"); + } + +-- +2.7.4 + |