]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/powerplay: refine dmesg info under powerplay
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 15 Sep 2017 03:09:20 +0000 (11:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 17:06:58 +0000 (13:06 -0400)
Use pr_debug to prevent spamming unimportant dmesg.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

index 49733c7817179ccc811257750885141e84ce04b2..fa0305e79c4a154374bb5d89b0d71b7d5adff89e 100644 (file)
@@ -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;
index 03075c6ac512714740d33e2c1474cf2a4bda3ea7..264e98f4f95502c997c52efba4db0ec0154f22f0 100644 (file)
@@ -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;
                                }
 
@@ -3026,11 +3026,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");
        }
 
@@ -3174,11 +3174,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");
        }