drm/i915/dp: Support for DP HDR outputs
v3 cover drm/i915/dp: Support for DP HDR outputs
Support for HDR10 video was introduced in DisplayPort 1.4.
On GLK+ platform, in order to use DisplayPort HDR10, we need to support BT.2020 colorimetry and HDR Static metadata.
It implements the CTA-861-G standard for transport of static HDR metadata. It enables writing of HDR metadata infoframe SDP to the panel. The HDR Metadata will be provided by userspace compositors, based on blending policies and passed to the driver through a blob property. And It refactors, renames and extends a function which handled vsc sdp header and data block setup for supporting colorimetry format. And It attaches the colorspace connector property and HDR metadata property to a DisplayPort connector.
These patches tested on below test environment.
Test Environment:
- Tested System: GLK and Gen11 platform.
- Monitor: Dell UP2718Q 4K HDR Monitor.
- In order to test DP HDR10, test environment uses patched Kodi-gbm, patched Media driver and HDR10 video.
You can find these on below.
[patched Kodi-gbm]
- repo: https://github.com/Kwiboo/xbmc/tree/drmprime-hdr
[download 4K HDR video file]
- link: https://4kmedia.org/lg-new-york-hdr-uhd-4k-demo/
[Media Driver for GLK]
- repo https://gitlab.freedesktop.org/emersion/intel-vaapi-driver
master branch
[Media Driver for ICL]
- repo: https://github.com/harishkrupo/media-driver/tree/p010_composite
v2:
- Add a missed blank line after function declaration.
- Remove useless parentheses.
- Minor style fix.
v3:
- Remove not handled return values from intel_dp_setup_hdr_metadata_infoframe_sdp(). [Uma]
- Add handling of different register size for HDMI_PACKET_TYPE_GAMUT_METADATA on hsw_dip_data_size() for each GEN platforms [Uma]
- Add new colorimetry options for DP 1.4a spec. [Ville]
- Separate set of colorimetry enum values for DP. [Ville]
- In order to checking output format and output colorspace on intel_dp_needs_vsc_sdp(), it passes entire intel_crtc_state stucture.[Ville]
- Remove a pointless variable. [Ville]
Gwan-gyeong Mun (7):
drm/i915/dp: Extend program of VSC Header and DB for Colorimetry
Format
drm/i915/dp: Add support of BT.2020 Colorimetry to DP MSA
drm: Add DisplayPort colorspace property
drm/i915/dp: Attach colorspace property
drm/i915: Add new GMP register size for GEN11 drm/i915/dp: Program an Infoframe SDP Header and DB for HDR Static
Metadata
drm/i915/dp: Attach HDR metadata property to DP connector
drivers/gpu/drm/drm_connector.c | 43 ++++ drivers/gpu/drm/i915/display/intel_ddi.c | 10 +- drivers/gpu/drm/i915/display/intel_display.h | 2 - .../drm/i915/display/intel_display_types.h | 3 + drivers/gpu/drm/i915/display/intel_dp.c | 193 ++++++++++++++++-- drivers/gpu/drm/i915/display/intel_dp.h | 7 + drivers/gpu/drm/i915/display/intel_hdmi.c | 10 +- drivers/gpu/drm/i915/i915_reg.h | 1 + include/drm/drm_connector.h | 8 + 9 files changed, 256 insertions(+), 21 deletions(-)
Signature · 6 lines
2.23.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 1/7 drm/i915/dp: Extend program of VSC Header and DB for Colorimetry Format
It refactors and renames a function which handled vsc sdp header and data block setup for supporting colorimetry format.
Function intel_dp_setup_vsc_sdp handles vsc sdp header and data block setup for pixel encoding / colorimetry format.
In order to use colorspace information of a connector, it adds an argument of drm_connector_state type.
Setup VSC header and data block in function intel_dp_setup_vsc_sdp for pixel encoding / colorimetry format as per dp 1.4a spec, section 2.2.5.7.1, table 2-119: VSC SDP Header Bytes, section 2.2.5.7.5,
table 2-120: VSC SDP Payload for DB16 through DB18.
--- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- drivers/gpu/drm/i915/display/intel_display.h | 2 - drivers/gpu/drm/i915/display/intel_dp.c | 68 ++++++++++++++++---- drivers/gpu/drm/i915/display/intel_dp.h | 3 + 4 files changed, 60 insertions(+), 15 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +1 -1
@@ -3610,7 +3610,7 @@ static void intel_enable_ddi_dp(struct intel_encoder *encoder,intel_edp_backlight_on (crtc_state, conn_state);intel_psr_enable (intel_dp, crtc_state); -intel_dp_ycbcr_420_enable (intel_dp, crtc_state); +intel_dp_vsc_enable (intel_dp, crtc_state, conn_state);intel_edp_drrs_enable (intel_dp, crtc_state);if (crtc_state->has_audio)
drivers/gpu/drm/i915/display/intel_display.h +0 -2
@@ -526,8 +526,6 @@ void intel_dp_get_m_n(struct intel_crtc *crtc, struct intel_crtc_state *pipe_config);void intel_dp_set_m_n (const struct intel_crtc_state *crtc_state,enum link_m_n_set m_n); -void intel_dp_ycbcr_420_enable (struct intel_dp *intel_dp, -const struct intel_crtc_state *crtc_state);int intel_dotclock_calculate (int link_freq,const struct intel_link_m_n *m_n);bool bxt_find_best_dpll (struct intel_crtc_state *crtc_state,struct dpll *best_clock);
drivers/gpu/drm/i915/display/intel_dp.c +56 -12
90 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_dp.h +3 -0
@@ -112,6 +112,9 @@ bool intel_dp_read_dpcd(struct intel_dp *intel_dp);bool intel_dp_get_colorimetry_status (struct intel_dp *intel_dp);int intel_dp_link_required (int pixel_clock,int bpp);int intel_dp_max_data_rate (int max_link_clock,int max_lanes); +void intel_dp_vsc_enable (struct intel_dp *intel_dp, +const struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state);bool intel_digital_port_connected (struct intel_encoder *encoder);static inline unsigned int intel_dp_unused_lane_mask (int lane_count)
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v3 2/7 drm/i915/dp: Add support of BT.2020 Colorimetry to DP MSA
In reply to Gwan-gyeong MunWhen BT.2020 Colorimetry output is used for DP, we should program BT.2020 Colorimetry to MSA and VSC SDP. It adds output_colorspace to intel_crtc_state struct as a place holder of pipe's output colorspace. In order to distinguish needed colorimetry for VSC SDP, it adds intel_dp_needs_vsc_sdp function.
If the output colorspace requires vsc sdp or output format is YCbCr 4:2:0, it uses MSA with VSC SDP.
As per DP 1.4a spec section 2.2.4.3 [MSA Field for Indication of Color Encoding Format and Content Color Gamut] while sending BT.2020 Colorimetry signals we should program MSA MISC1 fields which indicate VSC SDP for the Pixel Encoding/Colorimetry Format.
v2: Remove useless parentheses
v3: Addressed review comments from Ville
- In order to checking output format and output colorspace on intel_dp_needs_vsc_sdp(), it passes entire intel_crtc_state stucture.
- Remove a pointless variable.
--- drivers/gpu/drm/i915/display/intel_ddi.c | 7 +++-- .../drm/i915/display/intel_display_types.h | 3 ++ drivers/gpu/drm/i915/display/intel_dp.c | 29 ++++++++++++++++++- drivers/gpu/drm/i915/display/intel_dp.h | 1 + 4 files changed, 36 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +4 -3
@@ -1737,11 +1737,12 @@ void intel_ddi_set_pipe_settings(const struct intel_crtc_state *crtc_state)/* * As per DP 1.4a spec section 2.2.4.3 [MSA Field for Indication * of Color Encoding Format and Content Color Gamut] while sending -* YCBCR 420 signals we should program MSA MISC1 fields which -* indicate VSC SDP for the Pixel Encoding/Colorimetry Format. +* YCBCR 420, HDR BT.2020 signals we should program MSA MISC1 fields +* which indicate VSC SDP for the Pixel Encoding/Colorimetry Format. */ -if (crtc_state->output_format ==INTEL_OUTPUT_FORMAT_YCBCR420 ) +if (intel_dp_needs_vsc_sdp (crtc_state)) temp |=TRANS_MSA_USE_VSC_SDP ; +I915_WRITE (TRANS_MSA_MISC (cpu_transcoder), temp); }
drivers/gpu/drm/i915/display/intel_display_types.h +3 -0
@@ -971,6 +971,9 @@ struct intel_crtc_state {/* Output format RGB/YCBCR etc */ enum intel_output_format output_format; +/* Output colorspace sRGB/BT.2020 etc */ +u32 output_colorspace; +/* Output down scaling is done in LSPCON device */ bool lspcon_downsampling;
drivers/gpu/drm/i915/display/intel_dp.c +28 -1
@@ -2187,6 +2187,8 @@ intel_dp_compute_config(struct intel_encoder *encoder, pipe_config->has_pch_encoder = true; pipe_config->output_format =INTEL_OUTPUT_FORMAT_RGB ; + pipe_config->output_colorspace = intel_conn_state->base.colorspace; +if (lspcon->active)lspcon_ycbcr420_config (&intel_connector->base, pipe_config);else
@@ -4445,6 +4447,31 @@ u8 intel_dp_dsc_get_slice_count(struct intel_dp *intel_dp,return 0 ; } +bool +intel_dp_needs_vsc_sdp (const struct intel_crtc_state *crtc_state) +{ +/* +* As per DP 1.4a spec section 2.2.4.3 [MSA Field for Indication +* of Color Encoding Format and Content Color Gamut], in order to +* sending YCBCR 420 or HDR BT.2020 signals we should use DP VSC SDP. +*/ +if (crtc_state->output_format ==INTEL_OUTPUT_FORMAT_YCBCR420 ) +return true; + +switch (crtc_state->output_colorspace) { +case DRM_MODE_COLORIMETRY_SYCC_601 : +case DRM_MODE_COLORIMETRY_OPYCC_601 : +case DRM_MODE_COLORIMETRY_BT2020_YCC : +case DRM_MODE_COLORIMETRY_BT2020_RGB : +case DRM_MODE_COLORIMETRY_BT2020_CYCC : +return true; +default : +break ; + } + +return false; +} + static void intel_dp_setup_vsc_sdp(struct intel_dp *intel_dp, const struct intel_crtc_state *crtc_state,
@@ -4573,7 +4600,7 @@ void intel_dp_vsc_enable(struct intel_dp *intel_dp,const struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state) { - if (crtc_state->output_format != INTEL_OUTPUT_FORMAT_YCBCR420) + if (!intel_dp_needs_vsc_sdp(crtc_state)) return;intel_dp_setup_vsc_sdp (intel_dp ,crtc_state ,conn_state );
drivers/gpu/drm/i915/display/intel_dp.h +1 -0
@@ -112,6 +112,7 @@ bool intel_dp_read_dpcd(struct intel_dp *intel_dp);bool intel_dp_get_colorimetry_status (struct intel_dp *intel_dp);int intel_dp_link_required (int pixel_clock,int bpp);int intel_dp_max_data_rate (int max_link_clock,int max_lanes); +bool intel_dp_needs_vsc_sdp (const struct intel_crtc_state *crtc_state);void intel_dp_vsc_enable (struct intel_dp *intel_dp,const struct intel_crtc_state *crtc_state,const struct drm_connector_state *conn_state);
Signature · 6 lines
2.23.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 3/7 drm: Add DisplayPort colorspace property
In reply to Gwan-gyeong MunIn order to use colorspace property to Display Port connectors, it extends DRM_MODE_CONNECTOR_DisplayPort connector_type on drm_mode_create_colorspace_property function.
v3: Addressed review comments from Ville
- Add new colorimetry options for DP 1.4a spec.
- Separate set of colorimetry enum values for DP.
--- drivers/gpu/drm/drm_connector.c | 43 +++++++++++++++++++++++++++++++++ include/drm/drm_connector.h | 8 ++++++ 2 files changed, 51 insertions(+)
drivers/gpu/drm/drm_connector.c +43 -0
@@ -882,6 +882,41 @@ static const struct drm_prop_enum_list hdmi_colorspaces[] = { { DRM_MODE_COLORIMETRY_DCI_P3_RGB_THEATER, "DCI-P3_RGB_Theater" }, }; +/* +* As per DP 1.4a spec, 2.2.5.7.5 VSC SDP Payload for Pixel Encoding/Colorimetry +* Format Table 2-120 +*/ +static const struct drm_prop_enum_list dp_colorspaces[] = { +/* For Default case, driver will set the colorspace */ + {DRM_MODE_COLORIMETRY_DEFAULT ,"Default" }, +/* Colorimetry based on IEC 61966-2-1 */ + {DRM_MODE_COLORIMETRY_SRGB ,"sRGB" }, + {DRM_MODE_COLORIMETRY_WIDE_GAMUT_FIXED_POINT_RGB ,"RGB_wide_gamut_fixed_point" }, +/* Colorimetry based on IEC 61966-2-2 */ + {DRM_MODE_COLORIMETRY_SCRGB ,"scRGB" }, + {DRM_MODE_COLORIMETRY_ADOBE_RGB ,"Adobe_RGB" }, +/* Colorimetry based on SMPTE RP 431-2 */ + {DRM_MODE_COLORIMETRY_DCP_P3_RGB ,"DCI-P3_RGB" }, +/* Colorimetry based on ITU-R BT.2020 */ + {DRM_MODE_COLORIMETRY_BT2020_RGB ,"BT2020_RGB" }, + {DRM_MODE_COLORIMETRY_BT601_YCC ,"BT601_YCC" }, + {DRM_MODE_COLORIMETRY_BT709_YCC ,"BT709_YCC" }, +/* Standard Definition Colorimetry based on IEC 61966-2-4 */ + {DRM_MODE_COLORIMETRY_XVYCC_601 ,"XVYCC_601" }, +/* High Definition Colorimetry based on IEC 61966-2-4 */ + {DRM_MODE_COLORIMETRY_XVYCC_709 ,"XVYCC_709" }, +/* Colorimetry based on IEC 61966-2-1/Amendment 1 */ + {DRM_MODE_COLORIMETRY_SYCC_601 ,"SYCC_601" }, +/* Colorimetry based on IEC 61966-2-5 [33] */ + {DRM_MODE_COLORIMETRY_OPYCC_601 ,"opYCC_601" }, +/* Colorimetry based on ITU-R BT.2020 */ + {DRM_MODE_COLORIMETRY_BT2020_CYCC ,"BT2020_CYCC" }, +/* Colorimetry based on ITU-R BT.2020 */ + {DRM_MODE_COLORIMETRY_BT2020_YCC ,"BT2020_YCC" }, +/* Colorumetry for Y Only */ + {DRM_MODE_COLORIMETRY_DICOM_PART_14_GRAYSCALE ,"DICOM_Part_14_Grayscale_Display_Function" }, +}; +/** * DOC: standard connector properties *
@@ -1710,6 +1745,14 @@ int drm_mode_create_colorspace_property(struct drm_connector *connector) ARRAY_SIZE(hdmi_colorspaces));if (!prop)return -ENOMEM ; + }else if (connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort || + connector->connector_type == DRM_MODE_CONNECTOR_eDP) { + prop =drm_property_create_enum (dev,DRM_MODE_PROP_ENUM , +"Colorspace" , + dp_colorspaces, +ARRAY_SIZE (dp_colorspaces)); +if (!prop) +return -ENOMEM ; }else {DRM_DEBUG_KMS ("Colorspace property not supported\n" );return 0 ;
include/drm/drm_connector.h +8 -0
@@ -281,6 +281,14 @@ enum drm_panel_orientation {/* Additional Colorimetry extension added as part of CTA 861.G */ #define DRM_MODE_COLORIMETRY_DCI_P3_RGB_D65 11#define DRM_MODE_COLORIMETRY_DCI_P3_RGB_THEATER 12 +/* Additional Colorimetry Options added for DP 1.4a VSC Colorimetry Format */ +#define DRM_MODE_COLORIMETRY_SRGB 13 +#define DRM_MODE_COLORIMETRY_WIDE_GAMUT_FIXED_POINT_RGB 14 +#define DRM_MODE_COLORIMETRY_SCRGB 15 +#define DRM_MODE_COLORIMETRY_ADOBE_RGB 16 +#define DRM_MODE_COLORIMETRY_DCP_P3_RGB 17 +#define DRM_MODE_COLORIMETRY_BT601_YCC 18 +#define DRM_MODE_COLORIMETRY_DICOM_PART_14_GRAYSCALE 19/** * enum drm_bus_flags - bus_flags info for &drm_display_info
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v3 4/7 drm/i915/dp: Attach colorspace property
In reply to Gwan-gyeong MunIt attaches the colorspace connector property to a DisplayPort connector. Based on colorspace change, modeset will be triggered to switch to a new colorspace.
Based on colorspace property value create a VSC SDP packet with appropriate colorspace. This would help to enable wider color gamut like BT2020 on a sink device.
--- drivers/gpu/drm/i915/display/intel_dp.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/display/intel_dp.c +2 -0
@@ -6445,6 +6445,8 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connectelse if (INTEL_GEN (dev_priv) >=5 )drm_connector_attach_max_bpc_property (connector,6 ,12 ); +intel_attach_colorspace_property (connector); +if (intel_dp_is_edp (intel_dp)) {u32 allowed_scalers;
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v3 5/7 drm/i915: Add new GMP register size for GEN11
In reply to Gwan-gyeong MunAccording to Bspec, GEN11 and prior GEN11 have different register size for HDR Metadata Infoframe SDP packet. It adds new VIDEO_DIP_GMP_DATA_SIZE for GEN11. And it makes handle different register size for HDMI_PACKET_TYPE_GAMUT_METADATA on hsw_dip_data_size() for each GEN platforms. It addresses Uma's review comments.
--- drivers/gpu/drm/i915/display/intel_hdmi.c | 10 ++++++++-- drivers/gpu/drm/i915/i915_reg.h | 1 + 2 files changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_hdmi.c +8 -2
@@ -189,13 +189,19 @@ hsw_dip_data_reg(struct drm_i915_private *dev_priv, } } -static int hsw_dip_data_size (unsigned int type) +static int hsw_dip_data_size (struct drm_i915_private *dev_priv, +unsigned int type) {switch (type) {case DP_SDP_VSC :return VIDEO_DIP_VSC_DATA_SIZE ;case DP_SDP_PPS :return VIDEO_DIP_PPS_DATA_SIZE ; +case HDMI_PACKET_TYPE_GAMUT_METADATA : +if (INTEL_GEN (dev_priv) >=11 ) +return VIDEO_DIP_GMP_DATA_SIZE ; +else +return VIDEO_DIP_DATA_SIZE ;default :return VIDEO_DIP_DATA_SIZE ; }
@@ -514,7 +520,7 @@ static void hsw_write_infoframe(struct intel_encoder *encoder,int i;u32 val =I915_READ (ctl_reg); - data_size =hsw_dip_data_size (type); + data_size =hsw_dip_data_size (dev_priv, type); val &= ~hsw_infoframe_enable (type);I915_WRITE (ctl_reg, val);
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -4667,6 +4667,7 @@ enum {* (Haswell and newer) to see which VIDEO_DIP_DATA byte corresponds to each byte * of the infoframe structure specified by CEA-861. */ #define VIDEO_DIP_DATA_SIZE 32 +#define VIDEO_DIP_GMP_DATA_SIZE 36#define VIDEO_DIP_VSC_DATA_SIZE 36#define VIDEO_DIP_PPS_DATA_SIZE 132#define VIDEO_DIP_CTL _MMIO(0x61170)
Signature · 6 lines
2.23.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 6/7 drm/i915/dp: Program an Infoframe SDP Header and DB for HDR Static Metadata
In reply to Gwan-gyeong MunFunction intel_dp_setup_hdr_metadata_infoframe_sdp handles Infoframe SDP header and data block setup for HDR Static Metadata. It enables writing of HDR metadata infoframe SDP to panel. Support for HDR video was introduced in DisplayPort 1.4. It implements the CTA-861-G standard for transport of static HDR metadata. The HDR Metadata will be provided by userspace compositors, based on blending policies and passed to the driver through a blob property.
Because each of GEN11 and prior GEN11 have different register size for HDR Metadata Infoframe SDP packet, it adds and uses different register size.
Setup Infoframe SDP header and data block in function intel_dp_setup_hdr_metadata_infoframe_sdp for HDR Static Metadata as per dp 1.4 spec and CTA-861-F spec.
As per DP 1.4 spec, 2.2.2.5 SDP Formats. It enables Dynamic Range and Mastering Infoframe for HDR content, which is defined in CTA-861-F spec. According to DP 1.4 spec and CEA-861-F spec Table 5, in order to transmit static HDR metadata, we have to use Non-audio INFOFRAME SDP v1.3.
+--------------------------------+-------------------------------+ | [ Packet Type Value ] | [ Packet Type ] | +--------------------------------+-------------------------------+ | 80h + Non-audio INFOFRAME Type | CEA-861-F Non-audio INFOFRAME | +--------------------------------+-------------------------------+ | [Transmission Timing] | +----------------------------------------------------------------+ | As per CEA-861-F for INFOFRAME, including CEA-861.3 within | | which Dynamic Range and Mastering INFOFRAME are defined | +----------------------------------------------------------------+
v2: Add a missed blank line after function declaration.
v3: Remove not handled return values from
intel_dp_setup_hdr_metadata_infoframe_sdp(). [Uma]
--- drivers/gpu/drm/i915/display/intel_ddi.c | 1 + drivers/gpu/drm/i915/display/intel_dp.c | 89 ++++++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_dp.h | 3 + 3 files changed, 93 insertions(+)
drivers/gpu/drm/i915/display/intel_ddi.c +1 -0
@@ -3612,6 +3612,7 @@ static void intel_enable_ddi_dp(struct intel_encoder *encoder,intel_edp_backlight_on (crtc_state, conn_state);intel_psr_enable (intel_dp, crtc_state);intel_dp_vsc_enable (intel_dp, crtc_state, conn_state); +intel_dp_hdr_metadata_enable (intel_dp, crtc_state, conn_state);intel_edp_drrs_enable (intel_dp, crtc_state);if (crtc_state->has_audio)
drivers/gpu/drm/i915/display/intel_dp.c +89 -0
101 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_dp.h +3 -0
@@ -116,6 +116,9 @@ bool intel_dp_needs_vsc_sdp(const struct intel_crtc_state *crtc_state);void intel_dp_vsc_enable (struct intel_dp *intel_dp,const struct intel_crtc_state *crtc_state,const struct drm_connector_state *conn_state); +void intel_dp_hdr_metadata_enable (struct intel_dp *intel_dp, +const struct intel_crtc_state *crtc_state, +const struct drm_connector_state *conn_state);bool intel_digital_port_connected (struct intel_encoder *encoder);static inline unsigned int intel_dp_unused_lane_mask (int lane_count)
Signature · 6 lines
2.23.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 7/7 drm/i915/dp: Attach HDR metadata property to DP connector
In reply to Gwan-gyeong MunIt 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
--- drivers/gpu/drm/i915/display/intel_dp.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/display/intel_dp.c +5 -0
@@ -6536,6 +6536,11 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connectintel_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;
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915/dp: Support for DP HDR outputs (rev3)
In reply to Gwan-gyeong Mun== Series Details ==
== Series Details ==
Series: drm/i915/dp: Support for DP HDR outputs (rev3)
URL : https://patchwork.freedesktop.org/series/65656/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
28f17eec1ca7 drm/i915/dp: Extend program of VSC Header and DB for Colorimetry Format
103f5c27ed40 drm/i915/dp: Add support of BT.2020 Colorimetry to DP MSA
-:22: WARNING:TYPO_SPELLING: 'stucture' may be misspelled - perhaps 'structure'?
#22:
intel_dp_needs_vsc_sdp(), it passes entire intel_crtc_state stucture.total: 0 errors, 1 warnings, 0 checks, 78 lines checked 2e38249baa8a drm: Add DisplayPort colorspace property -:57: WARNING:LONG_LINE: line over 100 characters #57: FILE: drivers/gpu/drm/drm_connector.c:917:
+ { DRM_MODE_COLORIMETRY_DICOM_PART_14_GRAYSCALE, "DICOM_Part_14_Grayscale_Display_Function" },
total: 0 errors, 1 warnings, 0 checks, 69 lines checkedff741deda5d7 drm/i915/dp: Attach colorspace property64406618c61b drm/i915: Add new GMP register size for GEN11f26a6477df16 drm/i915/dp: Program an Infoframe SDP Header and DB for HDR Static Metadata 832ec8e38954 drm/i915/dp: Attach HDR metadata property to DP connector
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/dp: Support for DP HDR outputs (rev3)
In reply to Gwan-gyeong Mun== Series Details ==
== Series Details ==
Series: drm/i915/dp: Support for DP HDR outputs (rev3)
URL : https://patchwork.freedesktop.org/series/65656/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_6823 -> Patchwork_14262
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_14262 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_14262, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_14262:
### IGT changes ###
#### Possible regressions ####
* igt@runner@aborted:
- fi-ilk-650: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-ilk-650/igt@[email protected]
- fi-bdw-gvtdvm: NOTRUN -> [FAIL][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-bdw-gvtdvm/igt@[email protected]
- fi-snb-2520m: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-snb-2520m/igt@[email protected]
- fi-whl-u: NOTRUN -> [FAIL][4]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-whl-u/igt@[email protected]
- fi-ivb-3770: NOTRUN -> [FAIL][5]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-ivb-3770/igt@[email protected]
- fi-bxt-dsi: NOTRUN -> [FAIL][6]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-bxt-dsi/igt@[email protected]
- fi-byt-j1900: NOTRUN -> [FAIL][7]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-byt-j1900/igt@[email protected]
- fi-bsw-n3050: NOTRUN -> [FAIL][8]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-bsw-n3050/igt@[email protected]
- fi-apl-guc: NOTRUN -> [FAIL][9]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-apl-guc/igt@[email protected]
- fi-bdw-5557u: NOTRUN -> [FAIL][10]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-bdw-5557u/igt@[email protected]
- fi-byt-n2820: NOTRUN -> [FAIL][11]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-byt-n2820/igt@[email protected]
- fi-elk-e7500: NOTRUN -> [FAIL][12]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-elk-e7500/igt@[email protected]
#### Warnings ####
* igt@runner@aborted:
- fi-bsw-kefka: [FAIL][13] ([fdo#110446]) -> [FAIL][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6823/fi-bsw-kefka/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-bsw-kefka/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_14262 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s4-devices:
- fi-blb-e6850: [PASS][15] -> [INCOMPLETE][16] ([fdo#107718])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6823/fi-blb-e6850/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/fi-blb-e6850/igt@[email protected]
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#110446]: https://bugs.freedesktop.org/show_bug.cgi?id=110446
Participating hosts (52 -> 46)
------------------------------
Additional (1): fi-byt-j1900
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6823 -> Patchwork_14262
CI-20190529: 20190529
CI_DRM_6823: 8f0a4755577623776cfb9e1a52eb8e873562bce5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5163: 9bd37d5e307748a5b43e92a5b0ea9be8fc60b339 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14262: 832ec8e38954d4f756eb4eb9538a51934869f1e3 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
832ec8e38954 drm/i915/dp: Attach HDR metadata property to DP connector f26a6477df16 drm/i915/dp: Program an Infoframe SDP Header and DB for HDR Static Metadata 64406618c61b drm/i915: Add new GMP register size for GEN11ff741deda5d7 drm/i915/dp: Attach colorspace property2e38249baa8a drm: Add DisplayPort colorspace property103f5c27ed40 drm/i915/dp: Add support of BT.2020 Colorimetry to DP MSA 28f17eec1ca7 drm/i915/dp: Extend program of VSC Header and DB for Colorimetry Format
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14262/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx