Skip to content

drm/i915/dp: Attach HDR_OUTPUT_METADATA on eDP

Yitian Shao dri-devel intel-gfx 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest0 of 4 patches 0 repliesNew
  2. v30 of 4 patches 1 replySuperseded
  3. v21 patch 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch2 repliesSuperseded

Changes in v4 from the cover letter

- Reword the patch 1 commit message: the gamut metadata DIP exists regardless of LSPCON; lspcon_write_infoframe() uses the same DIP.
- Patch 4 drops the luminance check instead of inverting it, since INTEL_EDP_HDR_TCON_SDP_OVERRIDE_AUX already selects which value the TCON uses. This follows Ville's suggestion to always write the value.
- Added the Reviewed-by tags.

Patches in v4 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/4] drm/i915/dp: Attach HDR_OUTPUT_METADATA on eDP

This series makes HDR work on pre-ICL eDP panels that decode the metadata through the Intel AUX HDR interface instead of a gamut metadata DIP.

Patch 1 removes the LSPCON check from intel_dp_has_gamut_metadata_dip(), which made the helper answer the wrong question.

Patch 2 attaches HDR_OUTPUT_METADATA on eDP when the panel's TCON advertises PQ decoding, and skips the infoframe when no DIP is available.

Patch 3 refuses HDR support on an LSPCON whose port cannot transmit the gamut metadata DIP.

Patch 4 writes the content luminance unconditionally.

v4:
- Reword the patch 1 commit message: the gamut metadata DIP exists regardless of LSPCON; lspcon_write_infoframe() uses the same DIP.
- Patch 4 drops the luminance check instead of inverting it, since INTEL_EDP_HDR_TCON_SDP_OVERRIDE_AUX already selects which value the TCON uses. This follows Ville's suggestion to always write the value.
- Added the Reviewed-by tags.

v3:
- Drop the LSPCON check from intel_dp_has_gamut_metadata_dip() and move it to intel_dp_add_properties().
- Fold the checks into intel_dp_hdr_metadata_supported().
- Add the LSPCON DIP check as a separate patch.
- Dropped the fastset concern: HDR metadata fastset support needs a separate fix.

v2:
- Do not skip the infoframe on LSPCON.
- Only attach the property when the Intel AUX HDR backlight interface is in use, to avoid reading the untagged union.

Testing: CometLake-U (Gen9.5) laptop with a 3840x2160 10bpc eDP panel that advertises BT2020 + ST2084. With v3 applied the connector exposes HDR_OUTPUT_METADATA, GNOME 50 offers the HDR switch, the DP Colorspace property switches to BT2020_RGB with eotf PQ, and a 4K HDR10 HEVC file plays with VA-API while the output stays in BT2020/PQ. The TCON HDR backlight interface was already in use before the change. v4 only removes a check in patch 4, leaving that path unchanged.

Yitian Shao (4):
drm/i915/dp: Drop LSPCON check from intel_dp_has_gamut_metadata_dip() drm/i915/dp: Attach HDR_OUTPUT_METADATA on eDP with TCON HDR support drm/i915/display: Check gamut metadata DIP support in LSPCON HDR
detection
drm/i915/dp: Always write the HDR content luminance

 drivers/gpu/drm/i915/display/intel_dp.c       | 32 ++++++++++++++++---
 .../drm/i915/display/intel_dp_aux_backlight.c |  8 +++--
 .../drm/i915/display/intel_dp_aux_backlight.h |  3 ++
 drivers/gpu/drm/i915/display/intel_lspcon.c   |  5 +++
 4 files changed, 41 insertions(+), 7 deletions(-)
Signature · 1 line
2.53.0