Skip to contentSkip to conversation

drm/amd/display: Fix DCN build breakage

PATCH In review Harry Wentland 3 participants 3 messages Mar 13, 2018 – Mar 14, 2018 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: Fix DCN build breakage

Fixes 680acc64120c (drm/amd/display: Set disp clk in a safe way to avoid

over high dpp clk.)

---
 drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c +2 -0
index 76fc903515ba..78e6beb6cf26 100644
@@ -623,6 +623,7 @@ static bool dce_apply_clock_voltage_request(
 		}
 	}
 	if (send_request) {
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 		if (clk->ctx->dce_version >= DCN_VERSION_1_0) {
 			struct dc *core_dc = clk->ctx->dc;
 			/*use dcfclk request voltage*/
@@ -630,6 +631,7 @@ static bool dce_apply_clock_voltage_request(
 			clock_voltage_req.clocks_in_khz =
 				dcn_find_dcfclk_suits_all(core_dc, &clk->cur_clocks_value);
 		}
+#endif
 		dm_pp_apply_clock_for_voltage_request(
 			clk->ctx, &clock_voltage_req);
 	}
Signature · 6 lines
2.14.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20180313193140.27687-1-harry.wentland-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Harry Wentland <[email protected]>
Sent: Tuesday, March 13, 2018 3:31:40 PM
To: [email protected]
Cc: Wentland, Harry
Subject: [PATCH] drm/amd/display: Fix DCN build breakage

Fixes 680acc64120c (drm/amd/display: Set disp clk in a safe way to avoid

over high dpp clk.)

---
 drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c +2 -0
index 76fc903515ba..78e6beb6cf26 100644
@@ -623,6 +623,7 @@ static bool dce_apply_clock_voltage_request(
                 }
         }
         if (send_request) {
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
                 if (clk->ctx->dce_version >= DCN_VERSION_1_0) {
                         struct dc *core_dc = clk->ctx->dc;
                         /*use dcfclk request voltage*/
@@ -630,6 +631,7 @@ static bool dce_apply_clock_voltage_request(
                         clock_voltage_req.clocks_in_khz =
                                 dcn_find_dcfclk_suits_all(core_dc, &clk->cur_clocks_value);
                 }
+#endif
                 dm_pp_apply_clock_for_voltage_request(
                         clk->ctx, &clock_voltage_req);
         }

--
2.14.1

_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Tested-by
#3 lore raw
In reply to a message not in the archive
Quoted 30 lines · On Tue, 13 Mar 2018 at 19:32 Harry Wentland…
Fixes 680acc64120c (drm/amd/display: Set disp clk in a safe way to avoid

over high dpp clk.)

---
 drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/dce/dce_clocks.c +2 -0
index 76fc903515ba..78e6beb6cf26 100644
@@ -623,6 +623,7 @@ static bool dce_apply_clock_voltage_request(
                }
        }
        if (send_request) {
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
                if (clk->ctx->dce_version >= DCN_VERSION_1_0) {
                        struct dc *core_dc = clk->ctx->dc;
                        /*use dcfclk request voltage*/
@@ -630,6 +631,7 @@ static bool dce_apply_clock_voltage_request(
                        clock_voltage_req.clocks_in_khz =
                                dcn_find_dcfclk_suits_all(core_dc,
 &clk->cur_clocks_value);
                }
+#endif
                dm_pp_apply_clock_for_voltage_request(
                        clk->ctx, &clock_voltage_req);
        }
Quoted 7 lines

--
2.14.1

_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx