lkml.org 
[lkml]   [2015]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.18 024/151] rtlwifi: rtl8192ee: Fix TX hang due to failure to update TX write point
    Date
    3.18-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Troy Tan <troy_tan@realsil.com.cn>

    commit 6e5f4436162848289f071be38ee6b87dc8ea653d upstream.

    Initially, the routine to update the write point in the FIFO buffer was
    coded to save CPU time by not doing the calculation every interrupt. This
    was an error and results in TX hangs.

    Signed-off-by: Troy Tan <troy_tan@realsil.com.cn>
    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/wireless/rtlwifi/rtl8192ee/trx.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    --- a/drivers/net/wireless/rtlwifi/rtl8192ee/trx.c
    +++ b/drivers/net/wireless/rtlwifi/rtl8192ee/trx.c
    @@ -1207,8 +1207,7 @@ bool rtl92ee_is_tx_desc_closed(struct ie
    static u8 stop_report_cnt;
    struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue];

    - /*checking Read/Write Point each interrupt wastes CPU */
    - if (stop_report_cnt > 15 || !rtlpriv->link_info.busytraffic) {
    + {
    u16 point_diff = 0;
    u16 cur_tx_rp, cur_tx_wp;
    u32 tmpu32 = 0;



    \
     
     \ /
      Last update: 2015-03-04 09:21    [W:4.407 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site