Commit c7e74f49 authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

drm/amd/display: Log which clocks are unsupported

It would be useful to know which clocks are unsupported when logging an
error message about unsupported clocks.
Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e07f541f
...@@ -293,7 +293,10 @@ static enum dm_pp_clocks_state dce_get_required_clocks_state( ...@@ -293,7 +293,10 @@ static enum dm_pp_clocks_state dce_get_required_clocks_state(
low_req_clk = i + 1; low_req_clk = i + 1;
if (low_req_clk > clk->max_clks_state) { if (low_req_clk > clk->max_clks_state) {
dm_logger_write(clk->ctx->logger, LOG_WARNING, 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; low_req_clk = DM_PP_CLOCKS_STATE_INVALID;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment