aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3113-drm-amd-display-Log-which-clocks-are-unsupported.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3113-drm-amd-display-Log-which-clocks-are-unsupported.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3113-drm-amd-display-Log-which-clocks-are-unsupported.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3113-drm-amd-display-Log-which-clocks-are-unsupported.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3113-drm-amd-display-Log-which-clocks-are-unsupported.patch
new file mode 100644
index 00000000..db4e15f1
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3113-drm-amd-display-Log-which-clocks-are-unsupported.patch
@@ -0,0 +1,34 @@
+From 598053aa74b9da789eb16df814ea2ea05efc17e6 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Wed, 20 Dec 2017 10:46:50 -0500
+Subject: [PATCH 3113/4131] 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: Harry Wentland <harry.wentland@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
+index 54bcfae..046658c 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
++++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c
+@@ -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;
+ }
+
+--
+2.7.4
+