FAILED: patch "[PATCH] drm/i915: Only enable DFP 4:4:4->4:2:0 conversion when" failed to apply to 5.10-stable tree
[email protected]
maintainerThe patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 1c4995b0a576d24bb7ead991fb037c8b47ab6e32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <[email protected]>
Date: Mon, 18 Jan 2021 17:43:55 +0200
Subject: [PATCH] drm/i915: Only enable DFP 4:4:4->4:2:0 conversion when
outputting YCbCr 4:4:4
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Let's not enable the 4:4:4->4:2:0 conversion bit in the DFP unless we're actually outputting YCbCr 4:4:4. It would appear some protocol converters blindy consult this bit even when the source is outputting RGB, resulting in a visual mess.
drivers/gpu/drm/i915/display/intel_ddi.c +1 -1
@@ -3725,7 +3725,7 @@ static void hsw_ddi_pre_enable_dp(struct intel_atomic_state *state,intel_ddi_init_dp_buf_reg (encoder, crtc_state);if (!is_mst)intel_dp_set_power (intel_dp,DP_SET_POWER_D0 ); -intel_dp_configure_protocol_converter (intel_dp); +intel_dp_configure_protocol_converter (intel_dp, crtc_state);intel_dp_sink_set_decompression_state (intel_dp, crtc_state, true);intel_dp_sink_set_fec_ready (intel_dp, crtc_state);
drivers/gpu/drm/i915/display/intel_dp.c +5 -4
@@ -4014,7 +4014,8 @@ static void intel_dp_enable_port(struct intel_dp *intel_dp,intel_de_posting_read (dev_priv, intel_dp->output_reg); } -void intel_dp_configure_protocol_converter (struct intel_dp *intel_dp) +void intel_dp_configure_protocol_converter (struct intel_dp *intel_dp, +const struct intel_crtc_state *crtc_state) {struct drm_i915_private *i915 =dp_to_i915 (intel_dp);u8 tmp;
@@ -4033,8 +4034,8 @@ void intel_dp_configure_protocol_converter(struct intel_dp *intel_dp)drm_dbg_kms (&i915->drm,"Failed to set protocol converter HDMI mode to %s\n" ,enableddisabled (intel_dp->has_hdmi_sink)); - tmp = intel_dp->dfp.ycbcr_444_to_420 ? -DP_CONVERSION_TO_YCBCR420_ENABLE :0 ; + tmp = crtc_state->output_format ==INTEL_OUTPUT_FORMAT_YCBCR444 && + intel_dp->dfp.ycbcr_444_to_420 ?DP_CONVERSION_TO_YCBCR420_ENABLE :0 ;if (drm_dp_dpcd_writeb (&intel_dp->aux,DP_PROTOCOL_CONVERTER_CONTROL_1 , tmp) !=1 )
@@ -4088,7 +4089,7 @@ static void intel_enable_dp(struct intel_atomic_state *state, }intel_dp_set_power (intel_dp,DP_SET_POWER_D0 ); -intel_dp_configure_protocol_converter (intel_dp); +intel_dp_configure_protocol_converter (intel_dp, pipe_config);intel_dp_start_link_train (intel_dp, pipe_config);intel_dp_stop_link_train (intel_dp, pipe_config);
drivers/gpu/drm/i915/display/intel_dp.h +2 -1
@@ -51,7 +51,8 @@ int intel_dp_get_link_train_fallback_values(struct intel_dp *intel_dp,int intel_dp_retrain_link (struct intel_encoder *encoder,struct drm_modeset_acquire_ctx *ctx);void intel_dp_set_power (struct intel_dp *intel_dp,u8 mode); -void intel_dp_configure_protocol_converter (struct intel_dp *intel_dp); +void intel_dp_configure_protocol_converter (struct intel_dp *intel_dp, +const struct intel_crtc_state *crtc_state);void intel_dp_sink_set_decompression_state (struct intel_dp *intel_dp,const struct intel_crtc_state *crtc_state,bool enable);
PATCH 1/1 drm/i915: Only enable DFP 4:4:4->4:2:0 conversion when outputting YCbCr 4:4:4
From: Ville Syrjälä <[email protected]>
commit 1c4995b0a576d24bb7ead991fb037c8b47ab6e32 upstream.
Let's not enable the 4:4:4->4:2:0 conversion bit in the DFP unless we're actually outputting YCbCr 4:4:4. It would appear some protocol converters blindy consult this bit even when the source is outputting RGB, resulting in a visual mess.
---
Note the extra depdendency on commit 0e634efd858e ("drm/i915: s/intel_dp_sink_dpms/intel_dp_set_power/").
drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 9 +++++---- drivers/gpu/drm/i915/display/intel_dp.h | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +1 -1
@@ -3470,7 +3470,7 @@ static void hsw_ddi_pre_enable_dp(struct intel_atomic_state *state,intel_ddi_init_dp_buf_reg (encoder);if (!is_mst)intel_dp_set_power (intel_dp,DP_SET_POWER_D0 ); -intel_dp_configure_protocol_converter (intel_dp); +intel_dp_configure_protocol_converter (intel_dp, crtc_state);intel_dp_sink_set_decompression_state (intel_dp, crtc_state, true);intel_dp_sink_set_fec_ready (intel_dp, crtc_state);
drivers/gpu/drm/i915/display/intel_dp.c +5 -4
@@ -3856,7 +3856,8 @@ static void intel_dp_enable_port(struct intel_dp *intel_dp,intel_de_posting_read (dev_priv, intel_dp->output_reg); } -void intel_dp_configure_protocol_converter (struct intel_dp *intel_dp) +void intel_dp_configure_protocol_converter (struct intel_dp *intel_dp, +const struct intel_crtc_state *crtc_state) {struct drm_i915_private *i915 =dp_to_i915 (intel_dp);u8 tmp;
@@ -3875,8 +3876,8 @@ void intel_dp_configure_protocol_converter(struct intel_dp *intel_dp)drm_dbg_kms (&i915->drm,"Failed to set protocol converter HDMI mode to %s\n" ,enableddisabled (intel_dp->has_hdmi_sink)); - tmp = intel_dp->dfp.ycbcr_444_to_420 ? -DP_CONVERSION_TO_YCBCR420_ENABLE :0 ; + tmp = crtc_state->output_format ==INTEL_OUTPUT_FORMAT_YCBCR444 && + intel_dp->dfp.ycbcr_444_to_420 ?DP_CONVERSION_TO_YCBCR420_ENABLE :0 ;if (drm_dp_dpcd_writeb (&intel_dp->aux,DP_PROTOCOL_CONVERTER_CONTROL_1 , tmp) !=1 )
@@ -3930,7 +3931,7 @@ static void intel_enable_dp(struct intel_atomic_state *state, }intel_dp_set_power (intel_dp,DP_SET_POWER_D0 ); -intel_dp_configure_protocol_converter (intel_dp); +intel_dp_configure_protocol_converter (intel_dp, pipe_config);intel_dp_start_link_train (intel_dp);intel_dp_stop_link_train (intel_dp);
drivers/gpu/drm/i915/display/intel_dp.h +2 -1
@@ -51,7 +51,8 @@ int intel_dp_get_link_train_fallback_values(struct intel_dp *intel_dp,int intel_dp_retrain_link (struct intel_encoder *encoder,struct drm_modeset_acquire_ctx *ctx);void intel_dp_set_power (struct intel_dp *intel_dp,u8 mode); -void intel_dp_configure_protocol_converter (struct intel_dp *intel_dp); +void intel_dp_configure_protocol_converter (struct intel_dp *intel_dp, +const struct intel_crtc_state *crtc_state);void intel_dp_sink_set_decompression_state (struct intel_dp *intel_dp,const struct intel_crtc_state *crtc_state,bool enable);
Signature · 6 lines
2.26.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Greg KH
maintainerRe: [Intel-gfx] [PATCH stable-5.10] drm/i915: Only enable DFP 4:4:4->4:2:0 conversion when outputting YCbCr 4:4:4
Quoted 20 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
commit
1c4995b0a576d24bb7ead991fb037c8b47ab6e32upstream.Let's not enable the 4:4:4->4:2:0 conversion bit in the DFP unless we're actually outputting YCbCr 4:4:4. It would appear some protocol converters blindy consult this bit even when the source is outputting RGB, resulting in a visual mess.
Cc <[email protected]> # 0e634efd858e: drm/i915: s/intel_dp_sink_dpms/intel_dp_set_power/Signed-off-by Ville Syrjälä <[email protected]>Fixes 181567aa9f0d ("drm/i915: Do YCbCr 444->420 conversion via DP protocol converters")Reviewed-by Jani Nikula <[email protected]>(cherry picked from commit 3170a21f7059c4660c469f59bf529f372a57da5f)Signed-off-by Jani Nikula <[email protected]>(cherry picked from commit 1c4995b0a576d24bb7ead991fb037c8b47ab6e32)
Quoted 3 lines
---
Note the extra depdendency on commit0e634efd858e("drm/i915: s/intel_dp_sink_dpms/intel_dp_set_power/").
Thanks for this, now queued up.
greg k-h
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Only enable DFP 4:4:4->4:2:0 conversion when outputting YCbCr 4:4:4
In reply to [email protected]== Series Details ==
== Series Details ==
Series: drm/i915: Only enable DFP 4:4:4->4:2:0 conversion when outputting YCbCr 4:4:4
URL : https://patchwork.freedesktop.org/series/86256/
State : failure
== Summary ==
Applying: drm/i915: Only enable DFP 4:4:4->4:2:0 conversion when outputting YCbCr 4:4:4
error: sha1 information is lacking or useless (drivers/gpu/drm/i915/display/intel_ddi.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 drm/i915: Only enable DFP 4:4:4->4:2:0 conversion when outputting YCbCr 4:4:4 When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx