diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0801-drm-amd-display-calculate-stream-phy_pix_clk-before-.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/0801-drm-amd-display-calculate-stream-phy_pix_clk-before-.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0801-drm-amd-display-calculate-stream-phy_pix_clk-before-.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0801-drm-amd-display-calculate-stream-phy_pix_clk-before-.patch new file mode 100644 index 00000000..8288565a --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0801-drm-amd-display-calculate-stream-phy_pix_clk-before-.patch @@ -0,0 +1,46 @@ +From b058bf7df5f59ed785e812cc1724927e35a0f026 Mon Sep 17 00:00:00 2001 +From: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com> +Date: Sat, 20 Oct 2018 01:21:40 +0530 +Subject: [PATCH 0801/2940] drm/amd/display: calculate stream->phy_pix_clk + before clock mapping + +[why] +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. + +[how] +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: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com> +Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> +Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +index a7c950ad95b6..fcb29ca6f0e8 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +@@ -1976,6 +1976,8 @@ enum dc_status resource_map_pool_resources( + } + */ + ++ calculate_phy_pix_clks(stream); ++ + /* acquire new resources */ + pipe_idx = acquire_first_free_pipe(&context->res_ctx, pool, stream); + +-- +2.17.1 + |