Skip to content

Add HDMI infoframe helpers

Thierry Reding dri-devel 5 versions – In review

Get series with b4
b4 am 1361516611-2517-1-git-send-email-thierry.reding@avionic-design.de

Versions newest first · linked by author and title

  1. v5 Latest9 patches 7 repliesIn review
  2. v49 patches 3 repliesSuperseded
  3. v39 patches 11 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 RFC5 patches20 repliesSuperseded
v1 RFC2 patches4 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm: Remove duplicate drm_mode_cea_vic()drivers/gpu/drm/drm_edid.c drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_hdmi.c +2 more+12 -290 replies
2/9drm: Move mode tables to drm_edid.cdrivers/gpu/drm/drm_edid.c drivers/gpu/drm/drm_edid_modes.h+746 -7810 replies
3/9drm: Add some missing forward declarationsinclude/drm/drm_crtc.h+2 -10 replies
4/9video: Add generic HDMI infoframe helpersdrivers/video/Kconfig drivers/video/Makefile drivers/video/hdmi.c +1 more+543 -07 replies
5/9drm: Add HDMI infoframe helpersdrivers/gpu/drm/Kconfig drivers/gpu/drm/drm_edid.c include/drm/drm_edid.h+40 -00 replies
6/9drm: Add EDID helper documentationDocumentation/DocBook/drm.tmpl+4 -00 replies
7/9drm/tegra: Use generic HDMI infoframe helpersdrivers/gpu/drm/tegra/Kconfig drivers/gpu/drm/tegra/hdmi.c drivers/gpu/drm/tegra/hdmi.h+110 -3060 replies
8/9drm/i915: Use generic HDMI infoframe helpersdrivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_hdmi.c drivers/gpu/drm/i915/intel_sdvo.c+117 -1660 replies
9/9drm/radeon: Use generic HDMI infoframe helpersdrivers/gpu/drm/radeon/evergreen_hdmi.c drivers/gpu/drm/radeon/r600_hdmi.c+58 -1610 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/9] Add HDMI infoframe helpers

The first three patches are of a janitorial nature. The first removes the duplicate implementation of drm_mode_cea_vic(). The second patch moves the various mode tables from drm_edid_modes.h to drm_edid.c in order to localize them in one source file instead of potentially including the header file in multiple locations and duplicating the tables. The third patch fixes build issues due to some missing forward declarations

Patch 4 adds generic helpers to pack a structures that describe HDMI AVI, audio, vendor-specific or SPD infoframes into the binary format specified in the HDMI specification. The resulting binary buffer should be easily programmable into the HDMI controller.

Patch 5 provides a helper to fill an HDMI AVI infoframe with data from a struct drm_display_mode.

Patch 6 adds the DRM EDID helpers (including the new DRM HDMI helper from patch 5) to the DRM DocBook documentation.

Patch 7, 8 and 9 move the Tegra, Intel and Radeon drivers over to the new helpers. Patch 8 was contributed by Intel's Paulo Zanoni. I think Paulo wanted to spin a new version, so maybe the version included in this series shouldn't be applied as-is.

Thierry

Paulo Zanoni (1):
drm/i915: Use generic HDMI infoframe helpers

Thierry Reding (8):
drm: Remove duplicate drm_mode_cea_vic()
drm: Move mode tables to drm_edid.c
drm: Add some missing forward declarations
video: Add generic HDMI infoframe helpers
drm: Add HDMI infoframe helpers
drm: Add EDID helper documentation
drm/tegra: Use generic HDMI infoframe helpers
drm/radeon: Use generic HDMI infoframe helpers

 Documentation/DocBook/drm.tmpl          |   4 +
 drivers/gpu/drm/Kconfig                 |   1 +
 drivers/gpu/drm/drm_edid.c              | 798 +++++++++++++++++++++++++++++++-
 drivers/gpu/drm/drm_edid_modes.h        | 774 -------------------------------
 drivers/gpu/drm/i915/intel_dp.c         |   2 +-
 drivers/gpu/drm/i915/intel_drv.h        |  65 +--
 drivers/gpu/drm/i915/intel_hdmi.c       | 193 ++++----
 drivers/gpu/drm/i915/intel_sdvo.c       |  29 +-
 drivers/gpu/drm/radeon/evergreen_hdmi.c |  85 +---
 drivers/gpu/drm/radeon/r600_hdmi.c      | 134 ++----
 drivers/gpu/drm/tegra/Kconfig           |   1 +
 drivers/gpu/drm/tegra/hdmi.c            | 226 +++++----
 drivers/gpu/drm/tegra/hdmi.h            | 189 --------
 drivers/video/Kconfig                   |   3 +
 drivers/video/Makefile                  |   1 +
 drivers/video/hdmi.c                    | 308 ++++++++++++
 include/drm/drm_crtc.h                  |   6 +-
 include/drm/drm_edid.h                  |   6 +
 include/linux/hdmi.h                    | 231 +++++++++
 19 files changed, 1622 insertions(+), 1434 deletions(-)
 delete mode 100644 drivers/gpu/drm/drm_edid_modes.h
 create mode 100644 drivers/video/hdmi.c
 create mode 100644 include/linux/hdmi.h
Signature · 1 line
1.8.1.2