• Ankit Nautiyal's avatar
    drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg · 70418a68
    Ankit Nautiyal authored
    Till DISPLAY12 the PIPE_MISC bits 5-7 are used to set the
    Dithering BPC, with valid values of 6, 8, 10 BPC.
    For ADLP+ these bits are used to set the PORT OUTPUT BPC, with valid
    values of: 6, 8, 10, 12 BPC, and need to be programmed whether
    dithering is enabled or not.
    
    This patch:
    -corrects the bits 5-7 for PIPE MISC register for 12 BPC.
    -renames the bits and mask to have generic names for these bits for
    dithering bpc and port output bpc.
    
    v3: Added a note for MIPI DSI which uses the PIPE_MISC for readout
    for pipe_bpp. (Uma Shankar)
    
    v2: Added 'display' to the subject and fixes tag. (Uma Shankar)
    
    Fixes: 756f85cf ("drm/i915/bdw: Broadwell has PIPEMISC")
    Cc: Paulo Zanoni <paulo.r.zanoni@intel.com> (v1)
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Jani Nikula <jani.nikula@linux.intel.com>
    Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Cc: intel-gfx@lists.freedesktop.org
    Cc: <stable@vger.kernel.org> # v3.13+
    Signed-off-by: default avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
    Reviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
    Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210811051857.109723-1-ankit.k.nautiyal@intel.com
    70418a68
intel_display.c 392 KB