drm/i915: Tune down rpm wakelock debug checks
authorDaniel Vetter <[email protected]>
Tue, 5 Jan 2016 16:54:07 +0000 (17:54 +0100)
committerJani Nikula <[email protected]>
Wed, 13 Jan 2016 08:47:04 +0000 (10:47 +0200)
They're causing massive amounts of dmesg noise and hence CI noise all
over the place. Enabling them for a bit was good enough to refresh our
task list of what's still needed to enable rpm by default.

To make sure we're not forgetting to make this noisy again add a FIXME
comment.

Fixes: da5827c36607 ("drm/i915: add assert_rpm_wakelock_held helper")
Cc: Imre Deak <[email protected]>
Cc: [email protected]
Cc: Chris Wilson <[email protected]>
Acked-by: Chris Wilson <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Daniel Vetter <[email protected]>
(cherry picked from commit becd9ca2de656ccd8d02c434742388aead336147)
Signed-off-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/intel_drv.h

index d523ebb2f89dbac35120ce0ee78be868f19b355f..ea5415851c6e2cc36d4c6790db473fab637fd46d 100644 (file)
@@ -1442,8 +1442,10 @@ static inline void
 assert_rpm_wakelock_held(struct drm_i915_private *dev_priv)
 {
        assert_rpm_device_not_suspended(dev_priv);
-       WARN_ONCE(!atomic_read(&dev_priv->pm.wakeref_count),
-                 "RPM wakelock ref not held during HW access");
+       /* FIXME: Needs to be converted back to WARN_ONCE, but currently causes
+        * too much noise. */
+       if (!atomic_read(&dev_priv->pm.wakeref_count))
+               DRM_DEBUG_DRIVER("RPM wakelock ref not held during HW access");
 }
 
 static inline int