All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5] drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color
@ 2019-04-03  6:22 Aditya Swarup
  2019-04-03  7:01 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color (rev3) Patchwork
                   ` (14 more replies)
  0 siblings, 15 replies; 29+ messages in thread
From: Aditya Swarup @ 2019-04-03  6:22 UTC (permalink / raw)
  To: intel-gfx; +Cc: Jani Nikula

From: Clinton Taylor <Clinton.A.Taylor@intel.com>

v2: Fix commit msg to reflect why issue occurs(Jani)
Set GCP_COLOR_INDICATION only when we set 10/12 bit deep color.

Changing settings from 10/12 bit deep color to 8 bit(& vice versa)
doesn't work correctly using xrandr max bpc property. When we
connect a monitor which supports deep color, the highest deep color
setting is selected; which sets GCP_COLOR_INDICATION. When we change
the setting to 8 bit color, we still set GCP_COLOR_INDICATION which
doesn't allow the switch back to 8 bit color.

v3,4: Add comments & drop changes in intel_hdmi_compute_config(Ville)
Since HSW+, GCP_COLOR_INDICATION is not required for 8bpc.

Drop the changes in intel_hdmi_compute_config as desired_bpp
is needed to change values for pipe_bpp based on bw_constrained flag.

v5: Fix missing logical && in condition for setting GCP_COLOR_INDICATION.

Signed-off-by: Clinton Taylor <Clinton.A.Taylor@intel.com>
Signed-off-by: Aditya Swarup <aditya.swarup@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Manasi Navare <manasi.d.navare@intel.com>
---
I tested the patch and there is still a bug in setting 10 bit deep
color mode. I am unable to set 10 bit color from xrandr from 12 bit
deep color or 8 bit. 
 drivers/gpu/drm/i915/intel_hdmi.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index 5ccb305a6e1c..d550653ad29f 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -962,8 +962,12 @@ static void intel_hdmi_compute_gcp_infoframe(struct intel_encoder *encoder,
 	crtc_state->infoframes.enable |=
 		intel_hdmi_infoframe_enable(HDMI_PACKET_TYPE_GENERAL_CONTROL);
 
-	/* Indicate color depth whenever the sink supports deep color */
-	if (hdmi_sink_is_deep_color(conn_state))
+	/* Indicate color depth whenever the sink supports deep color
+	 * Also, 8bpc + color depth indication is no longer supported
+	 * for HSW+ platforms.
+	 * */
+	if (hdmi_sink_is_deep_color(conn_state) &&
+	    crtc_state->pipe_bpp > 24)
 		crtc_state->infoframes.gcp |= GCP_COLOR_INDICATION;
 
 	/* Enable default_phase whenever the display mode is suitably aligned */
-- 
2.17.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2019-04-29  8:56 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-03  6:22 [PATCH v5] drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color Aditya Swarup
2019-04-03  7:01 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color (rev3) Patchwork
2019-04-03  7:33 ` ✓ Fi.CI.BAT: success " Patchwork
2019-04-03 20:44 ` ✓ Fi.CI.IGT: " Patchwork
2019-04-04 20:37 ` [PATCH v5] drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color Ville Syrjälä
2019-04-04 20:40 ` Ville Syrjälä
2019-04-05  5:55 ` [PATCH v6] " Aditya Swarup
2019-04-05 16:34   ` Clinton Taylor
2019-04-08 16:49     ` Ville Syrjälä
2019-04-05  6:46 ` ✗ Fi.CI.BAT: failure for drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color (rev4) Patchwork
2019-04-05 20:49 ` [PATCH v7] drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color Aditya Swarup
2019-04-05 22:29 ` ✓ Fi.CI.BAT: success for drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color (rev5) Patchwork
2019-04-06  3:36 ` [PATCH v7] drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color Aditya Swarup
2019-04-17  9:57   ` Jani Nikula
2019-04-25 20:44   ` Aditya Swarup
2019-04-26 10:12     ` Ville Syrjälä
2019-04-26 18:25       ` Aditya Swarup
2019-04-26  1:19   ` [PATCH v8] " Aditya Swarup
2019-04-26 10:14     ` Ville Syrjälä
2019-04-26 18:22     ` Aditya Swarup
2019-04-26 18:41       ` Ville Syrjälä
2019-04-26 18:53         ` Aditya Swarup
2019-04-26 19:06           ` Ville Syrjälä
2019-04-29  8:56     ` Jani Nikula
2019-04-06  4:08 ` ✓ Fi.CI.BAT: success for drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color (rev6) Patchwork
2019-04-07  3:42 ` ✓ Fi.CI.IGT: " Patchwork
2019-04-26  1:33 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: Set GCP_COLOR_INDICATION only for 10/12 bit deep color (rev7) Patchwork
2019-04-26  1:52 ` ✓ Fi.CI.BAT: success " Patchwork
2019-04-26 12:13 ` ✗ Fi.CI.IGT: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.