drm/i915: Add support for pipe_bpp readout
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 21 Oct 2013 07:52:06 +0000 (10:52 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 28 Oct 2013 08:34:37 +0000 (09:34 +0100)
commit4f56d12ebb28fceac4c6e60c8993fbfc122e1399
treee16f0c38b4cfcbfcb14f696ca908048b5887f481
parent959f58544b7f20c92d5eb43d1232c96c15c01bfb
drm/i915: Add support for pipe_bpp readout

On CTG+ read out the pipe bpp setting from hardware and fill it into
pipe config. Also check it appropriately.

v2: Don't do the pipe_bpp extraction inside the PCH only code block on
    ILK+.
    Avoid the PIPECONF read as we already have read it for the
    PIPECONF_EANBLE check.

Note: This is already in drm-intel-next-queued as
commit 42571aefafb1d330ef84eb29418832f72e7dfb4c
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Fri Sep 6 23:29:00 2013 +0300

    drm/i915: Add support for pipe_bpp readout

but is needed for the following bugfix.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_display.c