[v2,6/6] drm/i915/dp: Attach HDR metadata property to DP connector

Submitted by Mun, Gwan-gyeong on Aug. 23, 2019, 9:52 a.m.

Details

Message ID 20190823095232.28908-7-gwan-gyeong.mun@intel.com
State Accepted
Commit 0299dfa7ad54f95ae9502fc425184f865d326d3b
Headers show
Series "drm/i915/dp: Support for DP HDR outputs" ( rev: 2 ) in Intel GFX

Not browsing as part of any series.

Commit Message

Mun, Gwan-gyeong Aug. 23, 2019, 9:52 a.m.
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>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 00da8221eaba..899923ecd1c9 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -6495,6 +6495,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;
 

Comments

>-----Original Message-----
>From: Mun, Gwan-gyeong
>Sent: Friday, August 23, 2019 3:23 PM
>To: intel-gfx@lists.freedesktop.org
>Cc: dri-devel@lists.freedesktop.org; Shankar, Uma <uma.shankar@intel.com>;
>Sharma, Shashank <shashank.sharma@intel.com>
>Subject: [PATCH v2 6/6] drm/i915/dp: Attach HDR metadata property to DP connector
>
>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

The changes look good to me.
Reviewed-by: Uma Shankar <uma.shankar@intel.com>

>Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
>---
> drivers/gpu/drm/i915/display/intel_dp.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
>diff --git a/drivers/gpu/drm/i915/display/intel_dp.c
>b/drivers/gpu/drm/i915/display/intel_dp.c
>index 00da8221eaba..899923ecd1c9 100644
>--- a/drivers/gpu/drm/i915/display/intel_dp.c
>+++ b/drivers/gpu/drm/i915/display/intel_dp.c
>@@ -6495,6 +6495,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;
>
>--
>2.22.0