dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/8] drm: Add colorspace property support to the HDMI helpers
@ 2026-11-21 13:10 Jan Claußen
  2026-11-21 13:10 ` [PATCH v5 1/8] drm/connector: Fix typo in colorspace error messages Jan Claußen
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Jan Claußen @ 2026-11-21 13:10 UTC (permalink / raw)
  To: Sandy Huang, Heiko Stübner, Andy Yan, Andrzej Hajda,
	Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
	Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Dmitry Baryshkov,
	Daniel Stone, Cristian Ciocaltea, Nicolas Frattaroli,
	Jan Claußen
  Cc: dri-devel, linux-rockchip, linux-kernel, linux-arm-kernel

HDMI connectors set up through drmm_connector_hdmi_init() don't expose
the colorspace property, so userspace can't signal BT.2020 colorimetry
for HDR. KWin, for example, doesn't offer HDR without it.
                                                                            
This series lets drivers declare which colorspaces they support and has
the HDMI helpers create the property and force a modeset when it
changes. dw-hdmi-qp on RK3588 is the first user.
                                                                            
Tested on a Radxa Rock 5B (RK3588) with an LG OLED55B87LC in KDE
Plasma 6.7.5. Only BT.2020 RGB is tested.
                                                                            
Changes in v5:
- Convert VOP2 from V4L2 colorspace values to enum drm_colorspace, so the
  HDMI glue doesn't need a V4L2 translation (Cristian)
- dw_hdmi_qp: Pass conn_state->colorspace directly and set it before the
  early return, so a colorspace change alone is applied
                                                                            
Changes in v4:
- Set the VOP2 color space from the connector colorspace, so YCbCr output
  is converted with the matching matrix (Sashiko)
                                                                            
Changes in v3:
- Move colorspace handling into the HDMI helpers (Maxime)
- Let drivers declare supported colorspaces instead of exposing all
- Split into a series
                                                                            
Changes in v2:
- Fix possible null pointer dereferencing requested by the Sashiko bot
                                                                            
v4: https://lore.kernel.org/all/20261018143135.5745-1-jan.claussen10@web.de/
v3: https://lore.kernel.org/all/20261018123037.19560-1-jan.claussen10@web.de
v2: https://lore.kernel.org/all/20261011142733.7806-1-jan.claussen10@web.de
v1: https://lore.kernel.org/all/20261011132024.2833-1-jan.claussen10@web.de

Jan Claußen (8):
  drm/connector: Fix typo in colorspace error messages
  drm/display: hdmi-state-helper: Force modeset on colorspace change
  drm/connector: hdmi: Create the colorspace property
  drm/bridge-connector: Pass supported colorspaces to the HDMI helpers
  drm/bridge: dw-hdmi-qp: Forward supported colorspaces from platform
    data
  drm/rockchip: vop2: Select the CSC matrix from the DRM colorimetry
  drm/rockchip: dw_hdmi_qp: Set the VOP2 color space from the connector
  drm/rockchip: dw_hdmi_qp: Advertise BT.709 and BT.2020 colorimetries

 drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c  |  3 ++
 .../gpu/drm/display/drm_bridge_connector.c    |  4 ++
 .../gpu/drm/display/drm_hdmi_state_helper.c   |  3 +-
 drivers/gpu/drm/drm_connector.c               | 17 +++++++--
 .../gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c  |  3 --
 drivers/gpu/drm/rockchip/dw_dp-rockchip.c     |  2 -
 .../gpu/drm/rockchip/dw_hdmi_qp-rockchip.c    |  6 +++
 drivers/gpu/drm/rockchip/rockchip_drm_drv.h   |  2 +-
 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c  | 37 +++++++------------
 include/drm/bridge/dw_hdmi_qp.h               |  2 +
 include/drm/drm_bridge.h                      |  7 ++++
 include/drm/drm_connector.h                   |  7 ++++
 12 files changed, 59 insertions(+), 34 deletions(-)

-- 
2.56.0


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

end of thread, other threads:[~2026-11-21 13:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21 13:10 [PATCH v5 0/8] drm: Add colorspace property support to the HDMI helpers Jan Claußen
2026-11-21 13:10 ` [PATCH v5 1/8] drm/connector: Fix typo in colorspace error messages Jan Claußen
2026-11-21 13:10 ` [PATCH v5 2/8] drm/display: hdmi-state-helper: Force modeset on colorspace change Jan Claußen
2026-11-21 13:10 ` [PATCH v5 3/8] drm/connector: hdmi: Create the colorspace property Jan Claußen
2026-11-21 13:10 ` [PATCH v5 4/8] drm/bridge-connector: Pass supported colorspaces to the HDMI helpers Jan Claußen
2026-11-21 13:10 ` [PATCH v5 5/8] drm/bridge: dw-hdmi-qp: Forward supported colorspaces from platform data Jan Claußen
2026-11-21 13:11 ` [PATCH v5 6/8] drm/rockchip: vop2: Select the CSC matrix from the DRM colorimetry Jan Claußen
2026-11-21 13:22   ` sashiko-bot
2026-11-21 13:11 ` [PATCH v5 7/8] drm/rockchip: dw_hdmi_qp: Set the VOP2 color space from the connector Jan Claußen
2026-11-21 13:11 ` [PATCH v5 8/8] drm/rockchip: dw_hdmi_qp: Advertise BT.709 and BT.2020 colorimetries Jan Claußen

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