Bcm43xx softMac Driver in 2.6.18
Subsystems (3)
When we found the cause of NETDEV watchdog timeouts in the wireless-2.6 code, I knew that the 2.6.18 release code would cause a serious regression. I immediately prepared and tested a patch to fix this; however, I was unable to get it pushed into the stable code before release of 2.6.18. The following submission text and patch has been sent to the stable maintainers, which I hope is included in 2.6.18.1.
For people having these lockups with 2.6.18, please try this patch and inform me of the results, both positive and negative. The latter are particularly important.
Larry
==================================================================
In 2.6.18, the section that prepares for preemptible periodic work has two bugs. The first is due to an improper locking sequence that leads to frozen systems. The second causes netdev watchdog timeouts. Both lead to serious regressions as compared with 2.6.17.
---
This patch, which was originally sent to John Linville on 9/14/06, has been taken against 2.6.18. It changes more lines
than would be absolutely necessary to affect the fix; however, it ends up with this section looking exactly like the current code (with pending patches) that is in wireless-2.6.
Larry
drivers/net/wireless/bcm43xx/bcm43xx_main.c +16 -18
@@ -3182,39 +3182,37 @@ static void bcm43xx_periodic_work_handle/* Periodic work will take a long time, so we want it to * be preemtible. */ -bcm43xx_lock_irqonly (bcm, flags); -netif_stop_queue (bcm->net_dev); +mutex_lock (&bcm->mutex); +netif_tx_disable (bcm->net_dev); +spin_lock_irqsave (&bcm->irq_lock, flags); +bcm43xx_mac_suspend (bcm);if (bcm43xx_using_pio (bcm))bcm43xx_pio_freeze_txqueues (bcm); savedirqs =bcm43xx_interrupt_disable (bcm, BCM43xx_IRQ_ALL); -bcm43xx_unlock_irqonly (bcm, flags); -bcm43xx_lock_noirq (bcm); +spin_unlock_irqrestore (&bcm->irq_lock, flags);bcm43xx_synchronize_irq (bcm); }else {/* Periodic work should take short time, so we want low * locking overhead. */ -bcm43xx_lock_irqsafe (bcm, flags); +mutex_lock (&bcm->mutex); +spin_lock_irqsave (&bcm->irq_lock, flags); }do_periodic_work (bcm);if (badness >BADNESS_LIMIT ) { -bcm43xx_lock_irqonly (bcm, flags); -if (likely (bcm43xx_status (bcm) == BCM43xx_STAT_INITIALIZED)) { -tasklet_enable (&bcm->isr_tasklet); -bcm43xx_interrupt_enable (bcm, savedirqs); -if (bcm43xx_using_pio (bcm)) -bcm43xx_pio_thaw_txqueues (bcm); - } +spin_lock_irqsave (&bcm->irq_lock, flags); +tasklet_enable (&bcm->isr_tasklet); +bcm43xx_interrupt_enable (bcm, savedirqs); +if (bcm43xx_using_pio (bcm)) +bcm43xx_pio_thaw_txqueues (bcm); +bcm43xx_mac_enable (bcm);netif_wake_queue (bcm->net_dev); -mmiowb (); -bcm43xx_unlock_irqonly (bcm, flags); -bcm43xx_unlock_noirq (bcm); - }else { -mmiowb (); -bcm43xx_unlock_irqsafe (bcm, flags); } +mmiowb (); +spin_unlock_irqrestore (&bcm->irq_lock, flags); +mutex_unlock (&bcm->mutex); }static void bcm43xx_periodic_tasks_delete (struct bcm43xx_private *bcm)
_______________________________________________
Bcm43xx-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev
Quoted 5 lines · Larry Finger
This patch, which was originally sent to John Linville on 9/14/06, has been taken against 2.6.18. It changes more lines
than would be absolutely necessary to affect the fix; however, it ends up with this section looking exactly like the current code (with pending patches) that is in wireless-2.6.
Sorry, but your patch doesn't apply cleanly against 2.6.18:
erik@arthur:~/git/linux-2.6 > patch -p1 --dry-run < ../bcm43xx-2.6.18.diff patching file drivers/net/wireless/bcm43xx/bcm43xx_main.c
Hunk #1 FAILED at 3182.
1 out of 1 hunk FAILED -- saving rejects to file drivers/net/wireless/bcm43xx/bcm43xx_main.c.rej
Erik
Signature · 2 lines
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 -- | Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
Quoted 7 lines · Erik Mouw
Quoted 5 lines · Larry Finger
This patch, which was originally sent to John Linville on 9/14/06, has been taken against 2.6.18. It changes more lines
than would be absolutely necessary to affect the fix; however, it ends up with this section looking exactly like the current code (with pending patches) that is in wireless-2.6.
Quoted 6 lines
Sorry, but your patch doesn't apply cleanly against 2.6.18:
erik@arthur:~/git/linux-2.6 > patch -p1 --dry-run <
../bcm43xx-2.6.18.diffpatching filedrivers/net/wireless/bcm43xx/bcm43xx_main.c
Hunk #1 FAILED at 3182.
1 out of 1 hunk FAILED -- saving rejects to filedrivers/net/wireless/bcm43xx/bcm43xx_main.c.rej
Arrrgh! My mailer messed up the white space and put spaces instead of tabs. The correct patch is attached here so it doesn't happen again. This one has been tested against a clean download of 2.6.18.
Larry
drivers/net/wireless/bcm43xx/bcm43xx_main.c +16 -18
@@ -3182,39 +3182,37 @@ static void bcm43xx_periodic_work_handle/* Periodic work will take a long time, so we want it to * be preemtible. */ -bcm43xx_lock_irqonly (bcm, flags); -netif_stop_queue (bcm->net_dev); +mutex_lock (&bcm->mutex); +netif_tx_disable (bcm->net_dev); +spin_lock_irqsave (&bcm->irq_lock, flags); +bcm43xx_mac_suspend (bcm);if (bcm43xx_using_pio (bcm))bcm43xx_pio_freeze_txqueues (bcm); savedirqs =bcm43xx_interrupt_disable (bcm, BCM43xx_IRQ_ALL); -bcm43xx_unlock_irqonly (bcm, flags); -bcm43xx_lock_noirq (bcm); +spin_unlock_irqrestore (&bcm->irq_lock, flags);bcm43xx_synchronize_irq (bcm); }else {/* Periodic work should take short time, so we want low * locking overhead. */ -bcm43xx_lock_irqsafe (bcm, flags); +mutex_lock (&bcm->mutex); +spin_lock_irqsave (&bcm->irq_lock, flags); }do_periodic_work (bcm);if (badness >BADNESS_LIMIT ) { -bcm43xx_lock_irqonly (bcm, flags); -if (likely (bcm43xx_status (bcm) == BCM43xx_STAT_INITIALIZED)) { -tasklet_enable (&bcm->isr_tasklet); -bcm43xx_interrupt_enable (bcm, savedirqs); -if (bcm43xx_using_pio (bcm)) -bcm43xx_pio_thaw_txqueues (bcm); - } +spin_lock_irqsave (&bcm->irq_lock, flags); +tasklet_enable (&bcm->isr_tasklet); +bcm43xx_interrupt_enable (bcm, savedirqs); +if (bcm43xx_using_pio (bcm)) +bcm43xx_pio_thaw_txqueues (bcm); +bcm43xx_mac_enable (bcm);netif_wake_queue (bcm->net_dev); -mmiowb (); -bcm43xx_unlock_irqonly (bcm, flags); -bcm43xx_unlock_noirq (bcm); - }else { -mmiowb (); -bcm43xx_unlock_irqsafe (bcm, flags); } +mmiowb (); +spin_unlock_irqrestore (&bcm->irq_lock, flags); +mutex_unlock (&bcm->mutex); }static void bcm43xx_periodic_tasks_delete (struct bcm43xx_private *bcm)
Quoted 2 lines · Larry Finger
When we found the cause of NETDEV watchdog timeouts in the wireless-2.6 code, I knew that the 2.6.18 release code would cause a serious regression.
I don't know if this is the lockup you're trying to address, but 2.6.18's bcm43xx has definitely regressed for me versus 2.6.17.x.
2.6.18 vanilla and 2.6.18 with your patch both lock my system hard with bcm43xx. I've got an HP/Compaq nx6125 laptop. Symptoms are that it will associate fine on its own and send traffic to/fro upon ifup, but when I do an iwconfig, ifdown, ifup to change the access point, the system locks (somewhat randomly) during one of those operations. Well, the iwconfig or the ifup, actually.
lspci -v:
02:02.0 Network controller: Broadcom Corporation BCM4309 802.11a/b/g (rev 03)
Subsystem: Hewlett-Packard Company Unknown device 12f9
Flags: bus master, fast devsel, latency 64, IRQ 11
Memory at d0010000 (32-bit, non-prefetchable) [size=8K]
./bcm43xx-fwcutter -i BCMWL5.SYS
filename : bcmwl5.sys version : 4.10.40.1 MD5 : 69f940672be0ecee5bd1e905706ba8ce
Wireless tools are Version: 28-1ubuntu2.
I've got multiple access points in view of the laptop, a g (54Mb), and a b (11Mb). Neither with encryption enabled, if that makes a difference (we live in the boonies).
It's 2.6.18 + your patch, compiled for x86_64, ubuntu devel.
Any suggestions or requests for tests?
Ray
Quoted 7 lines · Ray Lee
Quoted 2 lines · Larry Finger
When we found the cause of NETDEV watchdog timeouts in the wireless-2.6 code, I knew that the 2.6.18 release code would cause a serious regression.
I don't know if this is the lockup you're trying to address, but 2.6.18's bcm43xx has definitely regressed for me versus 2.6.17.x.
Quoted 6 lines
2.6.18 vanilla and 2.6.18 with your patch both lock my system hard with bcm43xx. I've got an HP/Compaq nx6125 laptop. Symptoms are that it will associate fine on its own and send traffic to/fro upon ifup, but when I do an iwconfig, ifdown, ifup to change the access point, the system locks (somewhat randomly) during one of those operations. Well, the iwconfig or the ifup, actually.
I have observed similar symptoms on HPC nx6325, although I haven't managed to get the adapter associate with an AP.
This is a PCI-E card so I need some additional patches to make the driver detect it, and I use the firmware cut from wl_apsta.o. The kernel is also 64-bit, 2.6.18-rc6-mm2.
lspci -v:
30:00.0 Network controller: Broadcom Corporation BCM4310 UART (rev 01)
Subsystem: Hewlett-Packard Company Unknown device 1361
Flags: bus master, fast devsel, latency 0, IRQ 10
Memory at c8000000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 2
Capabilities: [58] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
Capabilities: [d0] Express Legacy Endpoint IRQ 0
Greetings,
Rafael
Signature · 2 lines
You never change things by fighting the existing reality. R. Buckminster Fuller
Quoted 9 lines · Rafael J. Wysocki
Quoted 6 lines
2.6.18 vanilla and 2.6.18 with your patch both lock my system hard with bcm43xx. I've got an HP/Compaq nx6125 laptop. Symptoms are that it will associate fine on its own and send traffic to/fro upon ifup, but when I do an iwconfig, ifdown, ifup to change the access point, the system locks (somewhat randomly) during one of those operations. Well, the iwconfig or the ifup, actually.
I have observed similar symptoms on HPC nx6325, although I haven't managed to get the adapter associate with an AP.
Yeah, I'm having the same troubles. Carefully watching the iwconfig results showed me that only half of the time did my iwconfig eth1 essid AccessPointName actually take. (It listed the essid of the ap I told it to associate with, but then showed "Access Point: Invalid" or words to that effect, until I issued the exact same iwconfig again.)
So, try it twice, double check the iwconfig output, then try bringing up the interface. Though that seems awfully difficult to do as well (DHCP is just sending out stuff with nothing coming back).
When I switch consoles while DHCP is plaintively asking for an IP, and issue *another* iwconfig with the same essid, then it seems to kick something in the driver and DHCP immediately associates. Happened twice for me so far, though that could merely be a coincidence.
Ray
Quoted 16 lines · Ray Lee
Quoted 8 lines · Rafael J. Wysocki
Quoted 6 lines
2.6.18 vanilla and 2.6.18 with your patch both lock my system hard with bcm43xx. I've got an HP/Compaq nx6125 laptop. Symptoms are that it will associate fine on its own and send traffic to/fro upon ifup, but when I do an iwconfig, ifdown, ifup to change the access point, the system locks (somewhat randomly) during one of those operations. Well, the iwconfig or the ifup, actually.
I have observed similar symptoms on HPC nx6325, although I haven't managed to get the adapter associate with an AP.
Yeah, I'm having the same troubles. Carefully watching the iwconfig results showed me that only half of the time did my
iwconfig eth1 essid AccessPointNameactually take. (It listed the essid of the ap I told it to associate with, but then showed "Access Point: Invalid" or words to that effect, until I issued the exact same iwconfig again.)
Quoted 9 lines
So, try it twice, double check the iwconfig output, then try bringing up the interface. Though that seems awfully difficult to do as well (DHCP is just sending out stuff with nothing coming back).
When I switch consoles while DHCP is plaintively asking for an IP, and issue *another* iwconfig with the same essid, then it seems to kick something in the driver and DHCP immediately associates. Happened twice for me so far, though that could merely be a coincidence.
I don't know about the problems associating, and/or with changing APs - I have only one and it associates and authenticates with WPA-PSK without any trouble.
As to the lockups that you are seeing, I have generated a diff between vanilla 2.6.18 and wireless-2.6 with some essential patches added. At the moment, I'm compiling and testing it. There are more problems with locking than I realized. If the patch works here, I'll post it to you and to the bcm43xx list. The hard part may be getting stable to accept it for 2.6.18.1.
Thanks for the bug reports.
Larry
Ray and Rafael,
Would you please test the attached patch that should be applied to a vanilla 2.6.18? I'm currently running it, but only for a few minutes. It comes up fine and I ran it through several ifdown/ifup cycles without any problem.
I look forward to your reports.
Larry
drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c +68 -12
@@ -77,7 +77,8 @@ static ssize_t devinfo_read_file(structdown (&big_buffer_sem); -bcm43xx_lock_irqsafe (bcm, flags); +mutex_lock (&bcm->mutex); +spin_lock_irqsave (&bcm->irq_lock, flags);if (bcm43xx_status (bcm) != BCM43xx_STAT_INITIALIZED) {fappend ("Board not initialized.\n" ); goto out;
@@ -121,7 +122,8 @@ static ssize_t devinfo_read_file(structfappend ("\n" ); out: -bcm43xx_unlock_irqsafe (bcm, flags); +spin_unlock_irqrestore (&bcm->irq_lock, flags); +mutex_unlock (&bcm->mutex); res =simple_read_from_buffer (userbuf, count, ppos, buf, pos);up (&big_buffer_sem);return res;
@@ -159,7 +161,8 @@ static ssize_t spromdump_read_file(strucunsigned long flags;down (&big_buffer_sem); -bcm43xx_lock_irqsafe (bcm, flags); +mutex_lock (&bcm->mutex); +spin_lock_irqsave (&bcm->irq_lock, flags);if (bcm43xx_status (bcm) != BCM43xx_STAT_INITIALIZED) {fappend ("Board not initialized.\n" ); goto out;
@@ -169,7 +172,8 @@ static ssize_t spromdump_read_file(strucfappend ("boardflags: 0x%04x\n" , bcm->sprom.boardflags); out: -bcm43xx_unlock_irqsafe (bcm, flags); +spin_unlock_irqrestore (&bcm->irq_lock, flags); +mutex_unlock (&bcm->mutex); res =simple_read_from_buffer (userbuf, count, ppos, buf, pos);up (&big_buffer_sem);return res;
@@ -188,7 +192,8 @@ static ssize_t tsf_read_file(struct fileu64 tsf;down (&big_buffer_sem); -bcm43xx_lock_irqsafe (bcm, flags); +mutex_lock (&bcm->mutex); +spin_lock_irqsave (&bcm->irq_lock, flags);if (bcm43xx_status (bcm) != BCM43xx_STAT_INITIALIZED) {fappend ("Board not initialized.\n" ); goto out;
@@ -199,7 +204,8 @@ static ssize_t tsf_read_file(struct file (unsigned int)(tsf & 0xFFFFFFFFULL)); out: -bcm43xx_unlock_irqsafe (bcm, flags); +spin_unlock_irqrestore (&bcm->irq_lock, flags); +mutex_unlock (&bcm->mutex); res =simple_read_from_buffer (userbuf, count, ppos, buf, pos);up (&big_buffer_sem);return res;
@@ -221,7 +227,8 @@ static ssize_t tsf_write_file(struct fil res = -EFAULT ; goto out_up; } -bcm43xx_lock_irqsafe (bcm, flags); +mutex_lock (&bcm->mutex); +spin_lock_irqsave (&bcm->irq_lock, flags);if (bcm43xx_status (bcm) != BCM43xx_STAT_INITIALIZED) { printk(KERN_INFO PFX "debugfs: Board not initialized.\n"); res = -EFAULT ;
@@ -237,7 +244,8 @@ static ssize_t tsf_write_file(struct fil res = buf_size; out_unlock: -bcm43xx_unlock_irqsafe (bcm, flags); +spin_unlock_irqrestore (&bcm->irq_lock, flags); +mutex_unlock (&bcm->mutex); out_up:up (&big_buffer_sem);return res;
@@ -258,7 +266,8 @@ static ssize_t txstat_read_file(struct fint i, cnt, j =0 ;down (&big_buffer_sem); -bcm43xx_lock_irqsafe (bcm, flags); +mutex_lock (&bcm->mutex); +spin_lock_irqsave (&bcm->irq_lock, flags);fappend ("Last %d logged xmitstatus blobs (Latest first):\n\n" , BCM43xx_NR_LOGGED_XMITSTATUS);
@@ -294,14 +303,51 @@ static ssize_t txstat_read_file(struct f i = BCM43xx_NR_LOGGED_XMITSTATUS -1 ; } -bcm43xx_unlock_irqsafe (bcm, flags); +spin_unlock_irqrestore (&bcm->irq_lock, flags); res =simple_read_from_buffer (userbuf, count, ppos, buf, pos); -bcm43xx_lock_irqsafe (bcm, flags); +spin_lock_irqsave (&bcm->irq_lock, flags);if (*ppos == pos) {/* Done. Drop the copied data. */ e->xmitstatus_printing =0 ; } -bcm43xx_unlock_irqsafe (bcm, flags); +spin_unlock_irqrestore (&bcm->irq_lock, flags); +mutex_unlock (&bcm->mutex); +up (&big_buffer_sem); +return res; +} + +static ssize_t restart_write_file (struct file *file,const char __user *user_buf, +size_t count,loff_t *ppos) +{ +struct bcm43xx_private *bcm = file->private_data; +char *buf = really_big_buffer; +ssize_t buf_size; +ssize_t res; +unsigned long flags; + + buf_size =min (count,sizeof (really_big_buffer) -1 ); +down (&big_buffer_sem); +if (copy_from_user (buf, user_buf, buf_size)) { + res = -EFAULT ; + goto out_up; + } +mutex_lock (&(bcm)->mutex); +spin_lock_irqsave (&(bcm)->irq_lock, flags); +if (bcm43xx_status (bcm) != BCM43xx_STAT_INITIALIZED) { + printk(KERN_INFO PFX "debugfs: Board not initialized.\n"); + res = -EFAULT ; + goto out_unlock; + } +if (count >0 && buf[0 ] =='1' ) { +bcm43xx_controller_restart (bcm,"manually restarted" ); + res = count; + }else + res = -EINVAL ; + +out_unlock: +spin_unlock_irqrestore (&(bcm)->irq_lock, flags); +mutex_unlock (&(bcm)->mutex); +out_up:up (&big_buffer_sem);return res; }
@@ -339,6 +385,11 @@ static struct file_operations txstat_fop .open = open_file_generic, }; +static struct file_operations restart_fops = { + .write = restart_write_file, + .open = open_file_generic, +}; +void bcm43xx_debugfs_add_device (struct bcm43xx_private *bcm) {
@@ -390,6 +441,10 @@ void bcm43xx_debugfs_add_device(struct b bcm, &txstat_fops);if (!e->dentry_txstat) printk(KERN_ERR PFX "debugfs: creating \"tx_status\" for \"%s\" failed!\n", devdir); + e->dentry_restart =debugfs_create_file ("restart" ,0222 , e->subdir, + bcm, &restart_fops); +if (!e->dentry_restart) + printk(KERN_ERR PFX "debugfs: creating \"restart\" for \"%s\" failed!\n", devdir); }void bcm43xx_debugfs_remove_device (struct bcm43xx_private *bcm)
@@ -405,6 +460,7 @@ void bcm43xx_debugfs_remove_device(strucdebugfs_remove (e->dentry_devinfo);debugfs_remove (e->dentry_tsf);debugfs_remove (e->dentry_txstat); +debugfs_remove (e->dentry_restart);debugfs_remove (e->subdir);kfree (e->xmitstatus_buffer);kfree (e->xmitstatus_print_buffer);
drivers/net/wireless/bcm43xx/bcm43xx_debugfs.h +1 -0
@@ -20,6 +20,7 @@ struct bcm43xx_dfsentry {struct dentry *dentry_spromdump;struct dentry *dentry_tsf;struct dentry *dentry_txstat; +struct dentry *dentry_restart;struct bcm43xx_private *bcm;
drivers/net/wireless/bcm43xx/bcm43xx_dma.c +386 -197
938 lines not on this page · raw message
drivers/net/wireless/bcm43xx/bcm43xx_dma.h +219 -77
361 lines not on this page · raw message
drivers/net/wireless/bcm43xx/bcm43xx.h +90 -91
300 lines not on this page · raw message
drivers/net/wireless/bcm43xx/bcm43xx_leds.c +8 -2
@@ -51,12 +51,12 @@ static void bcm43xx_led_blink(unsigned lstruct bcm43xx_private *bcm = led->bcm;unsigned long flags; -bcm43xx_lock_irqonly (bcm, flags); +spin_lock_irqsave (&bcm->leds_lock, flags);if (led->blink_interval) {bcm43xx_led_changestate (led);mod_timer (&led->blink_timer, jiffies + led->blink_interval); } -bcm43xx_unlock_irqonly (bcm, flags); +spin_unlock_irqrestore (&bcm->leds_lock, flags); } static void bcm43xx_led_blink_start(struct bcm43xx_led *led,
@@ -177,7 +177,9 @@ void bcm43xx_leds_update(struct bcm43xx_int i, turn_on;unsigned long interval =0 ;u16 ledctl; +unsigned long flags; +spin_lock_irqsave (&bcm->leds_lock, flags); ledctl =bcm43xx_read16 (bcm, BCM43xx_MMIO_GPIO_CONTROL);for (i =0 ; i < BCM43xx_NR_LEDS; i++) { led = &(bcm->leds[i]);
@@ -266,6 +268,7 @@ void bcm43xx_leds_update(struct bcm43xx_ ledctl &= ~(1 << i); }bcm43xx_write16 (bcm, BCM43xx_MMIO_GPIO_CONTROL, ledctl); +spin_unlock_irqrestore (&bcm->leds_lock, flags); }void bcm43xx_leds_switch_all (struct bcm43xx_private *bcm,int on)
@@ -274,7 +277,9 @@ void bcm43xx_leds_switch_all(struct bcm4u16 ledctl;int i;int bit_on; +unsigned long flags; +spin_lock_irqsave (&bcm->leds_lock, flags); ledctl =bcm43xx_read16 (bcm, BCM43xx_MMIO_GPIO_CONTROL);for (i =0 ; i < BCM43xx_NR_LEDS; i++) { led = &(bcm->leds[i]);
@@ -290,4 +295,5 @@ void bcm43xx_leds_switch_all(struct bcm4 ledctl &= ~(1 << i); }bcm43xx_write16 (bcm, BCM43xx_MMIO_GPIO_CONTROL, ledctl); +spin_unlock_irqrestore (&bcm->leds_lock, flags); }
drivers/net/wireless/bcm43xx/bcm43xx_main.c +529 -376
1,187 lines not on this page · raw message
drivers/net/wireless/bcm43xx/bcm43xx_main.h +6 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/bcm43xx/bcm43xx_phy.c +25 -23
48 lines not on this page · raw message
drivers/net/wireless/bcm43xx/bcm43xx_pio.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/bcm43xx/bcm43xx_sysfs.c +25 -21
46 lines not on this page · raw message
drivers/net/wireless/bcm43xx/bcm43xx_wx.c +67 -54
121 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
_______________________________________________
Bcm43xx-dev mailing list [email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev
Part of the diff is not shown here. View the raw message.
(re-adding linux-kernel.)
Quoted 4 lines · Larry Finger
Would you please test the attached patch that should be applied to a vanilla 2.6.18? I'm currently running it, but only for a few minutes. It comes up fine and I ran it through several ifdown/ifup cycles without any problem.
Okay, this is far better than vanilla 2.6.18 (or your other patch). I've been running this for six hours so far with no troubles, when before I'd have a hard system freeze within a minute or two of associating (or trying to associate) with an access point.
As for -stable, the patch is sorta, y'know, ginormous:
bcm43xx.h | 181 +++++----- bcm43xx_debugfs.c | 80 ++++ bcm43xx_debugfs.h | 1 bcm43xx_dma.c | 583 +++++++++++++++++++++++----------- bcm43xx_dma.h | 296 +++++++++++++---- bcm43xx_leds.c | 10 bcm43xx_main.c | 905 +++++++++++++++++++++++++++++++----------------------- bcm43xx_main.h | 6 bcm43xx_phy.c | 48 +- bcm43xx_pio.c | 4 bcm43xx_sysfs.c | 46 +- bcm43xx_wx.c | 121 +++---- 12 files changed, 1426 insertions(+), 855 deletions(-)
OTOH, the current version is completely unusable on this system, so I don't know if the right path is to revert the driver to 2.6.17's version, or to try to move forward with the patch when it's had hard review and testing.
I'm heading out on vacation for the next two weeks. I'll catch up with any mail directed to me for more things to try (or report about this specific system), if requested, when I get back. (Or catch me today.)
Thank you very much for your help,
Ray