drm/i915: Write HDR infoframe and send to panel
authorUma Shankar <uma.shankar@intel.com>
Sat, 18 May 2019 10:39:27 +0000 (16:09 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 28 May 2019 10:29:14 +0000 (12:29 +0200)
commit5a0200f69dfd36e8316c4fab7a5036f35329b22c
tree828a2816a6d5065ee3a3101698110ca4804fde6a
parent44b42ebfccfd9d6ef377a25e99ae0085b071e868
drm/i915: Write HDR infoframe and send to panel

Enable writing of HDR metadata infoframe to panel.
The data will be provid by usersapace compositors, based
on blending policies and passsed to driver through a blob
property.

v2: Rebase

v3: Fixed a warning message

v4: Addressed Shashank's review comments

v5: Rebase. Added infoframe calculation in compute config.

v6: Addressed Shashank's review comment. Added HDR metadata
support from GEN10 onwards as per Shashank's recommendation.

v7: Addressed Shashank's review comments

v8: Added Shashank's RB.

v9: Addressed Ville's review comments.

v10: Removed a redundant check as core already handles it, as per
Ville's comment.

v11: Added the metadata available check to avoid failure in
compute_config.

Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1558175967-22068-1-git-send-email-uma.shankar@intel.com
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_hdmi.c