diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4176-drm-amd-display-move-the-bounding-box-patch-before-c.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4176-drm-amd-display-move-the-bounding-box-patch-before-c.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4176-drm-amd-display-move-the-bounding-box-patch-before-c.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4176-drm-amd-display-move-the-bounding-box-patch-before-c.patch new file mode 100644 index 00000000..d83d3ade --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4176-drm-amd-display-move-the-bounding-box-patch-before-c.patch @@ -0,0 +1,66 @@ +From db7b94316b5d854d1eaf74fd7d9f97f331252ac7 Mon Sep 17 00:00:00 2001 +From: Lewis Huang <Lewis.Huang@amd.com> +Date: Wed, 2 Oct 2019 14:09:52 -0400 +Subject: [PATCH 4176/4736] drm/amd/display: move the bounding box patch before + calculate wm + +[why] +driver updateis the dcn2_1_soc into dml before call update_bw_bounding_box + +[How] +Move the patch function before calculate wm. + +Signed-off-by: Lewis Huang <Lewis.Huang@amd.com> +Signed-off-by: joseph graveno <joseph.gravenor@amd.com> +Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> +Reviewed-by: Roman Li <Roman.Li@amd.com> +--- + .../drm/amd/display/dc/dcn21/dcn21_resource.c | 25 +++++++++++++++++++ + 1 file changed, 25 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c +index 085e6d38c45e..05baf0e4d79f 100644 +--- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c ++++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c +@@ -1009,6 +1009,29 @@ static void calculate_wm_set_for_vlevel( + + } + ++static void patch_bounding_box(struct dc *dc, struct _vcs_dpi_soc_bounding_box_st *bb) ++{ ++ kernel_fpu_begin(); ++ if (dc->bb_overrides.sr_exit_time_ns) { ++ bb->sr_exit_time_us = dc->bb_overrides.sr_exit_time_ns / 1000.0; ++ } ++ ++ if (dc->bb_overrides.sr_enter_plus_exit_time_ns) { ++ bb->sr_enter_plus_exit_time_us = ++ dc->bb_overrides.sr_enter_plus_exit_time_ns / 1000.0; ++ } ++ ++ if (dc->bb_overrides.urgent_latency_ns) { ++ bb->urgent_latency_us = dc->bb_overrides.urgent_latency_ns / 1000.0; ++ } ++ ++ if (dc->bb_overrides.dram_clock_change_latency_ns) { ++ bb->dram_clock_change_latency_us = ++ dc->bb_overrides.dram_clock_change_latency_ns / 1000.0; ++ } ++ kernel_fpu_end(); ++} ++ + void dcn21_calculate_wm( + struct dc *dc, struct dc_state *context, + display_e2e_pipe_params_st *pipes, +@@ -1023,6 +1046,8 @@ void dcn21_calculate_wm( + + ASSERT(bw_params); + ++ patch_bounding_box(dc, &context->bw_ctx.dml.soc); ++ + for (i = 0, pipe_idx = 0, pipe_cnt = 0; i < dc->res_pool->pipe_count; i++) { + if (!context->res_ctx.pipe_ctx[i].stream) + continue; +-- +2.17.1 + |