]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make sure the primary plane is enabled before reading out the fb state
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 5 Feb 2015 19:35:13 +0000 (19:35 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Feb 2015 22:28:06 +0000 (23:28 +0100)
commitcb0cdbf4da83d2308a2dae46a506374e5278cb97
treef75f692828b61e35ef4428190e586537156236aa
parentb2dda8b25a35cf3ea41fc9b430d87534481c6b2d
drm/i915: Make sure the primary plane is enabled before reading out the fb state

We don't want to end up in a state where we track that the pipe has its
primary plane enabled when primary plane registers are programmed with
values that look possible but the plane actually disabled.

Refuse to read out the fb state when the primary plane isn't enabled.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Suggested-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c