Enable HDR on Gen9 devices with lspcon hdr capability
cover Enable HDR on Gen9 devices with lspcon hdr capability
Initial patch series submitted https://patchwork.freedesktop.org/series/68081/
this patch series add hdr support for GLK platform, I have added patch to add checks for all Gen9 platforms with lspcon hdr capability.
Uma Shankar (6):
drm/i915/display: Add HDR Capability detection for LSPCON drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon drm/i915/display: Attach HDR property for capable Gen9 devices drm/i915/display: Set HDR Infoframe for HDR capable LSPCON devices drm/i915/display: Enable BT2020 for HDR on LSPCON devices drm/i915/display: Reduce blanking to support 4k60@10bpp for LSPCON
Vipin Anand (1):
drm:i915:display: add checks for Gen9 devices with hdr capability
drivers/gpu/drm/drm_atomic_state_helper.c | 1 + drivers/gpu/drm/drm_atomic_uapi.c | 1 + .../drm/i915/display/intel_display_types.h | 1 + drivers/gpu/drm/i915/display/intel_dp.c | 16 ++++ drivers/gpu/drm/i915/display/intel_hdmi.c | 27 +++++- drivers/gpu/drm/i915/display/intel_lspcon.c | 95 +++++++++++++++++-- drivers/gpu/drm/i915/display/intel_lspcon.h | 4 + include/drm/drm_connector.h | 1 + 8 files changed, 132 insertions(+), 14 deletions(-)
Signature · 6 lines
2.26.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/7 drm/i915/display: Add HDR Capability detection for LSPCON
From: Uma Shankar <[email protected]>
LSPCON firmware exposes HDR capability through LPCON_CAPABILITIES DPCD register. LSPCON implementations capable of supporting HDR set HDR_CAPABILITY bit in LSPCON_CAPABILITIES to 1. This patch reads the same, detects the HDR capability and adds this to intel_lspcon struct.
--- .../drm/i915/display/intel_display_types.h | 1 + drivers/gpu/drm/i915/display/intel_lspcon.c | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+)
drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
@@ -1333,6 +1333,7 @@ struct intel_lspcon {bool active;enum drm_lspcon_mode mode;enum lspcon_vendor vendor; +bool hdr_supported; };struct intel_digital_port {
drivers/gpu/drm/i915/display/intel_lspcon.c +32 -0
@@ -35,6 +35,8 @@#define LSPCON_VENDOR_PARADE_OUI 0x001CF8#define LSPCON_VENDOR_MCA_OUI 0x0060AD +#define DPCD_MCA_LSPCON_HDR_STATUS 0x70003 +/* AUX addresses to write MCA AVI IF */ #define LSPCON_MCA_AVI_IF_WRITE_OFFSET 0x5C0#define LSPCON_MCA_AVI_IF_CTRL 0x5DF
@@ -104,6 +106,31 @@ static bool lspcon_detect_vendor(struct intel_lspcon *lspcon)return true; } +static bool lspcon_detect_hdr_capability (struct intel_lspcon *lspcon) +{ +struct intel_dp *dp =lspcon_to_intel_dp (lspcon); +u8 hdr_caps; +int ret; + +/* Enable HDR for MCA based LSPCON devices */ +if (lspcon->vendor ==LSPCON_VENDOR_MCA ) + ret =drm_dp_dpcd_read (&dp->aux,DPCD_MCA_LSPCON_HDR_STATUS , + &hdr_caps,1 ); +else +return false; + +if (ret <0 ) { +DRM_DEBUG_KMS ("hdr capability detection failed\n" ); + lspcon->hdr_supported = false; +return false; + }else if (hdr_caps &0x1 ) { +DRM_DEBUG_KMS ("lspcon capable of HDR\n" ); + lspcon->hdr_supported = true; + } + +return true; +} +static enum drm_lspcon_mode lspcon_get_current_mode (struct intel_lspcon *lspcon) {enum drm_lspcon_mode current_mode;
@@ -581,6 +608,11 @@ bool lspcon_init(struct intel_digital_port *intel_dig_port)return false; } +if (!lspcon_detect_hdr_capability (lspcon)) { +DRM_ERROR ("LSPCON hdr detection failed\n" ); +return false; + } + connector->ycbcr_420_allowed = true; lspcon->active = true;DRM_DEBUG_KMS ("Success: LSPCON init\n" );
Signature · 6 lines
2.26.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 1/7] drm/i915/display: Add HDR Capability detection for LSPCON
Quoted 48 lines · Vipin Anand
From: Uma Shankar <[email protected]>
LSPCON firmware exposes HDR capability through
LPCON_CAPABILITIESDPCD register. LSPCON implementations capable of supporting HDR setHDR_CAPABILITYbit inLSPCON_CAPABILITIESto 1. This patch reads the same, detects the HDR capability and adds this tointel_lspconstruct.Signed-off-by Uma Shankar <[email protected]>--- .../drm/i915/display/intel_display_types.h | 1 + drivers/gpu/drm/i915/display/intel_lspcon.c | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+)drivers/gpu/drm/i915/display/intel_display_types.h +1
-0@@ -1333,6 +1333,7 @@ struct intel_lspcon {bool active;enum drm_lspcon_mode mode;enum lspcon_vendor vendor; +bool hdr_supported; };struct intel_digital_port {drivers/gpu/drm/i915/display/intel_lspcon.c +7
-0@@ -35,6 +35,8 @@#define LSPCON_VENDOR_PARADE_OUI 0x001CF8#define LSPCON_VENDOR_MCA_OUI 0x0060AD +#define DPCD_MCA_LSPCON_HDR_STATUS 0x70003 +/* AUX addresses to write MCA AVI IF */ #define LSPCON_MCA_AVI_IF_WRITE_OFFSET 0x5C0#define LSPCON_MCA_AVI_IF_CTRL 0x5DF@@ -104,6 +106,31 @@ static bool lspcon_detect_vendor(struct intel_lspcon *lspcon)return true; } +static bool lspcon_detect_hdr_capability (struct intel_lspcon *lspcon) +{ +struct intel_dp *dp =lspcon_to_intel_dp (lspcon); +u8 hdr_caps; +int ret;
drivers/gpu/drm/i915/display/intel_lspcon.c static bool lspcon_detect_vendor(struct intel_lspcon *lspcon) · line 123
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_lspcon.c +10
-0+ +/* Enable HDR for MCA based LSPCON devices */ +if (lspcon->vendor ==LSPCON_VENDOR_MCA ) + ret =drm_dp_dpcd_read (&dp->aux,DPCD_MCA_LSPCON_HDR_STATUS , + &hdr_caps,1 ); +else +return false; + +if (ret <0 ) { +DRM_DEBUG_KMS ("hdr capability detection failed\n" );
Debugs etc. should use drm_dbg_kms, errors drm_err, throughout the series.
Quoted 14 lines
drivers/gpu/drm/i915/display/intel_lspcon.c +10
-0+ lspcon->hdr_supported = false; +return false; + }else if (hdr_caps &0x1 ) { +DRM_DEBUG_KMS ("lspcon capable of HDR\n" ); + lspcon->hdr_supported = true; + } + +return true; +} +static enum drm_lspcon_mode lspcon_get_current_mode (struct intel_lspcon *lspcon) {enum drm_lspcon_mode current_mode;
drivers/gpu/drm/i915/display/intel_lspcon.c bool lspcon_init(struct intel_digital_port *intel_dig_port) · line 613
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_lspcon.c +3
-0@@ -581,6 +608,11 @@ bool lspcon_init(struct intel_digital_port *intel_dig_port)return false; } +if (!lspcon_detect_hdr_capability (lspcon)) { +DRM_ERROR ("LSPCON hdr detection failed\n" ); +return false;
Err what? Breaks all non-MCA LSPCON devices right there. And even if the detection fails for MCA, no need to prevent non-HDR usage.
BR,
Jani.
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_lspcon.c +2
-0+ } + connector->ycbcr_420_allowed = true; lspcon->active = true;DRM_DEBUG_KMS ("Success: LSPCON init\n" );
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/7 drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon
In reply to Vipin AnandFrom: Uma Shankar <[email protected]>
Gen9 hardware supports HDMI2.0 through LSPCON chips. Extending HDR support for MCA LSPCON based GEN9 devices.
SOC will drive LSPCON as DP and send HDR metadata as standard DP SDP packets. LSPCON will be set to operate in PCON mode, will receive the metadata and create Dynamic Range and Mastering Infoframe (DRM packets) and send it to HDR capable HDMI sink devices.
v2: Re-used hsw infoframe write implementation for HDR metadata for LSPCON as per Ville's suggestion.
--- drivers/gpu/drm/i915/display/intel_hdmi.c | 10 ++++++ drivers/gpu/drm/i915/display/intel_lspcon.c | 35 +++++++++++++++------ drivers/gpu/drm/i915/display/intel_lspcon.h | 5 ++- 3 files changed, 39 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/display/intel_hdmi.c +10 -0
@@ -577,6 +577,16 @@ static u32 hsw_infoframes_enabled(struct intel_encoder *encoder,return val & mask; } +void lspcon_drm_write_infoframe (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state, +unsigned int type, +const void *frame,ssize_t len) +{ +DRM_DEBUG_KMS ("Update HDR metadata for lspcon\n" ); +/* It uses the legacy hsw implementation for the same */ +hsw_write_infoframe (encoder, crtc_state, type, frame, len); +} +static const u8 infoframe_type_to_idx[] = {HDMI_PACKET_TYPE_GENERAL_CONTROL ,HDMI_PACKET_TYPE_GAMUT_METADATA ,
drivers/gpu/drm/i915/display/intel_lspcon.c +25 -10
@@ -460,27 +460,42 @@ void lspcon_write_infoframe(struct intel_encoder *encoder,unsigned int type, const void *frame, ssize_t len) { - bool ret; + bool ret = true;struct intel_dp *intel_dp =enc_to_intel_dp (encoder);struct intel_lspcon *lspcon =enc_to_intel_lspcon (encoder);/* LSPCON only needs AVI IF */ -if (type !=HDMI_INFOFRAME_TYPE_AVI ) +if (!(type ==HDMI_INFOFRAME_TYPE_AVI || + type ==HDMI_PACKET_TYPE_GAMUT_METADATA ))return ; -if (lspcon->vendor ==LSPCON_VENDOR_MCA ) - ret =_lspcon_write_avi_infoframe_mca (&intel_dp->aux, - frame, len); -else - ret =_lspcon_write_avi_infoframe_parade (&intel_dp->aux, - frame, len); +/* +* Supporting HDR on MCA LSPCON +* Todo: Add support for Parade later +*/ +if (type ==HDMI_PACKET_TYPE_GAMUT_METADATA && + lspcon->vendor !=LSPCON_VENDOR_MCA ) +return ; + +if (lspcon->vendor ==LSPCON_VENDOR_MCA ) { +if (type ==HDMI_INFOFRAME_TYPE_AVI ) + ret =_lspcon_write_avi_infoframe_mca (&intel_dp->aux, + frame, len); +else if (type ==HDMI_PACKET_TYPE_GAMUT_METADATA ) +lspcon_drm_write_infoframe (encoder, crtc_state, +HDMI_PACKET_TYPE_GAMUT_METADATA , + frame,VIDEO_DIP_DATA_SIZE ); + }else { + ret =_lspcon_write_avi_infoframe_parade (&intel_dp->aux, frame, + len); + }if (!ret) { -DRM_ERROR ("Failed to write AVI infoframes\n" ); +DRM_ERROR ("Failed to write infoframes\n" );return ; } -DRM_DEBUG_DRIVER ("AVI infoframes updated successfully\n" ); +DRM_DEBUG_DRIVER ("Infoframes updated successfully\n" ); } void lspcon_read_infoframe(struct intel_encoder *encoder,
drivers/gpu/drm/i915/display/intel_lspcon.h +4 -1
@@ -34,5 +34,8 @@ u32 lspcon_infoframes_enabled(struct intel_encoder *encoder, const struct intel_crtc_state *pipe_config);void lspcon_ycbcr420_config (struct drm_connector *connector,struct intel_crtc_state *crtc_state); - +void lspcon_drm_write_infoframe (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state, +unsigned int type, +const void *frame,ssize_t len);#endif /* __INTEL_LSPCON_H__ */
Signature · 6 lines
2.26.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 2/7] drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon
Quoted 28 lines · Vipin Anand
From: Uma Shankar <[email protected]>
Gen9 hardware supports HDMI2.0 through LSPCON chips. Extending HDR support for MCA LSPCON based GEN9 devices.
SOC will drive LSPCON as DP and send HDR metadata as standard DP SDP packets. LSPCON will be set to operate in PCON mode, will receive the metadata and create Dynamic Range and Mastering Infoframe (DRM packets) and send it to HDR capable HDMI sink devices.
v2: Re-used hsw infoframe write implementation for HDR metadata for LSPCON as per Ville's suggestion.
Signed-off-by Uma Shankar <[email protected]>--- drivers/gpu/drm/i915/display/intel_hdmi.c | 10 ++++++ drivers/gpu/drm/i915/display/intel_lspcon.c | 35 +++++++++++++++------ drivers/gpu/drm/i915/display/intel_lspcon.h | 5 ++- 3 files changed, 39 insertions(+), 11 deletions(-)drivers/gpu/drm/i915/display/intel_hdmi.c +0
-0@@ -577,6 +577,16 @@ static u32 hsw_infoframes_enabled(struct intel_encoder *encoder,return val & mask; }
drivers/gpu/drm/i915/display/intel_hdmi.c static u32 hsw_infoframes_enabled(struct intel_encoder *encoder, · line 588
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_hdmi.c +9
-0+void lspcon_drm_write_infoframe (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state, +unsigned int type, +const void *frame,ssize_t len) +{ +DRM_DEBUG_KMS ("Update HDR metadata for lspcon\n" ); +/* It uses the legacy hsw implementation for the same */ +hsw_write_infoframe (encoder, crtc_state, type, frame, len); +}
This seems like an unnecessary wrapper.
Quoted 39 lines
drivers/gpu/drm/i915/display/intel_hdmi.c +1
-0+static const u8 infoframe_type_to_idx[] = {HDMI_PACKET_TYPE_GENERAL_CONTROL ,HDMI_PACKET_TYPE_GAMUT_METADATA ,drivers/gpu/drm/i915/display/intel_lspcon.c +13
-8@@ -460,27 +460,42 @@ void lspcon_write_infoframe(struct intel_encoder *encoder,unsigned int type, const void *frame, ssize_t len) { - bool ret; + bool ret = true;struct intel_dp *intel_dp =enc_to_intel_dp (encoder);struct intel_lspcon *lspcon =enc_to_intel_lspcon (encoder);/* LSPCON only needs AVI IF */ -if (type !=HDMI_INFOFRAME_TYPE_AVI ) +if (!(type ==HDMI_INFOFRAME_TYPE_AVI || + type ==HDMI_PACKET_TYPE_GAMUT_METADATA ))return ; -if (lspcon->vendor ==LSPCON_VENDOR_MCA ) - ret =_lspcon_write_avi_infoframe_mca (&intel_dp->aux, - frame, len); -else - ret =_lspcon_write_avi_infoframe_parade (&intel_dp->aux, - frame, len); +/* +* Supporting HDR on MCA LSPCON +* Todo: Add support for Parade later +*/ +if (type ==HDMI_PACKET_TYPE_GAMUT_METADATA && + lspcon->vendor !=LSPCON_VENDOR_MCA ) +return ; + +if (lspcon->vendor ==LSPCON_VENDOR_MCA ) { +if (type ==HDMI_INFOFRAME_TYPE_AVI )
drivers/gpu/drm/i915/display/intel_lspcon.c void lspcon_write_infoframe(struct intel_encoder *encoder, · line 491
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_lspcon.c +10
-0+ ret =_lspcon_write_avi_infoframe_mca (&intel_dp->aux, + frame, len); + else if (type == HDMI_PACKET_TYPE_GAMUT_METADATA) +lspcon_drm_write_infoframe (encoder, crtc_state, +HDMI_PACKET_TYPE_GAMUT_METADATA , + frame, VIDEO_DIP_DATA_SIZE); + } else { + ret =_lspcon_write_avi_infoframe_parade (&intel_dp->aux, frame, + len); + }
Seems to me it would be best to replace from the beginning of this function with something like:
switch (type) {
case HDMI_INFOFRAME_TYPE_AVI:
if (lspcon->vendor == LSPCON_VENDOR_MCA)
...
else
...
break;
case HDMI_PACKET_TYPE_GAMUT_METADATA:
if (lspcon->vendor == LSPCON_VENDOR_MCA)
...
else
break;
break;
default:
return;
}Then it'll be straightforward to replace the actual vendor specific if ladders with function pointers in struct intel_lspcon in the future.
Quoted 26 lines
drivers/gpu/drm/i915/display/intel_lspcon.c +2
-2if (!ret) { -DRM_ERROR ("Failed to write AVI infoframes\n" ); +DRM_ERROR ("Failed to write infoframes\n" );return ; } -DRM_DEBUG_DRIVER ("AVI infoframes updated successfully\n" ); +DRM_DEBUG_DRIVER ("Infoframes updated successfully\n" ); } void lspcon_read_infoframe(struct intel_encoder *encoder,drivers/gpu/drm/i915/display/intel_lspcon.h +4
-1@@ -34,5 +34,8 @@ u32 lspcon_infoframes_enabled(struct intel_encoder *encoder, const struct intel_crtc_state *pipe_config);void lspcon_ycbcr420_config (struct drm_connector *connector,struct intel_crtc_state *crtc_state); - +void lspcon_drm_write_infoframe (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state, +unsigned int type, +const void *frame,ssize_t len);#endif /* __INTEL_LSPCON_H__ */
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/7 drm/i915/display: Attach HDR property for capable Gen9 devices
In reply to Vipin AnandFrom: Uma Shankar <[email protected]>
Attach HDR property for Gen9 devices with MCA LSPCON chips.
--- drivers/gpu/drm/i915/display/intel_lspcon.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/display/intel_lspcon.c +5 -0
@@ -628,6 +628,11 @@ bool lspcon_init(struct intel_digital_port *intel_dig_port)return false; } +if (lspcon->vendor ==LSPCON_VENDOR_MCA && lspcon->hdr_supported) +drm_object_attach_property (&connector->base, + connector->dev->mode_config.hdr_output_metadata_property, +0 ); + connector->ycbcr_420_allowed = true; lspcon->active = true;DRM_DEBUG_KMS ("Success: LSPCON init\n" );
Signature · 6 lines
2.26.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 3/7] drm/i915/display: Attach HDR property for capable Gen9 devices
Quoted 15 lines · Vipin Anand
From: Uma Shankar <[email protected]>
Attach HDR property for Gen9 devices with MCA LSPCON chips.
Signed-off-by Uma Shankar <[email protected]>--- drivers/gpu/drm/i915/display/intel_lspcon.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/i915/display/intel_lspcon.c +0
-0
drivers/gpu/drm/i915/display/intel_lspcon.c bool lspcon_init(struct intel_digital_port *intel_dig_port) · line 631
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_lspcon.c +1
-0@@ -628,6 +628,11 @@ bool lspcon_init(struct intel_digital_port *intel_dig_port)return false; } +if (lspcon->vendor ==LSPCON_VENDOR_MCA && lspcon->hdr_supported)
Just look at lspcon->hdr_supported, and make sure it's false if the vendor does not support it.
BR,
Jani.
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_lspcon.c +4
-0+drm_object_attach_property (&connector->base, + connector->dev->mode_config.hdr_output_metadata_property, +0 ); + connector->ycbcr_420_allowed = true; lspcon->active = true;DRM_DEBUG_KMS ("Success: LSPCON init\n" );
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/7 drm/i915/display: Set HDR Infoframe for HDR capable LSPCON devices
In reply to Vipin AnandFrom: Uma Shankar <[email protected]>
Send Dynamic Range and Mastering Infoframe (DRM for HDR metadata) as SDP packet to LSPCON following the DP spec. LSPCON receives the same and sends it to HDMI sink.
v2: Suppressed some warnings. No functional change.
--- drivers/gpu/drm/drm_atomic_state_helper.c | 1 + drivers/gpu/drm/drm_atomic_uapi.c | 1 + drivers/gpu/drm/i915/display/intel_lspcon.h | 1 + include/drm/drm_connector.h | 1 + 4 files changed, 4 insertions(+)
drivers/gpu/drm/drm_atomic_state_helper.c +1 -0
@@ -468,6 +468,7 @@ __drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector,if (state->hdr_output_metadata)drm_property_blob_get (state->hdr_output_metadata); + state->hdr_metadata_changed = false;/* Don't copy over a writeback job, they are used only once */ state->writeback_job =NULL ;
drivers/gpu/drm/drm_atomic_uapi.c +1 -0
@@ -734,6 +734,7 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector, val,sizeof (struct hdr_output_metadata ),-1 , &replaced); + state->hdr_metadata_changed |= replaced;return ret; }else if (property == config->aspect_ratio_property) { state->picture_aspect_ratio = val;
drivers/gpu/drm/i915/display/intel_lspcon.h +1 -0
@@ -38,4 +38,5 @@ void lspcon_drm_write_infoframe(struct intel_encoder *encoder,const struct intel_crtc_state *crtc_state, unsigned int type, const void *frame, ssize_t len); +#endif /* __INTEL_LSPCON_H__ */
include/drm/drm_connector.h +1 -0
@@ -661,6 +661,7 @@ struct drm_connector_state {* DRM blob property for HDR output metadata */ struct drm_property_blob *hdr_output_metadata; + u8 hdr_metadata_changed : 1; };/**
Signature · 6 lines
2.26.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 4/7] drm/i915/display: Set HDR Infoframe for HDR capable LSPCON devices
Quoted 45 lines · Vipin Anand
From: Uma Shankar <[email protected]>
Send Dynamic Range and Mastering Infoframe (DRM for HDR metadata) as SDP packet to LSPCON following the DP spec. LSPCON receives the same and sends it to HDMI sink.
v2: Suppressed some warnings. No functional change.
Signed-off-by Uma Shankar <[email protected]>--- drivers/gpu/drm/drm_atomic_state_helper.c | 1 + drivers/gpu/drm/drm_atomic_uapi.c | 1 + drivers/gpu/drm/i915/display/intel_lspcon.h | 1 + include/drm/drm_connector.h | 1 + 4 files changed, 4 insertions(+)drivers/gpu/drm/drm_atomic_state_helper.c +1
-0@@ -468,6 +468,7 @@ __drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector,if (state->hdr_output_metadata)drm_property_blob_get (state->hdr_output_metadata); + state->hdr_metadata_changed = false;/* Don't copy over a writeback job, they are used only once */ state->writeback_job =NULL ;drivers/gpu/drm/drm_atomic_uapi.c +1
-0@@ -734,6 +734,7 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector, val,sizeof (struct hdr_output_metadata ),-1 , &replaced); + state->hdr_metadata_changed |= replaced;return ret; }else if (property == config->aspect_ratio_property) { state->picture_aspect_ratio = val;drivers/gpu/drm/i915/display/intel_lspcon.h +0
-0
drivers/gpu/drm/i915/display/intel_lspcon.h void lspcon_drm_write_infoframe(struct intel_encoder *encoder, · line 41
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_lspcon.h +1
-0@@ -38,4 +38,5 @@ void lspcon_drm_write_infoframe(struct intel_encoder *encoder,const struct intel_crtc_state *crtc_state, unsigned int type, const void *frame, ssize_t len); +
Superfluous change.
Patch needs to be posted to dri-devel.
BR,
Jani.
Quoted 13 lines
drivers/gpu/drm/i915/display/intel_lspcon.h +0
-0#endif /* __INTEL_LSPCON_H__ */ include/drm/drm_connector.h +1
-0@@ -661,6 +661,7 @@ struct drm_connector_state {* DRM blob property for HDR output metadata */ struct drm_property_blob *hdr_output_metadata; + u8 hdr_metadata_changed : 1; };/**
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 4/7] drm/i915/display: Set HDR Infoframe for HDR capable LSPCON devices
Quoted 53 lines · Jani Nikula
Quoted 45 lines · Vipin Anand
From: Uma Shankar <[email protected]>
Send Dynamic Range and Mastering Infoframe (DRM for HDR metadata) as SDP packet to LSPCON following the DP spec. LSPCON receives the same and sends it to HDMI sink.
v2: Suppressed some warnings. No functional change.
Signed-off-by Uma Shankar <[email protected]>--- drivers/gpu/drm/drm_atomic_state_helper.c | 1 + drivers/gpu/drm/drm_atomic_uapi.c | 1 + drivers/gpu/drm/i915/display/intel_lspcon.h | 1 + include/drm/drm_connector.h | 1 + 4 files changed, 4 insertions(+)drivers/gpu/drm/drm_atomic_state_helper.c +1
-0@@ -468,6 +468,7 @@ __drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector,if (state->hdr_output_metadata)drm_property_blob_get (state->hdr_output_metadata); + state->hdr_metadata_changed = false;/* Don't copy over a writeback job, they are used only once */ state->writeback_job =NULL ;drivers/gpu/drm/drm_atomic_uapi.c +1
-0@@ -734,6 +734,7 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector, val,sizeof (struct hdr_output_metadata ),-1 , &replaced); + state->hdr_metadata_changed |= replaced;return ret; }else if (property == config->aspect_ratio_property) { state->picture_aspect_ratio = val;drivers/gpu/drm/i915/display/intel_lspcon.h +0
-0drivers/gpu/drm/i915/display/intel_lspcon.h void lspcon_drm_write_infoframe(struct intel_encoder *encoder, · line 41
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_lspcon.h +1
-0@@ -38,4 +38,5 @@ void lspcon_drm_write_infoframe(struct intel_encoder *encoder,const struct intel_crtc_state *crtc_state, unsigned int type, const void *frame, ssize_t len); +Superfluous change.
Quoted 1 line
Patch needs to be posted to dri-devel.
Alternatively, the details need to be in intel specific states.
Quoted 17 lines
BR,
Jani.Quoted 13 lines
drivers/gpu/drm/i915/display/intel_lspcon.h +0
-0#endif /* __INTEL_LSPCON_H__ */ include/drm/drm_connector.h +1
-0@@ -661,6 +661,7 @@ struct drm_connector_state {* DRM blob property for HDR output metadata */ struct drm_property_blob *hdr_output_metadata; + u8 hdr_metadata_changed : 1; };/**
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/7 drm/i915/display: Enable BT2020 for HDR on LSPCON devices
In reply to Vipin AnandFrom: Uma Shankar <[email protected]>
Enable Colorspace as BT2020 if driving HDR content.Sending Colorimetry data for HDR using AVI infoframe. LSPCON firmware expects this and though SOC drives DP, for HDMI panel AVI infoframe is sent to the LSPCON device which transfers the same to HDMI sink.
--- drivers/gpu/drm/i915/display/intel_lspcon.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
drivers/gpu/drm/i915/display/intel_lspcon.c +18 -0
@@ -506,6 +506,11 @@ void lspcon_read_infoframe(struct intel_encoder *encoder,/* FIXME implement this */ } +/* HDMI HDR Colorspace Spec Definitions */ +#define NORMAL_COLORIMETRY_MASK 0x3 +#define EXTENDED_COLORIMETRY_MASK 0x7 +#define HDMI_COLORIMETRY_BT2020_YCC ((3 << 0) | (6 << 2) | (0 << 5)) + void lspcon_set_infoframes(struct intel_encoder *encoder, bool enable, const struct intel_crtc_state *crtc_state,
@@ -550,6 +555,19 @@ void lspcon_set_infoframes(struct intel_encoder *encoder, HDMI_QUANTIZATION_RANGE_LIMITED : HDMI_QUANTIZATION_RANGE_FULL); +/* +* Set BT2020 colorspace if driving HDR data +* ToDo: Make this generic and expose all colorspaces for lspcon +*/ +if (lspcon->active && conn_state->hdr_metadata_changed) { + frame.avi.colorimetry = +HDMI_COLORIMETRY_BT2020_YCC & +NORMAL_COLORIMETRY_MASK ; + frame.avi.extended_colorimetry = + (HDMI_COLORIMETRY_BT2020_YCC >>2 ) & +EXTENDED_COLORIMETRY_MASK ; + } + ret =hdmi_infoframe_pack (&frame, buf,sizeof (buf));if (ret <0 ) {DRM_ERROR ("Failed to pack AVI IF\n" );
Signature · 6 lines
2.26.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/7 drm/i915/display: Reduce blanking to support 4k60@10bpp for LSPCON
In reply to Vipin AnandFrom: Uma Shankar <[email protected]>
Blanking needs to be reduced to incorporate DP and HDMI timing/link bandwidth limitations for CEA modes (4k@60 at 10 bpp). DP can drive 17.28Gbs while 4k modes (VIC97 etc) at 10 bpp required 17.8 Gbps. This will cause mode to blank out. Reduced Htotal by shortening the back porch and front porch within permissible limits.
v2: This is marked as Not for merge and the responsibilty to program these custom timings will be on userspace. This patch is just for reference purposes. This is based on Ville's recommendation.
--- drivers/gpu/drm/i915/display/intel_dp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/gpu/drm/i915/display/intel_dp.c +16 -0
@@ -616,9 +616,11 @@ intel_dp_mode_valid(struct drm_connector *connector, {struct intel_dp *intel_dp =intel_attached_dp (to_intel_connector (connector));struct intel_connector *intel_connector =to_intel_connector (connector); +struct intel_encoder *intel_encoder =intel_attached_encoder (intel_connector);struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode;struct drm_i915_private *dev_priv =to_i915 (connector->dev);int target_clock = mode->clock; +struct intel_lspcon *lspcon =enc_to_intel_lspcon (intel_encoder);int max_rate, mode_rate, max_lanes, max_link_clock;int max_dotclk;u16 dsc_max_output_bpp =0 ;
@@ -638,6 +640,20 @@ intel_dp_mode_valid(struct drm_connector *connector, target_clock = fixed_mode->clock; } +/* +* Reducing Blanking to incorporate DP and HDMI timing/link bandwidth +* limitations for CEA modes (4k@60 at 10 bpp). DP can drive 17.28Gbs +* while 4k modes (VIC97 etc) at 10 bpp required 17.8 Gbps. This will +* cause mode to blank out. Reduced Htotal by shortening the back porch +* and front porch within permissible limits. +*/ +if (lspcon->active && lspcon->hdr_supported && + mode->clock >570000 ) { + mode->clock =570000 ; + mode->htotal -=180 ; + mode->hsync_start -=72 ; + mode->hsync_end -=72 ; + } max_link_clock =intel_dp_max_link_rate (intel_dp); max_lanes =intel_dp_max_lane_count (intel_dp);
Signature · 6 lines
2.26.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 6/7] drm/i915/display: Reduce blanking to support 4k60@10bpp for LSPCON
Quoted 11 lines · Vipin Anand
From: Uma Shankar <[email protected]>
Blanking needs to be reduced to incorporate DP and HDMI timing/link bandwidth limitations for CEA modes (4k@60 at 10 bpp). DP can drive 17.28Gbs while 4k modes (VIC97 etc) at 10 bpp required 17.8 Gbps. This will cause mode to blank out. Reduced Htotal by shortening the back porch and front porch within permissible limits.
v2: This is marked as Not for merge and the responsibilty to program these custom timings will be on userspace. This patch is just for reference purposes. This is based on Ville's recommendation.
This must be highlighted in the subject. HACK or whatever.
And even as a hack, don't change stuff in the .mode_valid hook. It belongs to compute config.
BR,
Jani.
Quoted 43 lines
Signed-off-by Uma Shankar <[email protected]>--- drivers/gpu/drm/i915/display/intel_dp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)drivers/gpu/drm/i915/display/intel_dp.c +16
-0@@ -616,9 +616,11 @@ intel_dp_mode_valid(struct drm_connector *connector, {struct intel_dp *intel_dp =intel_attached_dp (to_intel_connector (connector));struct intel_connector *intel_connector =to_intel_connector (connector); +struct intel_encoder *intel_encoder =intel_attached_encoder (intel_connector);struct drm_display_mode *fixed_mode = intel_connector->panel.fixed_mode;struct drm_i915_private *dev_priv =to_i915 (connector->dev);int target_clock = mode->clock; +struct intel_lspcon *lspcon =enc_to_intel_lspcon (intel_encoder);int max_rate, mode_rate, max_lanes, max_link_clock;int max_dotclk;u16 dsc_max_output_bpp =0 ;@@ -638,6 +640,20 @@ intel_dp_mode_valid(struct drm_connector *connector, target_clock = fixed_mode->clock; } +/* +* Reducing Blanking to incorporate DP and HDMI timing/link bandwidth +* limitations for CEA modes (4k@60 at 10 bpp). DP can drive 17.28Gbs +* while 4k modes (VIC97 etc) at 10 bpp required 17.8 Gbps. This will +* cause mode to blank out. Reduced Htotal by shortening the back porch +* and front porch within permissible limits. +*/ +if (lspcon->active && lspcon->hdr_supported && + mode->clock >570000 ) { + mode->clock =570000 ; + mode->htotal -=180 ; + mode->hsync_start -=72 ; + mode->hsync_end -=72 ; + } max_link_clock =intel_dp_max_link_rate (intel_dp); max_lanes =intel_dp_max_lane_count (intel_dp);
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 7/7 drm:i915:display: add checks for Gen9 devices with hdr capability
In reply to Vipin Anandthis patch adds hdr capabilities checks for Gen9 devices with lspcon support.
--- drivers/gpu/drm/i915/display/intel_hdmi.c | 17 +++++++++++++---- drivers/gpu/drm/i915/display/intel_lspcon.c | 9 +++++++-- 2 files changed, 20 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_hdmi.c +13 -4
@@ -833,9 +833,12 @@ intel_hdmi_compute_drm_infoframe(struct intel_encoder *encoder, {struct hdmi_drm_infoframe *frame = &crtc_state->infoframes.drm.drm;struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); +struct intel_digital_port *intel_dig_port =enc_to_dig_port (encoder);int ret; -if (!(INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv))) +if (!(INTEL_GEN (dev_priv) >=10 || + (((INTEL_GEN (dev_priv) >=9 )) && + intel_dig_port->lspcon.active)))return true;if (!crtc_state->has_infoframe)
@@ -2102,9 +2105,12 @@ static int intel_hdmi_source_max_tmds_clock(struct intel_encoder *encoder)struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);const struct ddi_vbt_port_info *info = &dev_priv->vbt.ddi_port_info[encoder->port]; +struct intel_digital_port *intel_dig_port =enc_to_dig_port (encoder);int max_tmds_clock; -if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) +if (INTEL_GEN (dev_priv) >=10 || + (((INTEL_GEN (dev_priv) >=9 )) && + intel_dig_port->lspcon.active)) max_tmds_clock =594000 ;else if (INTEL_GEN (dev_priv) >=8 ||IS_HASWELL (dev_priv)) max_tmds_clock =300000 ;
@@ -2423,6 +2429,7 @@ int intel_hdmi_compute_config(struct intel_encoder *encoder,struct intel_digital_connector_state *intel_conn_state =to_intel_digital_connector_state (conn_state);bool force_dvi = intel_conn_state->force_audio ==HDMI_AUDIO_OFF_DVI ; +struct intel_digital_port *intel_dig_port =enc_to_dig_port (encoder);int ret;if (adjusted_mode->flags &DRM_MODE_FLAG_DBLSCAN )
@@ -2469,7 +2476,8 @@ int intel_hdmi_compute_config(struct intel_encoder *encoder, pipe_config->lane_count =4 ;if (scdc->scrambling.supported && (INTEL_GEN (dev_priv) >=10 || -IS_GEMINILAKE (dev_priv))) { + (((INTEL_GEN (dev_priv) >=9 )) && + intel_dig_port->lspcon.active))) {if (scdc->scrambling.low_rates) pipe_config->hdmi_scrambling = true;
@@ -3171,7 +3179,8 @@ void intel_hdmi_init_connector(struct intel_digital_port *intel_dig_port, connector->doublescan_allowed =0 ; connector->stereo_allowed =1 ; -if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) +if (INTEL_GEN (dev_priv) >=10 || + (((INTEL_GEN (dev_priv) >=9 )) && intel_dig_port->lspcon.active)) connector->ycbcr_420_allowed = true; intel_encoder->hpd_pin =intel_hpd_pin_default (dev_priv, port);
drivers/gpu/drm/i915/display/intel_lspcon.c +7 -2
@@ -116,6 +116,8 @@ static bool lspcon_detect_hdr_capability(struct intel_lspcon *lspcon)if (lspcon->vendor ==LSPCON_VENDOR_MCA ) ret =drm_dp_dpcd_read (&dp->aux,DPCD_MCA_LSPCON_HDR_STATUS , &hdr_caps,1 ); +else if (lspcon->vendor ==LSPCON_VENDOR_PARADE ) +return true;else return false;
@@ -474,7 +476,8 @@ void lspcon_write_infoframe(struct intel_encoder *encoder,* Todo: Add support for Parade later */ if (type ==HDMI_PACKET_TYPE_GAMUT_METADATA && - lspcon->vendor !=LSPCON_VENDOR_MCA ) + (lspcon->vendor !=LSPCON_VENDOR_MCA || + lspcon->vendor !=LSPCON_VENDOR_PARADE ))return ;if (lspcon->vendor ==LSPCON_VENDOR_MCA ) {
@@ -646,7 +649,9 @@ bool lspcon_init(struct intel_digital_port *intel_dig_port)return false; } -if (lspcon->vendor ==LSPCON_VENDOR_MCA && lspcon->hdr_supported) +if ((lspcon->vendor ==LSPCON_VENDOR_MCA || + lspcon->vendor ==LSPCON_VENDOR_PARADE ) && + lspcon->hdr_supported)drm_object_attach_property (&connector->base, connector->dev->mode_config.hdr_output_metadata_property,0 );
Signature · 6 lines
2.26.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH 7/7] drm:i915:display: add checks for Gen9 devices with hdr capability
Quoted 2 lines · Vipin Anand
this patch adds hdr capabilities checks for Gen9 devices with lspcon support.
My earlier feedback to this patch holds. I don't really understand what you're trying to achieve.
BR,
Jani.
Quoted 101 lines
Signed-off-by Vipin Anand <[email protected]>--- drivers/gpu/drm/i915/display/intel_hdmi.c | 17 +++++++++++++---- drivers/gpu/drm/i915/display/intel_lspcon.c | 9 +++++++-- 2 files changed, 20 insertions(+), 6 deletions(-)drivers/gpu/drm/i915/display/intel_hdmi.c +13
-4@@ -833,9 +833,12 @@ intel_hdmi_compute_drm_infoframe(struct intel_encoder *encoder, {struct hdmi_drm_infoframe *frame = &crtc_state->infoframes.drm.drm;struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); +struct intel_digital_port *intel_dig_port =enc_to_dig_port (encoder);int ret; -if (!(INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv))) +if (!(INTEL_GEN (dev_priv) >=10 || + (((INTEL_GEN (dev_priv) >=9 )) && + intel_dig_port->lspcon.active)))return true;if (!crtc_state->has_infoframe)@@ -2102,9 +2105,12 @@ static int intel_hdmi_source_max_tmds_clock(struct intel_encoder *encoder)struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);const struct ddi_vbt_port_info *info = &dev_priv->vbt.ddi_port_info[encoder->port]; +struct intel_digital_port *intel_dig_port =enc_to_dig_port (encoder);int max_tmds_clock; -if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) +if (INTEL_GEN (dev_priv) >=10 || + (((INTEL_GEN (dev_priv) >=9 )) && + intel_dig_port->lspcon.active)) max_tmds_clock =594000 ;else if (INTEL_GEN (dev_priv) >=8 ||IS_HASWELL (dev_priv)) max_tmds_clock =300000 ;@@ -2423,6 +2429,7 @@ int intel_hdmi_compute_config(struct intel_encoder *encoder,struct intel_digital_connector_state *intel_conn_state =to_intel_digital_connector_state (conn_state);bool force_dvi = intel_conn_state->force_audio ==HDMI_AUDIO_OFF_DVI ; +struct intel_digital_port *intel_dig_port =enc_to_dig_port (encoder);int ret;if (adjusted_mode->flags &DRM_MODE_FLAG_DBLSCAN )@@ -2469,7 +2476,8 @@ int intel_hdmi_compute_config(struct intel_encoder *encoder, pipe_config->lane_count =4 ;if (scdc->scrambling.supported && (INTEL_GEN (dev_priv) >=10 || -IS_GEMINILAKE (dev_priv))) { + (((INTEL_GEN (dev_priv) >=9 )) && + intel_dig_port->lspcon.active))) {if (scdc->scrambling.low_rates) pipe_config->hdmi_scrambling = true;@@ -3171,7 +3179,8 @@ void intel_hdmi_init_connector(struct intel_digital_port *intel_dig_port, connector->doublescan_allowed =0 ; connector->stereo_allowed =1 ; -if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv)) +if (INTEL_GEN (dev_priv) >=10 || + (((INTEL_GEN (dev_priv) >=9 )) && intel_dig_port->lspcon.active)) connector->ycbcr_420_allowed = true; intel_encoder->hpd_pin =intel_hpd_pin_default (dev_priv, port);drivers/gpu/drm/i915/display/intel_lspcon.c +7
-2@@ -116,6 +116,8 @@ static bool lspcon_detect_hdr_capability(struct intel_lspcon *lspcon)if (lspcon->vendor ==LSPCON_VENDOR_MCA ) ret =drm_dp_dpcd_read (&dp->aux,DPCD_MCA_LSPCON_HDR_STATUS , &hdr_caps,1 ); +else if (lspcon->vendor ==LSPCON_VENDOR_PARADE ) +return true;else return false;@@ -474,7 +476,8 @@ void lspcon_write_infoframe(struct intel_encoder *encoder,* Todo: Add support for Parade later */ if (type ==HDMI_PACKET_TYPE_GAMUT_METADATA && - lspcon->vendor !=LSPCON_VENDOR_MCA ) + (lspcon->vendor !=LSPCON_VENDOR_MCA || + lspcon->vendor !=LSPCON_VENDOR_PARADE ))return ;if (lspcon->vendor ==LSPCON_VENDOR_MCA ) {@@ -646,7 +649,9 @@ bool lspcon_init(struct intel_digital_port *intel_dig_port)return false; } -if (lspcon->vendor ==LSPCON_VENDOR_MCA && lspcon->hdr_supported) +if ((lspcon->vendor ==LSPCON_VENDOR_MCA || + lspcon->vendor ==LSPCON_VENDOR_PARADE ) && + lspcon->hdr_supported)drm_object_attach_property (&connector->base, connector->dev->mode_config.hdr_output_metadata_property,0 );
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for Enable HDR on Gen9 devices with lspcon hdr capability
In reply to Vipin Anand== Series Details ==
== Series Details ==
Series: Enable HDR on Gen9 devices with lspcon hdr capability
URL : https://patchwork.freedesktop.org/series/75148/
State : failure
== Summary ==
Applying: drm/i915/display: Add HDR Capability detection for LSPCON
Applying: drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon
Applying: drm/i915/display: Attach HDR property for capable Gen9 devices
Applying: drm/i915/display: Set HDR Infoframe for HDR capable LSPCON devices
Applying: drm/i915/display: Enable BT2020 for HDR on LSPCON devices
Applying: drm/i915/display: Reduce blanking to support 4k60@10bpp for LSPCON
Applying: drm:i915:display: add checks for Gen9 devices with hdr capability
error: sha1 information is lacking or useless (drivers/gpu/drm/i915/display/intel_hdmi.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch' to see the failed patch
Patch failed at 0007 drm:i915:display: add checks for Gen9 devices with hdr capability When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx