i915_display_info currently doesn't show whether HDR is active on a connector. This series adds per-connector HDR details in three parts: sink capability (from the EDID), whether userspace has set HDR_OUTPUT_METADATA, and whether the driver has actually enabled HDR output.
Patch 1 adds a small hdmi_eotf_get_name() helper to video/hdmi so the EOTF can be printed by name. Patch 2 adds the debugfs output. v2: - Move the EOTF name helper to the common hdmi code (Jani) - Use drm_printer for indentation instead of manual tabs (Jani) - Treat any non-SDR EOTF as HDR capable - Print the EDID luminance only when present, in nits - Add units to the HDR output luminance values Pranay Samala (2): video/hdmi: Add hdmi_eotf_get_name() drm/i915/debugfs: Add HDR status to i915_display_info .../drm/i915/display/intel_display_debugfs.c | 90 +++++++++++++++++++ drivers/video/hdmi.c | 23 +++++ include/linux/hdmi.h | 2 + 3 files changed, 115 insertions(+) -- 2.53.0
