drm/i915: Replace nondescript 'WARN_ON(!lret)' with a sensible error message
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 Apr 2016 11:29:32 +0000 (14:29 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 Apr 2016 15:54:15 +0000 (18:54 +0300)
commit8a8dae260f5df805fe062875fef272ffccaf727f
tree3b3e7a38981b4dd431c64f2dc113bcfe5f7c7597
parentacf4e84d6167317ff21be5c03e1ea76ea5783701
drm/i915: Replace nondescript 'WARN_ON(!lret)' with a sensible error message

When a vblank wait times out in intel_atomic_wait_for_vblanks() we just
get a cryptic 'WARN_ON(!ret)' backtrace in dmesg. Repace it with
something that tells you what actually happened.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460978973-24945-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c