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)
committerJani Nikula <jani.nikula@intel.com>
Wed, 18 Mar 2015 08:09:05 +0000 (10:09 +0200)
commit7f0801e566cc78315e5dc383bf3c3b5b5b436048
tree01c03281e4e6c62806e9b01e07ace1ec54bd84c7
parent319c1d420a0b62d9dbb88104afebaabc968cdbfa
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>
Reported-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Reported-by: Steven Rostedt <rostedt@goodmis.org>
Reference: http://mid.gmane.org/20150203191507.GA2374@crion86
Tested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c