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 a5625a3badab6f3405d966b4f8058bf903fcbe79..8f4497332bda7f430ece59ec8015da47ef0f9c14 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 656c39ac0256be03ea5987ccac4c6e2ed5b0af90..50163a06a653414492d6a19e110ce36b24b606dc 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 7f52e39ec92a6944cf3a39845089b8034ccfc05c..b94c1e5d85cb520904aa3c14d9cf98b01a22c390 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 d6662fa2f4e1e37f6cd0f8f29f7b5375ec535a22..f3e1a293351ffb40fc6af8d1e8304f64d8e2ced2 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 babd6523b1052d0f519040fad90c3a7d2e4af64f..832d17e1cc49540e2950571de7cb77d2695bba8e 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,