1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>intel_hpd_irq_storm_detect</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux GPU Driver Developer's Guide"><link rel="up" href="ch04s02.html#id-1.4.3.4.9" title="Hotplug"><link rel="prev" href="API-intel-plane-atomic-set-property.html" title="intel_plane_atomic_set_property"><link rel="next" href="API-intel-hpd-irq-handler.html" title="intel_hpd_irq_handler"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">intel_hpd_irq_storm_detect</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-intel-plane-atomic-set-property.html">Prev</a> </td><th width="60%" align="center">Hotplug</th><td width="20%" align="right"> <a accesskey="n" href="API-intel-hpd-irq-handler.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-intel-hpd-irq-storm-detect"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>intel_hpd_irq_storm_detect — 
2  gather stats and detect HPD irq storm on a pin
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">bool <b class="fsfunc">intel_hpd_irq_storm_detect </b>(</code></td><td>struct drm_i915_private * <var class="pdparam">dev_priv</var>, </td></tr><tr><td> </td><td>enum hpd_pin <var class="pdparam">pin</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.4.3.4.9.12.5"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev_priv</code></em></span></dt><dd><p>
4     private driver data pointer
5    </p></dd><dt><span class="term"><em class="parameter"><code>pin</code></em></span></dt><dd><p>
6     the pin to gather stats on
7    </p></dd></dl></div></div><div class="refsect1"><a name="id-1.4.3.4.9.12.6"></a><h2>Description</h2><p>
8   Gather stats about HPD irqs from the specified <em class="parameter"><code>pin</code></em>, and detect irq
9   storms. Only the pin specific stats and state are changed, the caller is
10   responsible for further action.
11   </p><p>
12
13   <em class="parameter"><code>HPD_STORM_THRESHOLD</code></em> irqs are allowed within <em class="parameter"><code>HPD_STORM_DETECT_PERIOD</code></em> ms,
14   otherwise it's considered an irq storm, and the irq state is set to
15   <em class="parameter"><code>HPD_MARK_DISABLED</code></em>.
16   </p><p>
17
18   Return true if an irq storm was detected on <em class="parameter"><code>pin</code></em>.
19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-intel-plane-atomic-set-property.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04s02.html#id-1.4.3.4.9">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-intel-hpd-irq-handler.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">intel_plane_atomic_set_property</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">intel_hpd_irq_handler</span></td></tr></table></div></body></html>
20