]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: panel fitter hw state readout&check support
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 7 May 2013 21:34:16 +0000 (23:34 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 May 2013 23:20:28 +0000 (01:20 +0200)
commit1c7b1e000dbb412682982ed80ea254d1aa072310
tree97a8db0f03d4a4a28523afb4c0d0b8544e318f1e
parentfce90a5ad6174fc88c781f8e34b6f5b083820bab
drm/i915: panel fitter hw state readout&check support

Pfit state readout is a bit ugly on gen2/3 due to the intermingling
with the lvds state, but alas.

Also note that since state is always cleared to zero we can
unconditonally compare all the state and completely neglect the actual
platform we're running on.

v2: Properly check for the pfit power domain on haswell.

v3: Don't check pgm_ratios on gen4+, they're auto-computed by the hw.

v4: Properly clear the lvds border bits, upset the state checker a
bit.

v5: Unconditionally read out panel dither settings on gen2/3.

Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_lvds.c