]> Pileus Git - ~andy/linux/commitdiff
drm/i915: Include more information in disabled hotplug interrupt warning
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Jan 2014 20:17:07 +0000 (20:17 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Jan 2014 21:27:18 +0000 (22:27 +0100)
Daniel thought that this was an opportune moment to include which pins
and bits ended up being stuck in the WARN.

Suggested-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c

index 715f410c518cbf4dda467066006c2c7a2bfb3295..d64da4fe36e5591b8b90f40ec2e953c1298d425f 100644 (file)
@@ -1235,7 +1235,8 @@ static inline void intel_hpd_irq_handler(struct drm_device *dev,
 
                WARN_ONCE(hpd[i] & hotplug_trigger &&
                          dev_priv->hpd_stats[i].hpd_mark == HPD_DISABLED,
-                         "Received HPD interrupt although disabled\n");
+                         "Received HPD interrupt (0x%08x) on pin %d (0x%08x) although disabled\n",
+                         hotplug_trigger, i, hpd[i]);
 
                if (!(hpd[i] & hotplug_trigger) ||
                    dev_priv->hpd_stats[i].hpd_mark != HPD_ENABLED)