From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:42400 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751204AbeDQTm7 (ORCPT ); Tue, 17 Apr 2018 15:42:59 -0400 Date: Tue, 17 Apr 2018 21:42:56 +0200 From: Stanislaw Gruszka To: Kofi Agor Cc: Enrico Mioso , Craig Matsuura , Daniel Golle , Mathias Kresin , Tom Psyborg , linux-wireless , Johannes Berg , Arnd Bergmann , John Crispin , Felix Fietkau , Jamie Stuart Subject: Re: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue...? Message-ID: <20180417194255.GA17067@redhat.com> (sfid-20180417_214303_748128_B3EF662A) References: <20180326103551.GA2069@redhat.com> <24f8f4a2-b355-a1b3-d07a-940fc1e50fcc@kresin.me> <20180327171815.GA31338@redhat.com> <20180327174302.GB1206@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, Apr 17, 2018 at 07:32:57AM -0600, Kofi Agor wrote: > Some minor changes to our patch: > > 1. We (Craig Matsuura) found that disabling/enable the txtasklet worked > better than tearing down and recreating the txtasklet each time. It also > resolved a kernel oops we were experiencing. > 2. Cleaned up the patch a bit and gave credit to the developers > 3. There's a companion patch along with the txqueue patch that I forgot > to add when I submitted the txqueue patch the first time. It resolves an > rtnl deadlock during device unregistration. This should resolve the ifdown > issue you were experiencing. I can see few problems with this patch (except that it's messy and hard to read): - it does not detect HW hung and does not reset the HW when needed as watchdog is supposed to do - it waits only 100ms for TX status for each entry what is not enough, when then TX status will show up, we will get "Got TX status for an empty queue" error, but more importantly we do not feed rate control algorithm with proper data - it push TX status to upper layers without filling it properly (what confuses rc algorithm even more) via rt2x00lib_txdone_nomatch() instead of rt2x00lib_txdone_noinfo(), which is intended for case when we have no status information. Patch can help on situation when hardware do not provide TX status for each sent frame, but there is much better way to handle this problem, see usb version of the driver i.e. rt2800usb_work_txdone(). Cheers Stanislaw