OSDN Git Service

drm/amd/display: Log which clocks are unsupported
authorHarry Wentland <harry.wentland@amd.com>
Wed, 20 Dec 2017 15:46:50 +0000 (10:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:17:29 +0000 (14:17 -0500)
It would be useful to know which clocks are unsupported when logging an
error message about unsupported clocks.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c

index 54bcfae..046658c 100644 (file)
@@ -293,7 +293,10 @@ static enum dm_pp_clocks_state dce_get_required_clocks_state(
        low_req_clk = i + 1;
        if (low_req_clk > clk->max_clks_state) {
                dm_logger_write(clk->ctx->logger, LOG_WARNING,
-                               "%s: clocks unsupported", __func__);
+                               "%s: clocks unsupported disp_clk %d pix_clk %d",
+                               __func__,
+                               req_clocks->display_clk_khz,
+                               req_clocks->pixel_clk_khz);
                low_req_clk = DM_PP_CLOCKS_STATE_INVALID;
        }