[PATCH v3 03/14] drm: add hdmi 2.0 source identifier

Shashank Sharma shashank.sharma at intel.com
Wed Jun 14 17:47:34 UTC 2017


This patch adds a bool variable (is_hdmi2_src) in the drm connector
structure. While handling the EDID for HDMI 2.0 sinks, its important
to know if the source is HDMI 2.0 capable or not, so that a lot of
work can be done/bypassed based on this information. One such example
is adding YCBCR420 only modes.

If the driver knows that this source is not HDMI 2.0 capable, it will
not add YCBCR420-only modes while adding EDID modes, and will prevent
any runtime modeset failures.

This variable will be initialized from I915 driver in the next patch
and will be used in the EDID handling for HDMI 2.0 specific features,
in this same series.

Signed-off-by: Shashank Sharma <shashank.sharma at intel.com>
---
 include/drm/drm_connector.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h
index d8bb25f..390319c 100644
--- a/include/drm/drm_connector.h
+++ b/include/drm/drm_connector.h
@@ -728,6 +728,15 @@ struct drm_connector {
 	bool interlace_allowed;
 	bool doublescan_allowed;
 	bool stereo_allowed;
+
+	/**
+	 * @is_hdmi2_src : This bool indicates if this connector is a HDMI 2.0
+	 * capable source. While handling the EDID functions (specially HDMI
+	 * 2.0 specific capabilities like YCBCR420 handling), its important to
+	 * know if the source is capable of driving a HDMI 2.0 display.
+	 */
+	bool is_hdmi2_src;
+
 	/**
 	 * @registered: Is this connector exposed (registered) with userspace?
 	 * Protected by @mutex.
-- 
2.7.4



More information about the dri-devel mailing list