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

drm/amd/display: Don't call DCN clk code for Vega

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 1159898a
...@@ -614,11 +614,13 @@ static bool dce_apply_clock_voltage_request( ...@@ -614,11 +614,13 @@ static bool dce_apply_clock_voltage_request(
} }
if (send_request) { if (send_request) {
#if defined(CONFIG_DRM_AMD_DC_DCN1_0) #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
struct core_dc *core_dc = DC_TO_CORE(clk->ctx->dc); if (clk->ctx->dce_version == DCN_VERSION_1_0) {
/*use dcfclk request voltage*/ struct core_dc *core_dc = DC_TO_CORE(clk->ctx->dc);
clock_voltage_req.clk_type = DM_PP_CLOCK_TYPE_DCFCLK; /*use dcfclk request voltage*/
clock_voltage_req.clocks_in_khz = clock_voltage_req.clk_type = DM_PP_CLOCK_TYPE_DCFCLK;
clock_voltage_req.clocks_in_khz =
dcn_find_dcfclk_suits_all(core_dc, &clk->cur_clocks_value); dcn_find_dcfclk_suits_all(core_dc, &clk->cur_clocks_value);
}
#endif #endif
dm_pp_apply_clock_for_voltage_request( dm_pp_apply_clock_for_voltage_request(
clk->ctx, &clock_voltage_req); clk->ctx, &clock_voltage_req);
......
...@@ -1633,7 +1633,7 @@ enum dc_status dce110_apply_ctx_to_hw( ...@@ -1633,7 +1633,7 @@ enum dc_status dce110_apply_ctx_to_hw(
apply_min_clocks(dc, context, &clocks_state, true); apply_min_clocks(dc, context, &clocks_state, true);
#if defined(CONFIG_DRM_AMD_DC_DCN1_0) #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
if (resource_parse_asic_id(dc->ctx->asic_id) == DCN_VERSION_1_0) { if (dc->ctx->dce_version == DCN_VERSION_1_0) {
if (context->bw.dcn.calc_clk.fclk_khz if (context->bw.dcn.calc_clk.fclk_khz
> dc->current_context->bw.dcn.cur_clk.fclk_khz) { > dc->current_context->bw.dcn.cur_clk.fclk_khz) {
struct dm_pp_clock_for_voltage_req clock; struct dm_pp_clock_for_voltage_req clock;
......
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