<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED --- - [i965GM SDVO] Driver not emitting event when unplugging enabled HDMI output"
href="https://bugs.freedesktop.org/show_bug.cgi?id=58405#c31">Comment # 31</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED --- - [i965GM SDVO] Driver not emitting event when unplugging enabled HDMI output"
href="https://bugs.freedesktop.org/show_bug.cgi?id=58405">bug 58405</a>
from <span class="vcard"><a class="email" href="mailto:daniel@ffwll.ch" title="Daniel Vetter <daniel@ffwll.ch>"> <span class="fn">Daniel Vetter</span></a>
</span></b>
<pre>Hm, that's strange. Can you please add a bit of printk debugging on top to
figure out where the interrput might get killed, like this:
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 0aa2ef0..ca937e3 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -2874,6 +2874,7 @@ static void i915_hpd_irq_setup(struct drm_device *dev)
if (I915_HAS_HOTPLUG(dev)) {
hotplug_en = I915_READ(PORT_HOTPLUG_EN);
+ printk("hotplug_en old 0x%08x\n", hotplug_en);
hotplug_en &= ~HOTPLUG_INT_EN_MASK;
/* Note HDMI and DP share hotplug bits */
/* enable bits are the same for all generations */
@@ -2891,6 +2892,7 @@ static void i915_hpd_irq_setup(struct drm_device *dev)
/* Ignore TV since it's buggy */
I915_WRITE(PORT_HOTPLUG_EN, hotplug_en);
+ printk("hotplug_en new 0x%08x\n", hotplug_en);
}
}
Then please attach debug dmesg.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>