drm/i915: Disable HPD interrupt on pin when irq storm is detected (v3)
authorEgbert Eich <eich@suse.de>
Tue, 16 Apr 2013 11:36:57 +0000 (13:36 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Apr 2013 07:43:30 +0000 (09:43 +0200)
commitcd569aed17b35b7be4567d0b277d23014ad34631
treeddf31cb1aa6b55524c9d3f63a18b746dafb33342
parent995e6b3dcfa25e5837f103ae6e732fbca1790dd9
drm/i915: Disable HPD interrupt on pin when irq storm is detected (v3)

This patch disables hotplug interrupts if an 'interrupt storm'
has been detected.
Noise on the interrupt line renders the hotplug interrupt useless:
each hotplug event causes the devices to be rescanned which will
will only increase the system load.
Thus disable the hotplug interrupts and fall back to periodic
device polling.

v2: Fixed cleanup typo.
v3: Fixed format issues, clarified a variable name,
    changed pr_warn() to DRM_INFO() as suggested by
    Jani Nikula <jani.nikula@linux.intel.com>.

Signed-off-by: Egbert Eich <eich@suse.de>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c