Commit 8f718712 authored by Yogesh Mohan Marimuthu's avatar Yogesh Mohan Marimuthu Committed by Greg Kroah-Hartman

drm/amd/display: calculate stream->phy_pix_clk before clock mapping

[ Upstream commit 08e1c28d ]

phy_pix_clk is one of the variable used to check if one PLL can be shared
with displays having common mode set configuration. As of now
phy_pix_clock varialbe is calculated in function dc_validate_stream().
dc_validate_stream() function is called after clocks are assigned for the
new display. Due to this during hotplug, when PLL sharing conditions are
checked for new display phy_pix_clk variable will be 0 and for displays
that are already enabled phy_pix_clk will have some value. Hence PLL will
not be shared and if the display hardware doesn't have any more PLL to
assign, mode set will fail due to resource unavailability.

Instead of only calculating the phy_pix_clk variable after the PLL is
assigned for new display, this patch calculates phy_pix_clk also during
the before assigning the PLL for new display.
Signed-off-by: 's avatarYogesh Mohan Marimuthu <>
Reviewed-by: 's avatarHarry Wentland <>
Acked-by: 's avatarBhawanpreet Lakha <>
Signed-off-by: 's avatarAlex Deucher <>
Signed-off-by: 's avatarSasha Levin <>
parent e4ac759e
......@@ -2002,6 +2002,8 @@ enum dc_status resource_map_pool_resources(
/* acquire new resources */
pipe_idx = acquire_first_free_pipe(&context->res_ctx, pool, stream);
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