Skip to contentSkip to conversation

Recent results with BCM4312 on Netbook

DISCUSSION Larry Finger 4 participants 7 messages Jun 22, 2010 – Jun 23, 2010

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 3 lines · Larry Finger

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.

Quoted 3 lines

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.

Signature · 1 line
Greetings Michael.
#2 lore raw
In reply to Larry Finger
Quoted 10 lines

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:

Quoted 2 lines

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

#3 lore raw
Quoted 7 lines · William Bourque

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.

Quoted 6 lines

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

#4 lore raw
In reply to Larry Finger
Quoted 6 lines · Larry Finger

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?

Quoted 27 lines

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

Signature · 1 line
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
#5 lore raw

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.

Signature · 1 line
Greetings Michael.
#6 lore raw
Quoted 4 lines · Michael Büsch

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