Re: [Intel-gfx] [PATCH 02/10] drm/edid: Allow HDMI infoframe without VIC or S3D
On Fri, Nov 17, 2017 at 08:40:02AM +0530, Sharma, Shashank wrote: > Regards > > Shashank > > > On 11/16/2017 9:51 PM, Ville Syrjälä wrote: > > On Thu, Nov 16, 2017 at 08:10:55PM +0530, Sharma, Shashank wrote: > >> Regards > >> > >> Shashank > >> > >> > >> On 11/13/2017 10:34 PM, Ville Syrjala wrote: > >>> From: Ville Syrjälä> >>> > >>> Appedix F of HDMI 2.0 says that some HDMI sink may fail to switch from > >>> 3D to 2D mode in a timely fashion if the source simply stops sending the > >>> HDMI infoframe. The suggested workaround is to keep sending the > >>> infoframe even when strictly not necessary (ie. no VIC and no S3D). > >>> HDMI 1.4 does allow for this behaviour, stating that sending the > >>> infoframe is optional in this case. > >>> > >>> The infoframe was first specified in HDMI 1.4, so in theory sinks > >>> predating that may not appreciate us sending an uknown infoframe > >>> their way. To avoid regressions let's try to determine if the sink > >>> supports the infoframe or not. Unfortunately there's no direct way > >>> to do that, so instead we'll just check if we managed to parse any > >>> HDMI 1.4 4k or stereo modes from the EDID, and if so we assume the > >>> sink will accept the infoframe. Also if the EDID contains the HDMI > >>> 2.0 HDMI Forum VSDB we can assume the sink is prepared to receive > >>> the infoframe. > >> I am trying to get some sense from HDMI 2.0 spec section 10.2.1, which > >> talks about > >> switch from 3D to 2D. To me it looks like: > >> If (sending_to_hdmi2_sinks) { > >> - for 3d modes send HF-VSIF > >> - for 2d modes && defined in H14b HFVSIF, send H14B-VSIF > >> When you switch from 3d->2d { > >>- send_HF-VSIF with 3D_valid bit = 0/1 > >>} > >> } else { /* HDMI 1.4b sinks from Appendix F */ > >> - send H14b-VSIF with HDMI_video_format[2:0 = 0 OR 1] > >> } > >> > >> Should we add a is_hdmi2 check and separate these cases ? > > We don't support the HDMI forum infoframe. Maybe someone forgot to > > implement that when adding the rest of HDMI 2.0 support? ;) > How to make an 'embarrassed smile ' smiley :) ? > Will start looking into it. Meanwhile > Reviewed-by: Shashank Sharma Patches 1-2 pushed to drm-misc-next. Thanks for the review. > >>> v2: Fix the getting has_hdmi_infoframe from display_info > >>> Always fail constructing the infoframe if the display > >>> possibly can't handle it > >>> > >>> Cc: Shashank Sharma > >>> Cc: Andrzej Hajda > >>> Cc: Laurent Pinchart > >>> Signed-off-by: Ville Syrjälä > >>> --- > >>>drivers/gpu/drm/bridge/sil-sii8620.c | 3 ++- > >>>drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 +++- > >>>drivers/gpu/drm/drm_edid.c| 34 > >>> +-- > >>>drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +- > >>>drivers/gpu/drm/i915/intel_hdmi.c | 14 +++-- > >>>drivers/gpu/drm/mediatek/mtk_hdmi.c | 3 ++- > >>>drivers/gpu/drm/nouveau/nv50_display.c| 3 ++- > >>>drivers/gpu/drm/rockchip/inno_hdmi.c | 1 + > >>>drivers/gpu/drm/sti/sti_hdmi.c| 4 +++- > >>>drivers/gpu/drm/zte/zx_hdmi.c | 1 + > >>>include/drm/drm_connector.h | 5 + > >>>include/drm/drm_edid.h| 1 + > >>>12 files changed, 57 insertions(+), 18 deletions(-) > >>> > >>> diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c > >>> b/drivers/gpu/drm/bridge/sil-sii8620.c > >>> index b7eb704d0a8a..4417276ba02e 100644 > >>> --- a/drivers/gpu/drm/bridge/sil-sii8620.c > >>> +++ b/drivers/gpu/drm/bridge/sil-sii8620.c > >>> @@ -2220,8 +2220,9 @@ static bool sii8620_mode_fixup(struct drm_bridge > >>> *bridge, > >>> union hdmi_infoframe frm; > >>> u8 mhl_vic[] = { 0, 95, 94, 93, 98 }; > >>> > >>> + /* FIXME: We need the connector here */ > >>> drm_hdmi_vendor_infoframe_from_display_mode( > >>> - , adjusted_mode); > >>> + , NULL, adjusted_mode); > >>> vic = frm.vendor.hdmi.vic; > >>> if (vic >= ARRAY_SIZE(mhl_vic)) > >>> vic = 0; > >>> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > >>> b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > >>> index a64ce7112288..b172139502d6 100644 > >>> --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > >>> +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > >>> @@ -1437,7 +1437,9 @@ static void > >>> hdmi_config_vendor_specific_infoframe(struct dw_hdmi *hdmi, > >>> u8 buffer[10]; > >>> ssize_t err; > >>> > >>> - err = drm_hdmi_vendor_infoframe_from_display_mode(, mode); > >>> + err =
Re: [Intel-gfx] [PATCH 02/10] drm/edid: Allow HDMI infoframe without VIC or S3D
Regards Shashank On 11/16/2017 9:51 PM, Ville Syrjälä wrote: On Thu, Nov 16, 2017 at 08:10:55PM +0530, Sharma, Shashank wrote: Regards Shashank On 11/13/2017 10:34 PM, Ville Syrjala wrote: From: Ville SyrjäläAppedix F of HDMI 2.0 says that some HDMI sink may fail to switch from 3D to 2D mode in a timely fashion if the source simply stops sending the HDMI infoframe. The suggested workaround is to keep sending the infoframe even when strictly not necessary (ie. no VIC and no S3D). HDMI 1.4 does allow for this behaviour, stating that sending the infoframe is optional in this case. The infoframe was first specified in HDMI 1.4, so in theory sinks predating that may not appreciate us sending an uknown infoframe their way. To avoid regressions let's try to determine if the sink supports the infoframe or not. Unfortunately there's no direct way to do that, so instead we'll just check if we managed to parse any HDMI 1.4 4k or stereo modes from the EDID, and if so we assume the sink will accept the infoframe. Also if the EDID contains the HDMI 2.0 HDMI Forum VSDB we can assume the sink is prepared to receive the infoframe. I am trying to get some sense from HDMI 2.0 spec section 10.2.1, which talks about switch from 3D to 2D. To me it looks like: If (sending_to_hdmi2_sinks) { - for 3d modes send HF-VSIF - for 2d modes && defined in H14b HFVSIF, send H14B-VSIF When you switch from 3d->2d { - send_HF-VSIF with 3D_valid bit = 0/1 } } else { /* HDMI 1.4b sinks from Appendix F */ - send H14b-VSIF with HDMI_video_format[2:0 = 0 OR 1] } Should we add a is_hdmi2 check and separate these cases ? We don't support the HDMI forum infoframe. Maybe someone forgot to implement that when adding the rest of HDMI 2.0 support? ;) How to make an 'embarrassed smile ' smiley :) ? Will start looking into it. Meanwhile Reviewed-by: Shashank Sharma v2: Fix the getting has_hdmi_infoframe from display_info Always fail constructing the infoframe if the display possibly can't handle it Cc: Shashank Sharma Cc: Andrzej Hajda Cc: Laurent Pinchart Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/bridge/sil-sii8620.c | 3 ++- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 +++- drivers/gpu/drm/drm_edid.c| 34 +-- drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +- drivers/gpu/drm/i915/intel_hdmi.c | 14 +++-- drivers/gpu/drm/mediatek/mtk_hdmi.c | 3 ++- drivers/gpu/drm/nouveau/nv50_display.c| 3 ++- drivers/gpu/drm/rockchip/inno_hdmi.c | 1 + drivers/gpu/drm/sti/sti_hdmi.c| 4 +++- drivers/gpu/drm/zte/zx_hdmi.c | 1 + include/drm/drm_connector.h | 5 + include/drm/drm_edid.h| 1 + 12 files changed, 57 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c index b7eb704d0a8a..4417276ba02e 100644 --- a/drivers/gpu/drm/bridge/sil-sii8620.c +++ b/drivers/gpu/drm/bridge/sil-sii8620.c @@ -2220,8 +2220,9 @@ static bool sii8620_mode_fixup(struct drm_bridge *bridge, union hdmi_infoframe frm; u8 mhl_vic[] = { 0, 95, 94, 93, 98 }; + /* FIXME: We need the connector here */ drm_hdmi_vendor_infoframe_from_display_mode( - , adjusted_mode); + , NULL, adjusted_mode); vic = frm.vendor.hdmi.vic; if (vic >= ARRAY_SIZE(mhl_vic)) vic = 0; diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index a64ce7112288..b172139502d6 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -1437,7 +1437,9 @@ static void hdmi_config_vendor_specific_infoframe(struct dw_hdmi *hdmi, u8 buffer[10]; ssize_t err; - err = drm_hdmi_vendor_infoframe_from_display_mode(, mode); + err = drm_hdmi_vendor_infoframe_from_display_mode(, + >connector, + mode); if (err < 0) /* * Going into that statement does not means vendor infoframe diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 749d07a01772..9ada0ccf50df 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -3393,6 +3393,7 @@ static int do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len, const u8 *video_db, u8 video_len) { + struct drm_display_info *info =
Re: [Intel-gfx] [PATCH 02/10] drm/edid: Allow HDMI infoframe without VIC or S3D
On Thu, Nov 16, 2017 at 08:10:55PM +0530, Sharma, Shashank wrote: > Regards > > Shashank > > > On 11/13/2017 10:34 PM, Ville Syrjala wrote: > > From: Ville Syrjälä> > > > Appedix F of HDMI 2.0 says that some HDMI sink may fail to switch from > > 3D to 2D mode in a timely fashion if the source simply stops sending the > > HDMI infoframe. The suggested workaround is to keep sending the > > infoframe even when strictly not necessary (ie. no VIC and no S3D). > > HDMI 1.4 does allow for this behaviour, stating that sending the > > infoframe is optional in this case. > > > > The infoframe was first specified in HDMI 1.4, so in theory sinks > > predating that may not appreciate us sending an uknown infoframe > > their way. To avoid regressions let's try to determine if the sink > > supports the infoframe or not. Unfortunately there's no direct way > > to do that, so instead we'll just check if we managed to parse any > > HDMI 1.4 4k or stereo modes from the EDID, and if so we assume the > > sink will accept the infoframe. Also if the EDID contains the HDMI > > 2.0 HDMI Forum VSDB we can assume the sink is prepared to receive > > the infoframe. > I am trying to get some sense from HDMI 2.0 spec section 10.2.1, which > talks about > switch from 3D to 2D. To me it looks like: > If (sending_to_hdmi2_sinks) { > - for 3d modes send HF-VSIF > - for 2d modes && defined in H14b HFVSIF, send H14B-VSIF >When you switch from 3d->2d { > - send_HF-VSIF with 3D_valid bit = 0/1 > } > } else { /* HDMI 1.4b sinks from Appendix F */ > - send H14b-VSIF with HDMI_video_format[2:0 = 0 OR 1] > } > > Should we add a is_hdmi2 check and separate these cases ? We don't support the HDMI forum infoframe. Maybe someone forgot to implement that when adding the rest of HDMI 2.0 support? ;) > > > > > v2: Fix the getting has_hdmi_infoframe from display_info > > Always fail constructing the infoframe if the display > > possibly can't handle it > > > > Cc: Shashank Sharma > > Cc: Andrzej Hajda > > Cc: Laurent Pinchart > > Signed-off-by: Ville Syrjälä > > --- > > drivers/gpu/drm/bridge/sil-sii8620.c | 3 ++- > > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 +++- > > drivers/gpu/drm/drm_edid.c| 34 > > +-- > > drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +- > > drivers/gpu/drm/i915/intel_hdmi.c | 14 +++-- > > drivers/gpu/drm/mediatek/mtk_hdmi.c | 3 ++- > > drivers/gpu/drm/nouveau/nv50_display.c| 3 ++- > > drivers/gpu/drm/rockchip/inno_hdmi.c | 1 + > > drivers/gpu/drm/sti/sti_hdmi.c| 4 +++- > > drivers/gpu/drm/zte/zx_hdmi.c | 1 + > > include/drm/drm_connector.h | 5 + > > include/drm/drm_edid.h| 1 + > > 12 files changed, 57 insertions(+), 18 deletions(-) > > > > diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c > > b/drivers/gpu/drm/bridge/sil-sii8620.c > > index b7eb704d0a8a..4417276ba02e 100644 > > --- a/drivers/gpu/drm/bridge/sil-sii8620.c > > +++ b/drivers/gpu/drm/bridge/sil-sii8620.c > > @@ -2220,8 +2220,9 @@ static bool sii8620_mode_fixup(struct drm_bridge > > *bridge, > > union hdmi_infoframe frm; > > u8 mhl_vic[] = { 0, 95, 94, 93, 98 }; > > > > + /* FIXME: We need the connector here */ > > drm_hdmi_vendor_infoframe_from_display_mode( > > - , adjusted_mode); > > + , NULL, adjusted_mode); > > vic = frm.vendor.hdmi.vic; > > if (vic >= ARRAY_SIZE(mhl_vic)) > > vic = 0; > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > > b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > > index a64ce7112288..b172139502d6 100644 > > --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > > +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > > @@ -1437,7 +1437,9 @@ static void > > hdmi_config_vendor_specific_infoframe(struct dw_hdmi *hdmi, > > u8 buffer[10]; > > ssize_t err; > > > > - err = drm_hdmi_vendor_infoframe_from_display_mode(, mode); > > + err = drm_hdmi_vendor_infoframe_from_display_mode(, > > + >connector, > > + mode); > > if (err < 0) > > /* > > * Going into that statement does not means vendor infoframe > > diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c > > index 749d07a01772..9ada0ccf50df 100644 > > --- a/drivers/gpu/drm/drm_edid.c > > +++ b/drivers/gpu/drm/drm_edid.c > > @@ -3393,6 +3393,7 @@ static int > > do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len, > >
Re: [Intel-gfx] [PATCH 02/10] drm/edid: Allow HDMI infoframe without VIC or S3D
Regards Shashank On 11/13/2017 10:34 PM, Ville Syrjala wrote: From: Ville SyrjäläAppedix F of HDMI 2.0 says that some HDMI sink may fail to switch from 3D to 2D mode in a timely fashion if the source simply stops sending the HDMI infoframe. The suggested workaround is to keep sending the infoframe even when strictly not necessary (ie. no VIC and no S3D). HDMI 1.4 does allow for this behaviour, stating that sending the infoframe is optional in this case. The infoframe was first specified in HDMI 1.4, so in theory sinks predating that may not appreciate us sending an uknown infoframe their way. To avoid regressions let's try to determine if the sink supports the infoframe or not. Unfortunately there's no direct way to do that, so instead we'll just check if we managed to parse any HDMI 1.4 4k or stereo modes from the EDID, and if so we assume the sink will accept the infoframe. Also if the EDID contains the HDMI 2.0 HDMI Forum VSDB we can assume the sink is prepared to receive the infoframe. I am trying to get some sense from HDMI 2.0 spec section 10.2.1, which talks about switch from 3D to 2D. To me it looks like: If (sending_to_hdmi2_sinks) { - for 3d modes send HF-VSIF - for 2d modes && defined in H14b HFVSIF, send H14B-VSIF When you switch from 3d->2d { - send_HF-VSIF with 3D_valid bit = 0/1 } } else { /* HDMI 1.4b sinks from Appendix F */ - send H14b-VSIF with HDMI_video_format[2:0 = 0 OR 1] } Should we add a is_hdmi2 check and separate these cases ? v2: Fix the getting has_hdmi_infoframe from display_info Always fail constructing the infoframe if the display possibly can't handle it Cc: Shashank Sharma Cc: Andrzej Hajda Cc: Laurent Pinchart Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/bridge/sil-sii8620.c | 3 ++- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 +++- drivers/gpu/drm/drm_edid.c| 34 +-- drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +- drivers/gpu/drm/i915/intel_hdmi.c | 14 +++-- drivers/gpu/drm/mediatek/mtk_hdmi.c | 3 ++- drivers/gpu/drm/nouveau/nv50_display.c| 3 ++- drivers/gpu/drm/rockchip/inno_hdmi.c | 1 + drivers/gpu/drm/sti/sti_hdmi.c| 4 +++- drivers/gpu/drm/zte/zx_hdmi.c | 1 + include/drm/drm_connector.h | 5 + include/drm/drm_edid.h| 1 + 12 files changed, 57 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c index b7eb704d0a8a..4417276ba02e 100644 --- a/drivers/gpu/drm/bridge/sil-sii8620.c +++ b/drivers/gpu/drm/bridge/sil-sii8620.c @@ -2220,8 +2220,9 @@ static bool sii8620_mode_fixup(struct drm_bridge *bridge, union hdmi_infoframe frm; u8 mhl_vic[] = { 0, 95, 94, 93, 98 }; + /* FIXME: We need the connector here */ drm_hdmi_vendor_infoframe_from_display_mode( - , adjusted_mode); + , NULL, adjusted_mode); vic = frm.vendor.hdmi.vic; if (vic >= ARRAY_SIZE(mhl_vic)) vic = 0; diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index a64ce7112288..b172139502d6 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -1437,7 +1437,9 @@ static void hdmi_config_vendor_specific_infoframe(struct dw_hdmi *hdmi, u8 buffer[10]; ssize_t err; - err = drm_hdmi_vendor_infoframe_from_display_mode(, mode); + err = drm_hdmi_vendor_infoframe_from_display_mode(, + >connector, + mode); if (err < 0) /* * Going into that statement does not means vendor infoframe diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 749d07a01772..9ada0ccf50df 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -3393,6 +3393,7 @@ static int do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len, const u8 *video_db, u8 video_len) { + struct drm_display_info *info = >display_info; int modes = 0, offset = 0, i, multi_present = 0, multi_len; u8 vic_len, hdmi_3d_len = 0; u16 mask; @@ -3520,6 +3521,8 @@ do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len, } out: + if (modes > 0) + info->has_hdmi_infoframe = true; return modes; } @@ -4243,6 +4246,8 @@ static void drm_parse_hdmi_forum_vsdb(struct drm_connector
[Intel-gfx] [PATCH 02/10] drm/edid: Allow HDMI infoframe without VIC or S3D
From: Ville SyrjäläAppedix F of HDMI 2.0 says that some HDMI sink may fail to switch from 3D to 2D mode in a timely fashion if the source simply stops sending the HDMI infoframe. The suggested workaround is to keep sending the infoframe even when strictly not necessary (ie. no VIC and no S3D). HDMI 1.4 does allow for this behaviour, stating that sending the infoframe is optional in this case. The infoframe was first specified in HDMI 1.4, so in theory sinks predating that may not appreciate us sending an uknown infoframe their way. To avoid regressions let's try to determine if the sink supports the infoframe or not. Unfortunately there's no direct way to do that, so instead we'll just check if we managed to parse any HDMI 1.4 4k or stereo modes from the EDID, and if so we assume the sink will accept the infoframe. Also if the EDID contains the HDMI 2.0 HDMI Forum VSDB we can assume the sink is prepared to receive the infoframe. v2: Fix the getting has_hdmi_infoframe from display_info Always fail constructing the infoframe if the display possibly can't handle it Cc: Shashank Sharma Cc: Andrzej Hajda Cc: Laurent Pinchart Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/bridge/sil-sii8620.c | 3 ++- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 +++- drivers/gpu/drm/drm_edid.c| 34 +-- drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +- drivers/gpu/drm/i915/intel_hdmi.c | 14 +++-- drivers/gpu/drm/mediatek/mtk_hdmi.c | 3 ++- drivers/gpu/drm/nouveau/nv50_display.c| 3 ++- drivers/gpu/drm/rockchip/inno_hdmi.c | 1 + drivers/gpu/drm/sti/sti_hdmi.c| 4 +++- drivers/gpu/drm/zte/zx_hdmi.c | 1 + include/drm/drm_connector.h | 5 + include/drm/drm_edid.h| 1 + 12 files changed, 57 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c index b7eb704d0a8a..4417276ba02e 100644 --- a/drivers/gpu/drm/bridge/sil-sii8620.c +++ b/drivers/gpu/drm/bridge/sil-sii8620.c @@ -2220,8 +2220,9 @@ static bool sii8620_mode_fixup(struct drm_bridge *bridge, union hdmi_infoframe frm; u8 mhl_vic[] = { 0, 95, 94, 93, 98 }; + /* FIXME: We need the connector here */ drm_hdmi_vendor_infoframe_from_display_mode( - , adjusted_mode); + , NULL, adjusted_mode); vic = frm.vendor.hdmi.vic; if (vic >= ARRAY_SIZE(mhl_vic)) vic = 0; diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index a64ce7112288..b172139502d6 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -1437,7 +1437,9 @@ static void hdmi_config_vendor_specific_infoframe(struct dw_hdmi *hdmi, u8 buffer[10]; ssize_t err; - err = drm_hdmi_vendor_infoframe_from_display_mode(, mode); + err = drm_hdmi_vendor_infoframe_from_display_mode(, + >connector, + mode); if (err < 0) /* * Going into that statement does not means vendor infoframe diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 749d07a01772..9ada0ccf50df 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -3393,6 +3393,7 @@ static int do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len, const u8 *video_db, u8 video_len) { + struct drm_display_info *info = >display_info; int modes = 0, offset = 0, i, multi_present = 0, multi_len; u8 vic_len, hdmi_3d_len = 0; u16 mask; @@ -3520,6 +3521,8 @@ do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len, } out: + if (modes > 0) + info->has_hdmi_infoframe = true; return modes; } @@ -4243,6 +4246,8 @@ static void drm_parse_hdmi_forum_vsdb(struct drm_connector *connector, struct drm_display_info *display = >display_info; struct drm_hdmi_info *hdmi = >hdmi; + display->has_hdmi_infoframe = true; + if (hf_vsdb[6] & 0x80) { hdmi->scdc.supported = true; if (hf_vsdb[6] & 0x40) @@ -4416,6 +4421,7 @@ static void drm_add_display_info(struct drm_connector *connector, info->cea_rev = 0; info->max_tmds_clock = 0; info->dvi_dual = false; + info->has_hdmi_infoframe = false; if (edid->revision < 3) return; @@ -4903,6 +4909,7 @@