Skip to contentSkip to conversation

No subject

PATCH [email protected] 1 participant 1 message Oct 12, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

div>Let me know if something is not clear.<br><br></div></div></blockquote>= <div>I am interested if you reintroduce bug that Sujith already fix in comm= it:</div><div>ath9k: Enable HW queue control only for MCC<br></div><div><br=

Quoted 1 line

</div><div>While as I understand correctly this patch disable hw queues fo=

r non-mcc (also clear IEEE80211_HW_QUEUE_CONTROL) and your</div><div><span = style=3D"font-size:12.8px"><br></span></div><div><span style=3D"font-size:1= 2.8px">+=C2=A0 =C2=A0 =C2=A0 =C2=A0if (ath9k_is_chanctx_enabled())</span><b= r></div><div><span style=3D"font-size:12.8px">+=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0q =3D fi-&gt;txq;</span><br style=3D"font-size:1= 2.8px"><span style=3D"font-size:12.8px">+=C2=A0 =C2=A0 =C2=A0 =C2=A0else</s= pan><br style=3D"font-size:12.8px"><span style=3D"font-size:12.8px">+=C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0q =3D info-&gt;hw_queue;</=
span><br></div><div><span style=3D"font-size:12.8px"><br></span></div><div>= <span style=3D"font-size:12.8px">Use again hw_queue for standard non-mcc op= eration.</span></div><div><span style=3D"font-size:12.8px"><br></span></div=

Quoted 1 line

<div><span style=3D"font-size:12.8px">Please check this, I am sure while d=

id only simple check :)</span></div><div><span style=3D"font-size:12.8px"><= br></span></div><div><span style=3D"font-size:12.8px">BR<br>Janusz</span></= div><div><span style=3D"font-size:12.8px"><br></span></div><div>=C2=A0</div=

Quoted 1 line

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border=

-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;= padding-left:1ex"><div dir=3D"ltr"><div></div>Regards,<br></div><div class= =3D"gmail_extra"><br clear=3D"all"><div><div><div dir=3D"ltr"><table cellsp= acing=3D"0" cellpadding=3D"0" border=3D"0" style=3D"font-family:&#39;Times = New Roman&#39;"><tbody><tr><td style=3D"width:60px;height:37px"><a href=3D"=
http://www.fon.com/" target=3D"_blank"><img src=3D"http://corp.fon.com/site= s/default/files/filelibrary/firmafon.png" width=3D"60" height=3D"37" title= =3D"Fon" alt=3D"Fon" border=3D"0" style=3D"border: 0px none;"></a></td></tr=

Quoted 1 line

<tr><td style=3D"border-bottom-width:1px;border-bottom-style:dotted;min-wi=

dth:100px;font-family:Arial;font-size:10pt;color:rgb(51,51,51);font-weight:= bold;padding:15px 0px 3px">Borja Salazar</td></tr><tr><td style=3D"padding:= 5px 0px 1px;font-family:Arial;font-size:7.5pt;color:rgb(102,102,102)">Firmw= are team</td></tr><tr><td style=3D"padding:1px 0px;font-family:Arial;font-s= ize:7.5pt;color:rgb(102,102,102)"></td></tr><tr><td style=3D"padding:1px 0p= x;font-family:Arial;font-size:7.5pt;color:rgb(102,102,102)"></td></tr><tr><= td style=3D"padding:1px 0px;font-family:Arial;font-size:7.5pt;color:rgb(102= ,102,102)">All information in this email is=C2=A0<a href=3D"http://corp.fon= .com/legal/email-disclaimer" style=3D"color:rgb(102,102,102)" target=3D"_bl= ank">confidential</a></td></tr></tbody></table></div></div></div><div><div = class=3D"h5">
<br><div class=3D"gmail_quote">On Fri, Nov 13, 2015 at 11:33 AM, Borja Sala= zar <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target= =3D"_blank">borja.salazar at fon.com</a>&gt;</span> wrote:<br><blockquote clas= s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;b= order-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"=

Quoted 1 line

<span>When channel context is enabled, we could be<br>

stopping/awakening an incorrect queue.<br>
<br>
</span>Signed-off-by: Borja Salazar &lt;<a href=3D"mailto:borja.salazar@fon= .com" target=3D"_blank">borja.salazar at fon.com</a>&gt;<br> <div><div>---<br>
=C2=A0drivers/net/wireless/ath/ath9k/xmit.c | 22 ++++++++++++----------<br> =C2=A01 file changed, 12 insertions(+), 10 deletions(-)<br>
<br>

drivers/net/wireless/a= renamed from drivers/net/wireless/ath/ath9k/xmit.c +0 -0

th/ath9k/xmit.c<br>
index 3e3dac3..9b17a59 100644<br>

drivers/net/wireless/ath/ath9k/xmit.c<br> +0 -0
@@ -147,7 +147,12 @@ static void ath_txq_skb_done(struct ath_softc *sc, str=

uct ath_txq *txq,<br>
=C2=A0{<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ieee80211_tx_info *info =3D IEEE80211_SK= B_CB(skb);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 struct ath_frame_info *fi =3D get_frame_info(sk= b);<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0int q =3D fi-&gt;txq;<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0int q;<br>
+<br>

+=C2=A0 =C2=A0 =C2=A0 =C2=A0if (ath9k_is_chanctx_enabled())<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0q =3D fi-&gt;txq;<b=
r>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0else<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0q =3D info-&gt;hw_q=

ueue;<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (q &lt; 0)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return;<br> @@ -158,10 +163,7 @@ static void ath_txq_skb_done(struct ath_softc *sc, str= uct ath_txq *txq,<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (txq-&gt;stopped &amp;&amp;<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 txq-&gt;pending_frames &lt; sc-&g= t;tx.txq_max_pending[q]) {<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (ath9k_is_chanct= x_enabled())<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0ieee80211_wake_queue(sc-&gt;hw, info-&gt;hw_queue);<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0else<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0ieee80211_wake_queue(sc-&gt;hw, q);<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ieee80211_wake_queu= e(sc-&gt;hw, q);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 txq-&gt;stopped =3D=
false;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }<br>
=C2=A0}<br>
@@ -2299,17 +2301,17 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk= _buff *skb,<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0* info are no longer valid (overwritten b= y the ath_frame_info data.<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*/<br>
<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0q =3D skb_get_queue_mapping(skb);<br>

+=C2=A0 =C2=A0 =C2=A0 =C2=A0if (ath9k_is_chanctx_enabled())<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0q =3D skb_get_queue=
_mapping(skb);<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0else<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0q =3D info-&gt;hw_q=

ueue;<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ath_txq_lock(sc, txq);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (txq =3D=3D sc-&gt;tx.txq_map[q]) {<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi-&gt;txq =3D q;<b= r>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (++txq-&gt;pendi= ng_frames &gt; sc-&gt;tx.txq_max_pending[q] &amp;&amp;<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 !txq-= &gt;stopped) {<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0if (ath9k_is_chanctx_enabled())<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ieee80211_stop_queue(sc-&gt;hw, info-= &gt;hw_queue);<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0else<br>
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ieee80211_stop_queue(sc-&gt;hw, q);<b= r>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0ieee80211_stop_queue(sc-&gt;hw, q);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 txq-&gt;stopped =3D true;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 }<br>
--<br>
2.3.6<br>
<br>
</div></div></blockquote></div><br></div></div></div> </blockquote></div><br></div></div>

--001a11444ce011feae05246a36f0--