diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4912-drm-amd-display-dcc-always-on-for-bw-calculations-on.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/4912-drm-amd-display-dcc-always-on-for-bw-calculations-on.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4912-drm-amd-display-dcc-always-on-for-bw-calculations-on.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4912-drm-amd-display-dcc-always-on-for-bw-calculations-on.patch new file mode 100644 index 00000000..3cc8f85b --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4912-drm-amd-display-dcc-always-on-for-bw-calculations-on.patch @@ -0,0 +1,47 @@ +From 54a1fef4af129f946eea051c42e25d67a717fb65 Mon Sep 17 00:00:00 2001 +From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> +Date: Wed, 13 Jun 2018 13:58:14 -0400 +Subject: [PATCH 4912/5725] drm/amd/display: dcc always on for bw calculations + on raven + +Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> +Reviewed-by: Charlene Liu <Charlene.Liu@amd.com> +Acked-by: Harry Wentland <harry.wentland@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 19 ++++++++++++++++++- + 1 file changed, 18 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +index e44b8d3..080f777 100644 +--- a/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c ++++ b/drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +@@ -250,7 +250,24 @@ static void pipe_ctx_to_e2e_pipe_params ( + else if (pipe->bottom_pipe != NULL && pipe->bottom_pipe->plane_state == pipe->plane_state) + input->src.is_hsplit = true; + +- input->src.dcc = pipe->plane_state->dcc.enable; ++ if (pipe->plane_res.dpp->ctx->dc->debug.optimized_watermark) { ++ /* ++ * this method requires us to always re-calculate watermark when dcc change ++ * between flip. ++ */ ++ input->src.dcc = pipe->plane_state->dcc.enable ? 1 : 0; ++ } else { ++ /* ++ * allow us to disable dcc on the fly without re-calculating WM ++ * ++ * extra overhead for DCC is quite small. for 1080p WM without ++ * DCC is only 0.417us lower (urgent goes from 6.979us to 6.562us) ++ */ ++ unsigned int bpe; ++ ++ input->src.dcc = pipe->plane_res.dpp->ctx->dc->res_pool->hubbub->funcs-> ++ dcc_support_pixel_format(pipe->plane_state->format, &bpe) ? 1 : 0; ++ } + input->src.dcc_rate = 1; + input->src.meta_pitch = pipe->plane_state->dcc.grph.meta_pitch; + input->src.source_scan = dm_horz; +-- +2.7.4 + |