Added state readout for DP HDR Metadata Infoframe SDP.

v9: Rebased

Signed-off-by: Gwan-gyeong Mun <gwan-gyeong....@intel.com>
Reviewed-by: Uma Shankar <uma.shan...@intel.com>
---
 drivers/gpu/drm/i915/display/intel_ddi.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c 
b/drivers/gpu/drm/i915/display/intel_ddi.c
index feaa12c6a494..710e2e42a12a 100644
--- a/drivers/gpu/drm/i915/display/intel_ddi.c
+++ b/drivers/gpu/drm/i915/display/intel_ddi.c
@@ -4000,6 +4000,9 @@ void intel_ddi_get_config(struct intel_encoder *encoder,
                                    pipe_config->fec_enable);
                }
 
+               pipe_config->infoframes.enable |=
+                       intel_hdmi_infoframes_enabled(encoder, pipe_config);
+
                break;
        case TRANS_DDI_MODE_SELECT_DP_MST:
                pipe_config->output_types |= BIT(INTEL_OUTPUT_DP_MST);
@@ -4011,6 +4014,9 @@ void intel_ddi_get_config(struct intel_encoder *encoder,
                                        
REG_FIELD_GET(TRANS_DDI_MST_TRANSPORT_SELECT_MASK, temp);
 
                intel_dp_get_m_n(intel_crtc, pipe_config);
+
+               pipe_config->infoframes.enable |=
+                       intel_hdmi_infoframes_enabled(encoder, pipe_config);
                break;
        default:
                break;
@@ -4065,6 +4071,8 @@ void intel_ddi_get_config(struct intel_encoder *encoder,
 
        if (INTEL_GEN(dev_priv) >= 11)
                icl_get_trans_port_sync_config(pipe_config);
+
+       intel_read_dp_sdp(encoder, pipe_config, 
HDMI_PACKET_TYPE_GAMUT_METADATA);
 }
 
 static enum intel_output_type
-- 
2.25.0

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

Reply via email to