Return-path: Received: from mx0.aculab.com ([213.249.233.131]:40933 "HELO mx0.aculab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932448Ab3BSJnV convert rfc822-to-8bit (ORCPT ); Tue, 19 Feb 2013 04:43:21 -0500 Received: from mx0.aculab.com ([127.0.0.1]) by localhost (mx0.aculab.com [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 27333-06 for ; Tue, 19 Feb 2013 09:43:15 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Subject: RE: [PATCH] b43: Increase number of RX DMA slots Date: Tue, 19 Feb 2013 09:42:28 -0000 Message-ID: (sfid-20130219_104329_246750_978FD6CD) In-Reply-To: <20130219.005206.397289032011003833.davem@davemloft.net> References: <1361156480-32566-1-git-send-email-Larry.Finger@lwfinger.net> <20130219.005206.397289032011003833.davem@davemloft.net> From: "David Laight" To: "David Miller" , Cc: , , , , Sender: linux-wireless-owner@vger.kernel.org List-ID: > > Bastian Bittorf reported that some of the silent freezes on a Linksys WRT54G > > were due to overflow of the RX DMA ring buffer, which was created with 64 > > slots. That finding reminded me that I was seeing similar crashed on a netbook, > > which also has a relatively slow processor. After increasing the number of > > slots to 128, runs on the netbook that previously failed now worked; however, > > I found that 109 slots had been used in one test. For that reason, the number > > of slots is being increased to 256. Surely the driver should work even if all the RX buffers get filled? Increasing the number of buffers is just hiding the issue. A burst of 300 back to back small packets probably fills the 256 slots. I realise that dropping frames isn't ideal, and that small numbers of buffers can make it impossible to receive long fragmented IP messages. but increasing the number of buffers doesn't seem to be the best fix for a 'silent freeze'. It might be that the driver would be more robust if it only ever put rx buffers into all but one of the ring slots. David