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(-)
--
2.53.0