]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Don't warn if the workaround list is empty.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 7 Oct 2015 11:44:01 +0000 (14:44 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 7 Oct 2015 14:37:03 +0000 (16:37 +0200)
It's not an error for the workaround list to be empty if no
workarounds are needed.  This will avoid spamming the logs
unnecessarily on Gen6 after the workaround list is hooked up on
pre-Gen8 hardware by the following commits.

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c

index 9035f8c7a8a7f98be3025f4a5ee46713662f2995..702d3a2d73b9e8d335d8358cc7e5fcbf7c444454 100644 (file)
@@ -717,7 +717,7 @@ static int intel_ring_workarounds_emit(struct drm_i915_gem_request *req)
        struct drm_i915_private *dev_priv = dev->dev_private;
        struct i915_workarounds *w = &dev_priv->workarounds;
 
-       if (WARN_ON_ONCE(w->count == 0))
+       if (w->count == 0)
                return 0;
 
        ring->gpu_caches_dirty = true;