diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1026-drm-amd-display-not-override-the-FMT-setting-set-by-.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1026-drm-amd-display-not-override-the-FMT-setting-set-by-.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1026-drm-amd-display-not-override-the-FMT-setting-set-by-.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1026-drm-amd-display-not-override-the-FMT-setting-set-by-.patch new file mode 100644 index 00000000..63d4acc6 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1026-drm-amd-display-not-override-the-FMT-setting-set-by-.patch @@ -0,0 +1,38 @@ +From fe8cd999bb4a377004dc83937c15d2eaac33866f Mon Sep 17 00:00:00 2001 +From: Charlene Liu <charlene.liu@amd.com> +Date: Mon, 28 Aug 2017 19:33:23 -0400 +Subject: [PATCH 1026/4131] drm/amd/display: not override the FMT setting set + by VBIOS for eDP + +Change-Id: Ibc8e1803b6f3ee22ae6d27bb5b9eaff666e899a5 +Signed-off-by: Charlene Liu <charlene.liu@amd.com> +Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com> +Acked-by: Harry Wentland <Harry.Wentland@amd.com> +--- + drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +index 403b45e..1e3ec04 100644 +--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c ++++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +@@ -1077,11 +1077,14 @@ static enum dc_status apply_single_controller_ctx_to_hw( + + + /*vbios crtc_source_selection and encoder_setup will override fmt_C*/ +- pipe_ctx->stream_res.opp->funcs->opp_program_fmt( ++ if (pipe_ctx->stream->signal != SIGNAL_TYPE_EDP && ++ pipe_ctx->stream->signal != SIGNAL_TYPE_LVDS) { ++ /*for embedded panel, don't override VBIOS's setting*/ ++ pipe_ctx->stream_res.opp->funcs->opp_program_fmt( + pipe_ctx->stream_res.opp, + &stream->bit_depth_params, + &stream->clamping); +- ++ } + if (dc_is_dp_signal(pipe_ctx->stream->signal)) + pipe_ctx->stream_res.stream_enc->funcs->dp_set_stream_attribute( + pipe_ctx->stream_res.stream_enc, +-- +2.7.4 + |