]> git.baikalelectronics.ru Git - kernel.git/commit
b43: A fix for DMA transmission sequence errors
authorIestyn C. Elfick <isedev@gmail.com>
Wed, 20 Mar 2013 19:02:31 +0000 (14:02 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 27 Mar 2013 15:07:04 +0000 (11:07 -0400)
commit2659920529d8f30d468cc7ba897f786576a50965
tree577763c24d9021919ea4e6dc65407cfa16e7921e
parent091aeb8fda9c2fae4a3d8b34f29ac08726e8d326
b43: A fix for DMA transmission sequence errors

Intermittently, b43 will report "Out of order TX status report on DMA ring".
When this happens, the driver must be reset before communication can resume.
The cause of the problem is believed to be an error in the closed-source
firmware; however, all versions of the firmware are affected.

This change uses the observation that the expected status is always 2 less
than the observed value, and supplies a fake status report to skip one
header/data pair.

Not all devices suffer from this problem, but it can occur several times
per second under heavy load. As each occurence kills the unmodified driver,
this patch makes if possible for the affected devices to function. The patch
logs only the first instance of the reset operation to prevent spamming
the logs.

Tested-by: Chris Vine <chris@cvine.freeserve.co.uk>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/dma.c