mbox series

[v2,0/4] HDR aux backlight range calculation

Message ID 20220620072019.2710652-1-jouni.hogander@intel.com (mailing list archive)
Headers show
Series HDR aux backlight range calculation | expand

Message

Hogander, Jouni June 20, 2022, 7:20 a.m. UTC
This patch set splits out static hdr metadata backlight range parsing
from gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c into gpu/drm/drm-edid.c
as a new function. This new function is then used during edid parsing
when HDR static metadata block parsing.

Calculated values are stored in a new struct drm_luminance_range
introduced into display_info. Amdgpu_dm.c and intel_dp_aux_backlight.c
are using this new data.

v2: Calculate the range during edid parsing and store into display_info

Cc: Roman Li <roman.li@amd.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Manasi Navare <manasi.d.navare@intel.com>

Jouni Högander (4):
  drm/display: Add drm_luminance_range_info
  drm: New function to get luminance range based on static hdr metadata
  drm/amdgpu_dm: Rely on split out luminance calculation function
  drm/i915: Use luminance range calculated during edid parsing

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 35 ++-----------
 drivers/gpu/drm/drm_edid.c                    | 50 ++++++++++++++++++-
 .../drm/i915/display/intel_dp_aux_backlight.c | 17 +++++--
 include/drm/drm_connector.h                   | 21 ++++++++
 4 files changed, 88 insertions(+), 35 deletions(-)