<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, 13 Mar 2018 at 19:32 Harry Wentland <<a href="mailto:harry.wentland@amd.com">harry.wentland@amd.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fixes: 680acc64120c (drm/amd/display: Set disp clk in a safe way to avoid<br>
over high dpp clk.)<br>
<br>
Signed-off-by: Harry Wentland <<a href="mailto:harry.wentland@amd.com" target="_blank">harry.wentland@amd.com</a>><br>
---<br>
 drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c | 2 ++<br>
 1 file changed, 2 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c<br>
index 76fc903515ba..78e6beb6cf26 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c<br>
@@ -623,6 +623,7 @@ static bool dce_apply_clock_voltage_request(<br>
                }<br>
        }<br>
        if (send_request) {<br>
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)<br>
                if (clk->ctx->dce_version >= DCN_VERSION_1_0) {<br>
                        struct dc *core_dc = clk->ctx->dc;<br>
                        /*use dcfclk request voltage*/<br>
@@ -630,6 +631,7 @@ static bool dce_apply_clock_voltage_request(<br>
                        clock_voltage_req.clocks_in_khz =<br>
                                dcn_find_dcfclk_suits_all(core_dc, &clk->cur_clocks_value);<br>
                }<br>
+#endif<br>
                dm_pp_apply_clock_for_voltage_request(<br>
                        clk->ctx, &clock_voltage_req);<br>
        }<br>
--<br>
2.14.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
<a href="mailto:amd-gfx@lists.freedesktop.org" target="_blank">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a></blockquote><div><br></div><div>Tested-by: Mike Lothian <<a href="mailto:mike@fireburn.co.uk">mike@fireburn.co.uk</a>> </div></div></div>