]> Git Repo - linux.git/commitdiff
drm/i915: Replace nondescript 'WARN_ON(!lret)' with a sensible error message
authorVille Syrjälä <[email protected]>
Mon, 18 Apr 2016 11:29:32 +0000 (14:29 +0300)
committerVille Syrjälä <[email protected]>
Mon, 18 Apr 2016 15:54:15 +0000 (18:54 +0300)
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 <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Maarten Lankhorst <[email protected]>
drivers/gpu/drm/i915/intel_display.c

index c5b9687091f44b21b2fa41fa66e65d3ab3d3ce42..68151271283ce1923b32dbd59221e48782929fde 100644 (file)
@@ -13526,7 +13526,7 @@ static void intel_atomic_wait_for_vblanks(struct drm_device *dev,
                                        drm_crtc_vblank_count(crtc),
                                msecs_to_jiffies(50));
 
-               WARN_ON(!lret);
+               WARN(!lret, "pipe %c vblank wait timed out\n", pipe_name(pipe));
 
                drm_crtc_vblank_put(crtc);
        }
This page took 0.096184 seconds and 4 git commands to generate.