public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: Only WARN about a stuck hotplug irq ONCE
@ 2014-01-10 18:49 Chris Wilson
  2014-01-10 18:49 ` [PATCH 2/2] drm/i915: Only complain about a rogue hotplug IRQ after disabling Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Chris Wilson @ 2014-01-10 18:49 UTC (permalink / raw)
  To: intel-gfx

It seems that hardware that is broken enough to emit a hotplug IRQ even
though the pin is surposedly disable, will do so indefinitely.

References: https://bugzilla.redhat.com/show_bug.cgi?id=1051170
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1051369
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/i915_irq.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index ec67bb8aff0a..3be8bcd4d797 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -1247,9 +1247,9 @@ static inline void intel_hpd_irq_handler(struct drm_device *dev,
 	spin_lock(&dev_priv->irq_lock);
 	for (i = 1; i < HPD_NUM_PINS; i++) {
 
-		WARN(((hpd[i] & hotplug_trigger) &&
-		      dev_priv->hpd_stats[i].hpd_mark != HPD_ENABLED),
-		     "Received HPD interrupt although disabled\n");
+		WARN_ONCE(hpd[i] & hotplug_trigger &&
+			  dev_priv->hpd_stats[i].hpd_mark != HPD_ENABLED,
+			  "Received HPD interrupt although disabled\n");
 
 		if (!(hpd[i] & hotplug_trigger) ||
 		    dev_priv->hpd_stats[i].hpd_mark != HPD_ENABLED)
-- 
1.8.5.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-10 20:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-10 18:49 [PATCH 1/2] drm/i915: Only WARN about a stuck hotplug irq ONCE Chris Wilson
2014-01-10 18:49 ` [PATCH 2/2] drm/i915: Only complain about a rogue hotplug IRQ after disabling Chris Wilson
2014-01-10 18:52 ` [PATCH 1/2] drm/i915: Only WARN about a stuck hotplug irq ONCE Chris Wilson
2014-01-10 19:57 ` Daniel Vetter
2014-01-10 20:17   ` [PATCH] drm/i915: Include more information in disabled hotplug interrupt warning Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox