* Recent results with BCM4312 on Netbook
@ 2010-06-22 15:36 Larry Finger
2010-06-22 16:31 ` Michael Büsch
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Larry Finger @ 2010-06-22 15:36 UTC (permalink / raw)
To: Michael Buesch; +Cc: b43-dev, wireless, John Linville
Michael,
I have some good news. The Netbook that came from John is suddenly
developing DMA errors for the BCM4312, even though it does not have a
Phoenix BIOS. I have no idea why it did not fail this way earlier, but at
least I have a machine to debug that failure.
My first discovery is that if PIO mode is to be used, it is not sufficient
to load the module with the "pio=1" option, but that both "qos=0" and
"nohwcrypt=1" options must also be used, at least for WPA/WPA2 networks.
No other combination works. In addition, the automatic failover to PIO
mode does not work unless those two options were used when the module was
loaded. Thus both of the following work:
modprobe b43 pio=1 qos=0 nohwcrypt=1
modprobe b43 qos=0 hwcrypt=1
The second example gets a fatal DMA error and resets the controller before
the network comes up. I tried setting the latter two options before the
controller reset call in the failover, but that did not work.
If you have suggestions on changes in the switch from DMA to PIO mode,
please send them to me. In the meantime, I will be looking at differences
in the MMIO traces between wl and b43 to try to fix the DMA problem at the
source of the trouble.
Larry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Recent results with BCM4312 on Netbook
2010-06-22 15:36 Recent results with BCM4312 on Netbook Larry Finger
@ 2010-06-22 16:31 ` Michael Büsch
2010-06-22 18:10 ` William Bourque
2010-06-22 22:47 ` Gábor Stefanik
2 siblings, 0 replies; 7+ messages in thread
From: Michael Büsch @ 2010-06-22 16:31 UTC (permalink / raw)
To: Larry Finger; +Cc: b43-dev, wireless, John Linville
On 06/22/2010 05:36 PM, Larry Finger wrote:
> My first discovery is that if PIO mode is to be used, it is not sufficient
> to load the module with the "pio=1" option, but that both "qos=0" and
> "nohwcrypt=1" options must also be used, at least for WPA/WPA2 networks.
That is known. I posted it once or twice. It is b43 making bad
assumptions about mac80211 behavior. And mac80211 behavior changed...
b43 does modify the number of queues in the data structure after it
registered things to mac80211. That used to work properly in the past.
But it breaks now. The init does have to be re-ordered and implementation
of async firmware loading is required to fix that.
> No other combination works. In addition, the automatic failover to PIO
> mode does not work unless those two options were used when the module was
> loaded. Thus both of the following work:
It only works by accident anyway. But I already said that several times.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Recent results with BCM4312 on Netbook
2010-06-22 15:36 Recent results with BCM4312 on Netbook Larry Finger
2010-06-22 16:31 ` Michael Büsch
@ 2010-06-22 18:10 ` William Bourque
2010-06-22 18:29 ` Larry Finger
2010-06-22 22:47 ` Gábor Stefanik
2 siblings, 1 reply; 7+ messages in thread
From: William Bourque @ 2010-06-22 18:10 UTC (permalink / raw)
To: b43-dev
> My first discovery is that if PIO mode is to be used, it is not sufficient
> to load the module with the "pio=1" option, but that both "qos=0" and
> "nohwcrypt=1" options must also be used, at least for WPA/WPA2 networks.
> No other combination works. In addition, the automatic failover to PIO
> mode does not work unless those two options were used when the module was
> loaded. Thus both of the following work:
>
> modprobe b43 pio=1 qos=0 nohwcrypt=1
> modprobe b43 qos=0 hwcrypt=1
Interresting information.
Using "qos=0" and "nohwcrypt=1" effectively fixes the problem I had to
connect to some access points. I could test it for two AP I knew to be
wrong and I am now able to connect.
The strange part is that I was having a similar problem with broadcom
proprietary driver, it is possible that the misbehave of b43 was messing
up something in a way that even wl wasn't able to operate then? All
modules were unloaded before trying, but I didn't bother to cold reboot
the notebook.
It is also a bit weird that the problem was only on some AP.
Thank you
- William
^ permalink raw reply [flat|nested] 7+ messages in thread
* Recent results with BCM4312 on Netbook
2010-06-22 18:10 ` William Bourque
@ 2010-06-22 18:29 ` Larry Finger
0 siblings, 0 replies; 7+ messages in thread
From: Larry Finger @ 2010-06-22 18:29 UTC (permalink / raw)
To: b43-dev
On 06/22/2010 01:10 PM, William Bourque wrote:
>
> Interresting information.
>
> Using "qos=0" and "nohwcrypt=1" effectively fixes the problem I had to
> connect to some access points. I could test it for two AP I knew to be
> wrong and I am now able to connect.
>
> The strange part is that I was having a similar problem with broadcom
> proprietary driver, it is possible that the misbehave of b43 was messing
> up something in a way that even wl wasn't able to operate then? All
> modules were unloaded before trying, but I didn't bother to cold reboot
> the notebook.
> It is also a bit weird that the problem was only on some AP.
I had the problem with both my APs. One is a Netgear 802.11n router
running the vendor's firmware with WPA2 encryption, and the other is a
Linksys running openWRT with WPA encryption.
The hardware encryption option might not be needed for WEP, but I have not
tested.
I cannot connect with wl on my machine. In fact, it cannot even scan, but
I'm only interested in its initialization.
Larry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Recent results with BCM4312 on Netbook
2010-06-22 15:36 Recent results with BCM4312 on Netbook Larry Finger
2010-06-22 16:31 ` Michael Büsch
2010-06-22 18:10 ` William Bourque
@ 2010-06-22 22:47 ` Gábor Stefanik
2010-06-23 12:42 ` Michael Büsch
2 siblings, 1 reply; 7+ messages in thread
From: Gábor Stefanik @ 2010-06-22 22:47 UTC (permalink / raw)
To: Larry Finger; +Cc: Michael Buesch, wireless, b43-dev
On Tue, Jun 22, 2010 at 5:36 PM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> Michael,
>
> I have some good news. The Netbook that came from John is suddenly
> developing DMA errors for the BCM4312, even though it does not have a
> Phoenix BIOS. I have no idea why it did not fail this way earlier, but at
> least I have a machine to debug that failure.
Suddenly developing DMA errors? Hmm... maybe it's a hardware issue
with the card, from which wl can silently recover?
>
> My first discovery is that if PIO mode is to be used, it is not sufficient
> to load the module with the "pio=1" option, but that both "qos=0" and
> "nohwcrypt=1" options must also be used, at least for WPA/WPA2 networks.
> No other combination works. In addition, the automatic failover to PIO
> mode does not work unless those two options were used when the module was
> loaded. Thus both of the following work:
>
> modprobe b43 pio=1 qos=0 nohwcrypt=1
> modprobe b43 qos=0 hwcrypt=1
>
> The second example gets a fatal DMA error and resets the controller before
> the network comes up. I tried setting the latter two options before the
> controller reset call in the failover, but that did not work.
>
> If you have suggestions on changes in the switch from DMA to PIO mode,
> please send them to me. In the meantime, I will be looking at differences
> in the MMIO traces between wl and b43 to try to fix the DMA problem at the
> source of the trouble.
>
> Larry
>
> _______________________________________________
> b43-dev mailing list
> b43-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/b43-dev
>
--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Recent results with BCM4312 on Netbook
2010-06-22 22:47 ` Gábor Stefanik
@ 2010-06-23 12:42 ` Michael Büsch
2010-06-23 20:49 ` Larry Finger
0 siblings, 1 reply; 7+ messages in thread
From: Michael Büsch @ 2010-06-23 12:42 UTC (permalink / raw)
To: Larry Finger; +Cc: Gábor Stefanik, wireless, b43-dev
Please note that there were some rewrites recently in the kernel
DMA subsystem. b43 does now use the generic DMA interface, which
should work on all busses. I would not rule out an error in
that area, though it's unlikely.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Recent results with BCM4312 on Netbook
2010-06-23 12:42 ` Michael Büsch
@ 2010-06-23 20:49 ` Larry Finger
0 siblings, 0 replies; 7+ messages in thread
From: Larry Finger @ 2010-06-23 20:49 UTC (permalink / raw)
To: Michael Büsch; +Cc: Gábor Stefanik, wireless, b43-dev
On 06/23/2010 07:42 AM, Michael B?sch wrote:
> Please note that there were some rewrites recently in the kernel
> DMA subsystem. b43 does now use the generic DMA interface, which
> should work on all busses. I would not rule out an error in
> that area, though it's unlikely.
I don't think that is a problem. None of my other 3 systems developed an
error with that change. In addition, the Netbook started working as
mysteriously as it had failed earlier. I just love intermittent cases. ;-)
Larry
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-06-23 20:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-22 15:36 Recent results with BCM4312 on Netbook Larry Finger
2010-06-22 16:31 ` Michael Büsch
2010-06-22 18:10 ` William Bourque
2010-06-22 18:29 ` Larry Finger
2010-06-22 22:47 ` Gábor Stefanik
2010-06-23 12:42 ` Michael Büsch
2010-06-23 20:49 ` Larry Finger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).