]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/dp: Attach HDR metadata property to DP connector
authorGwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Thu, 19 Sep 2019 19:53:11 +0000 (22:53 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 15 Oct 2019 13:24:59 +0000 (16:24 +0300)
It attaches HDR metadata property to DP connector on GLK+.
It enables HDR metadata infoframe sdp on GLK+ to be used to send
HDR metadata to DP sink.

v2: Minor style fix

Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190919195311.13972-9-gwan-gyeong.mun@intel.com
drivers/gpu/drm/i915/display/intel_dp.c

index edb95a4cdb21efc1a5052bccfd228eb33c36a929..dd5dc1e38495d82963c8d154e350d1fe7abd264b 100644 (file)
@@ -6570,6 +6570,11 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connect
 
        intel_attach_colorspace_property(connector);
 
+       if (IS_GEMINILAKE(dev_priv) || INTEL_GEN(dev_priv) >= 11)
+               drm_object_attach_property(&connector->base,
+                                          connector->dev->mode_config.hdr_output_metadata_property,
+                                          0);
+
        if (intel_dp_is_edp(intel_dp)) {
                u32 allowed_scalers;