ator' content='cgit v1.2.3-54-g00ecf'/>
<meta name='robots' content='noindex, nofollow'/>
<link rel='stylesheet' type='text/css' href='/cgit.css'/>
<script type='text/javascript' src='/cgit.js'></script>
<link rel='shortcut icon' href='http://distanz.ch/favicon.ico'/>
<link rel='alternate' title='Atom feed' href='https://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/tools/testing/radix-tree/test.h?h=nds-private-remove' type='application/atom+xml'/>
<link rel='vcs-git' href='git://git.distanz.ch/linux/net-next.git' title='net-next.git Git repository'/>
<link rel='vcs-git' href='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/cgit.cgi/'><img src='/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='3c19bd6c52d441893ba19b3418825b27cfa4fd9c'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/testing/radix-tree/test.h?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/testing/radix-tree/test.h?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/radix-tree/test.h?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/radix-tree/test.h?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/testing/radix-tree/test.h'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='3c19bd6c52d441893ba19b3418825b27cfa4fd9c'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>testing</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/radix-tree?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>radix-tree</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/radix-tree/test.h?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c'>test.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/radix-tree/test.h?h=nds-private-remove&amp;id=3c19bd6c52d441893ba19b3418825b27cfa4fd9c&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
ption value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Alexey Brodkin &lt;Alexey.Brodkin@synopsys.com&gt;</td><td class='right'>2017-01-27 15:24:43 +0300</td></tr>
<tr><th>committer</th><td>David S. Miller &lt;davem@davemloft.net&gt;</td><td class='right'>2017-01-29 18:15:18 -0500</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/uapi/rdma?h=nds-private-remove&amp;id=0a764db103376cf69d04449b10688f3516cc0b88'>0a764db103376cf69d04449b10688f3516cc0b88</a> (<a href='/cgit.cgi/linux/net-next.git/patch/include/uapi/rdma?id=0a764db103376cf69d04449b10688f3516cc0b88'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove&amp;id=0a764db103376cf69d04449b10688f3516cc0b88'>6789a5c06ce42be32e77d6b40c6eb9baca113650</a> /<a href='/cgit.cgi/linux/net-next.git/tree/include/uapi/rdma?h=nds-private-remove&amp;id=0a764db103376cf69d04449b10688f3516cc0b88'>include/uapi/rdma</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/uapi/rdma?h=nds-private-remove&amp;id=1b1bc42c1692e9b62756323c675a44cb1a1f9dbd'>1b1bc42c1692e9b62756323c675a44cb1a1f9dbd</a> (<a href='/cgit.cgi/linux/net-next.git/diff/include/uapi/rdma?h=nds-private-remove&amp;id=0a764db103376cf69d04449b10688f3516cc0b88&amp;id2=1b1bc42c1692e9b62756323c675a44cb1a1f9dbd'>diff</a>)</td></tr></table>
<div class='commit-subject'>stmmac: Discard masked flags in interrupt status register</div><div class='commit-msg'>DW GMAC databook says the following about bits in "Register 15 (Interrupt
Mask Register)":
---------------------------&gt;8-------------------------
When set, this bit __disables_the_assertion_of_the_interrupt_signal__
because of the setting of XXX bit in Register 14 (Interrupt
Status Register).
---------------------------&gt;8-------------------------

In fact even if we mask one bit in the mask register it doesn't prevent
corresponding bit to appear in the status register, it only disables
interrupt generation for corresponding event.

But currently we expect a bit different behavior: status bits to be in
sync with their masks, i.e. if mask for bit A is set in the mask
register then bit A won't appear in the interrupt status register.

This was proven to be incorrect assumption, see discussion here [1].
That misunderstanding causes unexpected behaviour of the GMAC, for
example we were happy enough to just see bogus messages about link
state changes.

So from now on we'll be only checking bits that really may trigger an
interrupt.

[1] https://lkml.org/lkml/2016/11/3/413

Signed-off-by: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
Cc: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
Cc: Fabrice Gasnier &lt;fabrice.gasnier@st.com&gt;
Cc: Joachim Eastwood &lt;manabian@gmail.com&gt;
Cc: Phil Reid &lt;preid@electromag.com.au&gt;
Cc: David Miller &lt;davem@davemloft.net&gt;
Cc: Alexandre Torgue &lt;alexandre.torgue@gmail.com&gt;
Cc: Vineet Gupta &lt;vgupta@synopsys.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&amp;id=0a764db103376cf69d04449b10688f3516cc0b88'>Diffstat</a> (limited to 'include/uapi/rdma')</div><table summary='diffstat' class='diffstat'>