mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/4] drm/bridge: dw-hdmi: Add support for HDR metadata
@ 2019-10-07 19:19 Jonas Karlman
  2019-10-07 19:21 ` [PATCH v2 1/4] drm/bridge: dw-hdmi: Add Dynamic Range and Mastering InfoFrame support Jonas Karlman
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jonas Karlman @ 2019-10-07 19:19 UTC (permalink / raw)
  To: Andrzej Hajda, Neil Armstrong
  Cc: Jonas Karlman, Laurent Pinchart, Jernej Skrabec, Kevin Hilman,
	Sandy Huang, Heiko Stubner, Maxime Ripard, Chen-Yu Tsai,
	zhengyang, dri-devel, linux-kernel

Add support for HDR metadata using the hdr_output_metadata connector property,
configure Dynamic Range and Mastering InfoFrame accordingly.

A use_drm_infoframe flag is added to dw_hdmi_plat_data that platform drivers
can use to signal when Dynamic Range and Mastering infoframes is supported.
This flag is needed because Amlogic GXBB and GXL report same DW-HDMI version,
and only GXL support DRM InfoFrame.

The first patch add functionality to configure DRM InfoFrame based on the
hdr_output_metadata connector property.

The remaining patches sets the use_drm_infoframe flag on some SoCs supporting
Dynamic Range and Mastering InfoFrame.

v2 has been runtime tested on a Rock64 (RK3328) and Rock Pi 4 (RK3399),
only build tested for Amlogic and Allwinner.

Changes in v2:
  * address comments from Andrzej Hajda
  - renamed blob_equal to hdr_metadata_equal
  - renamed drm_infoframe flag to use_drm_infoframe
  - use hdmi_drm_infoframe_pack and a loop to write regs
  - remove hdmi version check in hdmi_config_drm_infoframe

Jonas Karlman (4):
  drm/bridge: dw-hdmi: Add Dynamic Range and Mastering InfoFrame support
  drm/rockchip: Enable DRM InfoFrame support on RK3328 and RK3399
  drm/meson: Enable DRM InfoFrame support on GXL, GXM and G12A
  drm/sun4i: Enable DRM InfoFrame support on H6

 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c   | 81 +++++++++++++++++++++
 drivers/gpu/drm/bridge/synopsys/dw-hdmi.h   | 37 ++++++++++
 drivers/gpu/drm/meson/meson_dw_hdmi.c       |  5 ++
 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c |  2 +
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c       |  2 +
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h       |  1 +
 include/drm/bridge/dw_hdmi.h                |  1 +
 7 files changed, 129 insertions(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-10-10 11:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 19:19 [PATCH v2 0/4] drm/bridge: dw-hdmi: Add support for HDR metadata Jonas Karlman
2019-10-07 19:21 ` [PATCH v2 1/4] drm/bridge: dw-hdmi: Add Dynamic Range and Mastering InfoFrame support Jonas Karlman
2019-10-10 10:12   ` Andrzej Hajda
2019-10-10 10:37     ` Neil Armstrong
     [not found] ` <20191007192135.4525-1-jonas@kwiboo.se>
2019-10-07 19:21   ` [PATCH v2 2/4] drm/rockchip: Enable DRM InfoFrame support on RK3328 and RK3399 Jonas Karlman
2019-10-07 19:21   ` [PATCH v2 3/4] drm/meson: Enable DRM InfoFrame support on GXL, GXM and G12A Jonas Karlman
2019-10-08  8:04     ` Neil Armstrong
2019-10-07 19:21   ` [PATCH v2 4/4] drm/sun4i: Enable DRM InfoFrame support on H6 Jonas Karlman
2019-10-10 11:59 ` [PATCH v2 0/4] drm/bridge: dw-hdmi: Add support for HDR metadata Neil Armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®