summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorFrancisco Jerez2015-10-07 13:44:01 +0200
committerDaniel Vetter2015-10-07 16:37:03 +0200
commit02235808b61cd9382d224b0df263193006dd9913 (patch)
tree56bf6ce029c9f442010e593a93140f790b0a23b8 /drivers/gpu
parentdrm/i915: Resurrect golden context on gen6/7 (diff)
downloadkernel-qcow2-linux-02235808b61cd9382d224b0df263193006dd9913.tar.gz
kernel-qcow2-linux-02235808b61cd9382d224b0df263193006dd9913.tar.xz
kernel-qcow2-linux-02235808b61cd9382d224b0df263193006dd9913.zip
drm/i915: Don't warn if the workaround list is empty.
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 9035f8c7a8a7..702d3a2d73b9 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -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;