intel_hpd_irq_storm_detect — gather stats and detect HPD irq storm on a pin
bool intel_hpd_irq_storm_detect ( | struct drm_i915_private * dev_priv, |
enum hpd_pin pin) ; |
Gather stats about HPD irqs from the specified pin
, and detect irq
storms. Only the pin specific stats and state are changed, the caller is
responsible for further action.
HPD_STORM_THRESHOLD
irqs are allowed within HPD_STORM_DETECT_PERIOD
ms,
otherwise it's considered an irq storm, and the irq state is set to
HPD_MARK_DISABLED
.
Return true if an irq storm was detected on pin
.