You need to sign in or sign up before continuing.
  • Suraj Kandpal's avatar
    drm/i915/dp: Enable AUX based backlight for HDR · b0944c98
    Suraj Kandpal authored
    
    
    As of now whenerver HDR is switched on we use the PWM to change the
    backlight as opposed to AUX based backlight changes in terms of nits.
    This patch writes to the appropriate DPCD registers to enable aux
    based backlight using values in nits.
    
    --v2
    -Fix max_cll and max_fall assignment [Jani]
    -Fix the size sent in drm_dpcd_write [Jani]
    
    --v3
    -Content Luminance needs to be sent only for pre-ICL after that
    it is directly picked up from hdr metadata [Ville]
    
    --v4
    -Add checks for HDR TCON cap bits [Ville]
    -Check eotf of hdr_output_data and sets bits base of that value.
    
    --v5
    -Fix capability check bits.
    -Check colorspace before setting BT2020
    
    --v6
    -Use intel_dp_has_gamut_dip to check if we have capability
    to send sdp [Ville]
    -Seprate filling of all hdr tcon related bits into it's
    own function.
    -Check eotf data to make sure we are in HDR mode [Sebastian]
    
    --v7
    -Fix confusion function name for hdr mode check [Jani]
    -Fix the condition which tells us if we are in HDR mode or not
    [Sebastian]
    
    --v8
    -Call fill_hdr_tcon_param unconditionally as some parameters may not
    be dependent on the fact if we are in hdr mode or not [Sebastian]
    -Fix some conditions after change in hdr mode check [Sebastian]
    Signed-off-by: default avatarSuraj Kandpal <suraj.kandpal@intel.com>
    Reviewed-by: default avatarSebastian Wick <sebastian.wick@redhat.com>
    Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240507040407.1056061-7-suraj.kandpal@intel.com
    b0944c98
intel_dp_aux_backlight.c 23.9 KB