[RFC 0/5] HDMI 2.0+ video modes handling in DRM core

Jose Abreu Jose.Abreu at synopsys.com
Wed Mar 22 17:35:56 UTC 2017


Hi all,

This is a RFC series that aims to collect comments regarding the handling
of HDMI 2.0+ video modes and features in the DRM core.

Some of the HDMI 2.0 features are already implemented and only affect kernel
drivers (SDCD for example). There are some features, though, which can,
and will, affect userspace.

It is clear that userspace can't be broken, so, based on previous discussions
I started implementing a "HDMI 2.0+ knob" which can be set by userspace to
enable HDMI 2.0+ features.

For now this only limits the exposing of the video modes defined in CEA-861-F,
but it can be extended adding, for example, YCbCr 4:2:0.

Please do not see this as a formal patch as this wasn't even compiled tested but,
please, feel free to comment :)

NOTE: The adding of the new video modes timings was originally done by
Shashank Sharma <shashank.sharma at intel.com> so, credit to him. I modified it a
little bit (added the HDMI 2.0+ flag) and I don't know if I should add his
signed-off-by as it was modified.

Best regards,
Jose Miguel Abreu

Cc: Carlos Palminha <palminha at synopsys.com>
Cc: dri-devel at lists.freedesktop.org

Jose Abreu (5):
  drm: Add HDMI 2.0+ features exposing knob
  drm: uapi: Add HDMI 2.0 aspect ratio flags and HDMI 2.0+ mode flag
  drm: edid: Add HDMI 2.0 CEA video modes
  drm: connector: Add hdmi2_allowed flag
  drm: Do not expose HDMI 2.0+ modes to userspace/drivers unless asked
    to

 drivers/gpu/drm/drm_connector.c    |   2 +
 drivers/gpu/drm/drm_edid.c         | 258 +++++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/drm_ioctl.c        |   5 +
 drivers/gpu/drm/drm_probe_helper.c |   9 +-
 include/drm/drm_connector.h        |   2 +
 include/drm/drm_file.h             |   8 ++
 include/drm/drm_modes.h            |  14 ++
 include/uapi/drm/drm.h             |   7 +
 include/uapi/drm/drm_mode.h        |   9 ++
 9 files changed, 313 insertions(+), 1 deletion(-)

-- 
1.9.1




More information about the dri-devel mailing list