drm/amd/display: Less log spam
authorJordan Lazare <Jordan.Lazare@amd.com>
Wed, 8 Mar 2017 19:04:16 +0000 (14:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:18:54 +0000 (17:18 -0400)
Signed-off-by: Jordan Lazare <Jordan.Lazare@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/basics/logger.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
drivers/gpu/drm/amd/display/dc/dce/dce_audio.c
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
drivers/gpu/drm/amd/display/include/logger_types.h

index a5625a3..8f44973 100644 (file)
@@ -32,6 +32,7 @@
 static const struct dc_log_type_info log_type_info_tbl[] = {
                {LOG_ERROR,                 "Error"},
                {LOG_WARNING,               "Warning"},
+               {LOG_DEBUG,                 "Debug"},
                {LOG_DC,                    "DC_Interface"},
                {LOG_SURFACE,               "Surface"},
                {LOG_HW_HOTPLUG,            "HW_Hotplug"},
@@ -80,12 +81,13 @@ static const struct dc_log_type_info log_type_info_tbl[] = {
                (1 << LOG_SYNC) | \
                (1 << LOG_BANDWIDTH_VALIDATION) | \
                (1 << LOG_MST) | \
-               (1 << LOG_BIOS) | \
                (1 << LOG_DETECTION_EDID_PARSER) | \
                (1 << LOG_DETECTION_DP_CAPS) | \
                (1 << LOG_BACKLIGHT)) | \
                (1 << LOG_I2C_AUX) | \
                (1 << LOG_IF_TRACE) /* | \
+               (1 << LOG_DEBUG) | \
+               (1 << LOG_BIOS) | \
                (1 << LOG_SURFACE) | \
                (1 << LOG_SCALER) | \
                (1 << LOG_DML) | \
index 656c39a..50163a0 100644 (file)
@@ -3299,7 +3299,7 @@ static enum bp_result patch_bios_image_from_ext_display_connection_info(
                                            opm_object,
                                            &ext_display_connection_info_tbl) != BP_RESULT_OK) {
 
-               dm_logger_write(bp->base.ctx->logger, LOG_BIOS,
+               dm_logger_write(bp->base.ctx->logger, LOG_WARNING,
                                "%s: Failed to read Connection Info Table", __func__);
                return BP_RESULT_UNSUPPORTED;
        }
index 7f52e39..b94c1e5 100644 (file)
@@ -773,8 +773,8 @@ void dce_aud_wall_dto_setup(
                        crtc_info->calculated_pixel_clock,
                        &clock_info);
 
-               dm_logger_write(audio->ctx->logger, LOG_HW_SET_MODE,\
-                               "\n************************%s:Input::requested_pixel_clock = %d"\
+               dm_logger_write(audio->ctx->logger, LOG_HW_AUDIO,\
+                               "\n%s:Input::requested_pixel_clock = %d"\
                                "calculated_pixel_clock =%d\n"\
                                "audio_dto_module = %d audio_dto_phase =%d \n\n", __func__,\
                                crtc_info->requested_pixel_clock,\
index d6662fa..f3e1a29 100644 (file)
@@ -1093,8 +1093,8 @@ static void dce110_se_setup_hdmi_audio(
                crtc_info->requested_pixel_clock,
                crtc_info->calculated_pixel_clock,
                &audio_clock_info)) {
-               dm_logger_write(enc->ctx->logger, LOG_HW_SET_MODE,
-                               "\n*********************%s:Input::requested_pixel_clock = %d"\
+               dm_logger_write(enc->ctx->logger, LOG_HW_AUDIO,
+                               "\n%s:Input::requested_pixel_clock = %d"\
                                "calculated_pixel_clock = %d \n", __func__,\
                                crtc_info->requested_pixel_clock,\
                                crtc_info->calculated_pixel_clock);
index babd652..832d17e 100644 (file)
@@ -35,6 +35,7 @@ struct dal_logger;
 enum dc_log_type {
        LOG_ERROR = 0,
        LOG_WARNING,
+       LOG_DEBUG,
        LOG_DC,
        LOG_SURFACE,
        LOG_HW_HOTPLUG,