]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Apr 2013 02:20:04 +0000 (03:20 +0100)
commit18698bd2d0debaea5558da85c95e4e4ca34f2bc3
treec83a4c3deb995f5aaf26791f0ef17c3cd4c38923
parentba6da1d0d003a1db67c4b3567dfde6308c75f7e5
b43: A fix for DMA transmission sequence errors

commit b251412db99ccd4495ce372fec7daee27bf06923 upstream.

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/b43/dma.c