Fatal DMA error problem with netbook and BCM4312 - another test

2009-12-19 Thread Larry Finger
Hi,

If possible, please test this patch starting from a cold boot. It is a
variation of something we tried earlier, but enough different to try it.

Thanks,

Larry

In exploring the cause of DMA errors for BCM4312 devices on Atom
processors, other drivers that work write to PCI configuration
register 0x40. The code fragment below was found in the open-code
portion of the Broadcom hybrid wl driver. It is also used in the
ipw2100 and ath9k drivers. In the latter case, it had been removed
and later restored to prevent fatal interrupt errors.

Signed-off-by: Larry Finger larry.fin...@lwfinger.net
---

Index: wireless-testing/drivers/net/wireless/b43/main.c
===
--- wireless-testing.orig/drivers/net/wireless/b43/main.c
+++ wireless-testing/drivers/net/wireless/b43/main.c
@@ -4292,6 +4292,15 @@ static int b43_wireless_core_init(struct
setup_struct_wldev_for_init(dev);
phy-ops-prepare_structs(dev);
 
+   /* We disable the RETRY_TIMEOUT register (0x41) to keep
+* PCI Tx retries from interfering with C3 CPU state
+* This code fragment found in the Broadcom hybrid wl driver
+*/
+   pci_read_config_dword(bus-host_pci, 0x40, tmp);
+   if ((tmp  0xff00) != 0)
+   pci_write_config_dword(bus-host_pci, 0x40, tmp 
+  ~(0xff00));
+
/* Enable IRQ routing to this device. */
ssb_pcicore_dev_irqvecs_enable(bus-pcicore, dev-dev);
 
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: Fatal DMA error problem with netbook and BCM4312 - another test

2009-12-19 Thread Chris Vine
On Sat, 19 Dec 2009 10:43:29 -0600
Larry Finger larry.fin...@lwfinger.net wrote:
 Hi,
 
 If possible, please test this patch starting from a cold boot. It is a
 variation of something we tried earlier, but enough different to try
 it.
 
 Thanks,
 
 Larry

I applied this to 2.6.32.2 and it didn't help with the DMA errors I am
afraid.

Chris
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: Fatal DMA error problem with netbook and BCM4312 - another test

2009-12-19 Thread Andrew Benton
On 19/12/09 19:55, Chris Vine wrote:
 On Sat, 19 Dec 2009 10:43:29 -0600
 Larry Fingerlarry.fin...@lwfinger.net  wrote:
 Hi,

 If possible, please test this patch starting from a cold boot. It is a
 variation of something we tried earlier, but enough different to try
 it.

 Thanks,

 Larry

 I applied this to 2.6.32.2 and it didn't help with the DMA errors I am
 afraid.

 Chris


Same here, the patch didn't prevent the DMA errors, however, I did 
notice that it only reported the error once, it didn't keep trying to 
reload the firmware.

Andy
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: Fatal DMA error problem with netbook and BCM4312 - another test

2009-12-19 Thread Larry Finger
On 12/19/2009 05:11 PM, Andrew Benton wrote:
 On 19/12/09 19:55, Chris Vine wrote:

 I applied this to 2.6.32.2 and it didn't help with the DMA errors I am
 afraid.

 Chris

 
 Same here, the patch didn't prevent the DMA errors, however, I did 
 notice that it only reported the error once, it didn't keep trying to 
 reload the firmware.

The change that bails out after one fatal DMA error is a separate one.
As there is no chance of recovering, we decided not to spam the logs.

Thanks for testing. I had little expectation, but this one may be
needed in conjunction with something else. Back to the grindstone.

Larry
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: Fatal DMA error problem with netbook and BCM4312 - another test

2009-12-19 Thread William Bourque


Larry Finger wrote:
 Hi,
 
 If possible, please test this patch starting from a cold boot. It is a
 variation of something we tried earlier, but enough different to try it.
 
 Thanks,
 
 Larry
 

A little late but I just tested and I have the same bug.
However, unlike Andrew, the error keep repeating as before...

- William
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: Fatal DMA error problem with netbook and BCM4312 - another test

2009-12-19 Thread Larry Finger
On 12/19/2009 10:15 PM, William Bourque wrote:
 
 
 Larry Finger wrote:
 Hi,

 If possible, please test this patch starting from a cold boot. It is a
 variation of something we tried earlier, but enough different to try it.

 Thanks,

 Larry

 
 A little late but I just tested and I have the same bug.
 However, unlike Andrew, the error keep repeating as before...

He is using wireless-testing or a recent mainline kernel. That is
where the change I described is installed.

Larry
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev