* hang with pcmcia wlan card @ 2003-07-11 16:20 Jaakko Niemi 2003-07-12 16:22 ` Jaakko Niemi 0 siblings, 1 reply; 13+ messages in thread From: Jaakko Niemi @ 2003-07-11 16:20 UTC (permalink / raw) To: linux-kernel Hi, My laptop (thinkpad 570e) hangs hard straight after bringing up interface with d-link dwl-650 wlan card. 2.5.73-bk1 works and 2.5.73-bk2 to 2.5.75-bk1 hang. If I boot without the card, everything comes up, but inserting the card results to a hang. Setting nmi_watchdog=2 has no effect. So, what to try next? --j ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-11 16:20 hang with pcmcia wlan card Jaakko Niemi @ 2003-07-12 16:22 ` Jaakko Niemi 2003-07-12 16:30 ` Russell King 0 siblings, 1 reply; 13+ messages in thread From: Jaakko Niemi @ 2003-07-12 16:22 UTC (permalink / raw) To: linux-kernel > Hi, > >My laptop (thinkpad 570e) hangs hard straight after bringing up >interface with d-link dwl-650 wlan card. 2.5.73-bk1 works and >2.5.73-bk2 to 2.5.75-bk1 hang. If I boot without the card, >everything comes up, but inserting the card results to a hang. >Setting nmi_watchdog=2 has no effect. Ok, bit more info: same thing happens with edimax 8139 based cardbus nic also. I've disabled apm and acpi from kernel and going to start going through the pci changes between 2.5.73-bk1 and bk2. Any clues would be much appreciated. --j ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-12 16:22 ` Jaakko Niemi @ 2003-07-12 16:30 ` Russell King 2003-07-12 16:48 ` Wiktor Wodecki 0 siblings, 1 reply; 13+ messages in thread From: Russell King @ 2003-07-12 16:30 UTC (permalink / raw) To: Jaakko Niemi; +Cc: linux-kernel On Sat, Jul 12, 2003 at 07:22:53PM +0300, Jaakko Niemi wrote: > > > Hi, > > > >My laptop (thinkpad 570e) hangs hard straight after bringing up > >interface with d-link dwl-650 wlan card. 2.5.73-bk1 works and > >2.5.73-bk2 to 2.5.75-bk1 hang. If I boot without the card, > >everything comes up, but inserting the card results to a hang. > >Setting nmi_watchdog=2 has no effect. > > Ok, bit more info: same thing happens with edimax 8139 based > cardbus nic also. I've disabled apm and acpi from kernel > and going to start going through the pci changes between > 2.5.73-bk1 and bk2. Any clues would be much appreciated. Its a hotplug/netdevice interaction, and it happens for many hotpluggable network devices, whether they be NE2K cards, wireless cards or whatever. AFAICS, it isn't a PCMCIA nor cardbus problem. -- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-12 16:30 ` Russell King @ 2003-07-12 16:48 ` Wiktor Wodecki 2003-07-12 17:30 ` Jaakko Niemi 2003-07-13 8:46 ` Alan Cox 0 siblings, 2 replies; 13+ messages in thread From: Wiktor Wodecki @ 2003-07-12 16:48 UTC (permalink / raw) To: Jaakko Niemi, linux-kernel [-- Attachment #1: Type: text/plain, Size: 2671 bytes --] well, at least it is this changeset for me (same problem) > --- linux-2.5.73-bk1/drivers/pcmcia/ti113x.h 2003-06-22 > 11:32:41.000000000 -0700 > +++ linux-2.5.73-bk2/drivers/pcmcia/ti113x.h 2003-06-24 > 13:06:59.000000000 -0700 > @@ -175,6 +175,27 @@ > new = reg & ~I365_INTR_ENA; > if (new != reg) > exca_writeb(socket, I365_INTCTL, new); > + > + /* > + * If ISA interrupts don't work, then fall back to routing card > + * interrupts to the PCI interrupt of the socket. > + */ > + if (!socket->socket.irq_mask) { > + int irqmux, devctl; > + > + printk (KERN_INFO "ti113x: Routing card interrupts to > PCI\n"); > + > + devctl = config_readb(socket, TI113X_DEVICE_CONTROL); > + devctl &= ~TI113X_DCR_IMODE_MASK; > + > + irqmux = config_readl(socket, TI122X_IRQMUX); > + irqmux = (irqmux & ~0x0f) | 0x02; /* route INTA */ > + irqmux = (irqmux & ~0xf0) | 0x20; /* route INTB */ > + > + config_writel(socket, TI122X_IRQMUX, irqmux); > + config_writeb(socket, TI113X_DEVICE_CONTROL, devctl); > + } > + > socket->socket.ss_entry->init = ti_init; > return 0; > } On Sat, Jul 12, 2003 at 05:30:39PM +0100, Russell King wrote: > On Sat, Jul 12, 2003 at 07:22:53PM +0300, Jaakko Niemi wrote: > > > > > Hi, > > > > > >My laptop (thinkpad 570e) hangs hard straight after bringing up > > >interface with d-link dwl-650 wlan card. 2.5.73-bk1 works and > > >2.5.73-bk2 to 2.5.75-bk1 hang. If I boot without the card, > > >everything comes up, but inserting the card results to a hang. > > >Setting nmi_watchdog=2 has no effect. > > > > Ok, bit more info: same thing happens with edimax 8139 based > > cardbus nic also. I've disabled apm and acpi from kernel > > and going to start going through the pci changes between > > 2.5.73-bk1 and bk2. Any clues would be much appreciated. > > Its a hotplug/netdevice interaction, and it happens for many hotpluggable > network devices, whether they be NE2K cards, wireless cards or whatever. > > AFAICS, it isn't a PCMCIA nor cardbus problem. > > -- > Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux > http://www.arm.linux.org.uk/personal/aboutme.html > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- Regards, Wiktor Wodecki [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-12 16:48 ` Wiktor Wodecki @ 2003-07-12 17:30 ` Jaakko Niemi 2003-07-13 8:46 ` Alan Cox 1 sibling, 0 replies; 13+ messages in thread From: Jaakko Niemi @ 2003-07-12 17:30 UTC (permalink / raw) To: linux-kernel Wiktor Wodecki <wodecki@gmx.de> writes: > well, at least it is this changeset for me (same problem) > >> --- linux-2.5.73-bk1/drivers/pcmcia/ti113x.h 2003-06-22 11:32:41.000000000 -0700 >> +++ linux-2.5.73-bk2/drivers/pcmcia/ti113x.h 2003-06-24 13:06:59.000000000 -0700 Yes, confirmed. Backing off this makes things work again. --j ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-12 16:48 ` Wiktor Wodecki 2003-07-12 17:30 ` Jaakko Niemi @ 2003-07-13 8:46 ` Alan Cox 2003-07-13 9:50 ` Jaakko Niemi 1 sibling, 1 reply; 13+ messages in thread From: Alan Cox @ 2003-07-13 8:46 UTC (permalink / raw) To: Wiktor Wodecki; +Cc: Jaakko Niemi, Linux Kernel Mailing List On Sad, 2003-07-12 at 17:48, Wiktor Wodecki wrote: > > + * If ISA interrupts don't work, then fall back to routing card > > + * interrupts to the PCI interrupt of the socket. > > + */ > > + if (!socket->socket.irq_mask) { > > + int irqmux, devctl; > > + See the fix posted to the list a while ago and apply that and all should be well. The change you refer to breaks for some setups ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-13 8:46 ` Alan Cox @ 2003-07-13 9:50 ` Jaakko Niemi 2003-07-13 10:00 ` Russell King 0 siblings, 1 reply; 13+ messages in thread From: Jaakko Niemi @ 2003-07-13 9:50 UTC (permalink / raw) To: Alan Cox; +Cc: Wiktor Wodecki, Linux Kernel Mailing List Alan Cox <alan@lxorguk.ukuu.org.uk> writes: > On Sad, 2003-07-12 at 17:48, Wiktor Wodecki wrote: >> > + * If ISA interrupts don't work, then fall back to routing card >> > + * interrupts to the PCI interrupt of the socket. >> > + */ >> > + if (!socket->socket.irq_mask) { >> > + int irqmux, devctl; >> > + > > See the fix posted to the list a while ago and apply that and all should > be well. The change you refer to breaks for some setups Was the fix against drivers/pcmcia/ti113x.h ? (other than backing off that patch..). If so, then I'm unable to locate it. Looks like I need local lkml archive anyway :) --j ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-13 9:50 ` Jaakko Niemi @ 2003-07-13 10:00 ` Russell King 2003-07-13 10:48 ` Jaakko Niemi 2003-07-13 11:02 ` Wiktor Wodecki 0 siblings, 2 replies; 13+ messages in thread From: Russell King @ 2003-07-13 10:00 UTC (permalink / raw) To: Jaakko Niemi; +Cc: Alan Cox, Wiktor Wodecki, Linux Kernel Mailing List On Sun, Jul 13, 2003 at 12:50:33PM +0300, Jaakko Niemi wrote: > Alan Cox <alan@lxorguk.ukuu.org.uk> writes: > > On Sad, 2003-07-12 at 17:48, Wiktor Wodecki wrote: > >> > + * If ISA interrupts don't work, then fall back to routing card > >> > + * interrupts to the PCI interrupt of the socket. > >> > + */ > >> > + if (!socket->socket.irq_mask) { > >> > + int irqmux, devctl; > >> > + > > > > See the fix posted to the list a while ago and apply that and all should > > be well. The change you refer to breaks for some setups > > Was the fix against drivers/pcmcia/ti113x.h ? (other than backing off > that patch..). If so, then I'm unable to locate it. Looks like I need > local lkml archive anyway :) The patch never went anywhere near lkml. It was sent to Pat Mochel primerily for testing (since Pat was able to produce the feedback last time around to solve the problem.) However, I haven't heard back from Pat. I won't even bother putting this into my bk tree and asking Linus to pull; I'm sure someone else will integrate this into the kernel tree for me. (as happened previously, and as a result I need to sort out my bk tree.) --- orig/drivers/pcmcia/ti113x.h Wed Jul 2 22:44:06 2003 +++ linux/drivers/pcmcia/ti113x.h Sun Jul 6 22:52:41 2003 @@ -179,21 +179,26 @@ /* * If ISA interrupts don't work, then fall back to routing card * interrupts to the PCI interrupt of the socket. + * + * Tweaking this when we are using serial PCI IRQs causes hangs + * --rmk */ if (!socket->socket.irq_mask) { - int irqmux, devctl; - - printk (KERN_INFO "ti113x: Routing card interrupts to PCI\n"); + u8 irqmux, devctl; devctl = config_readb(socket, TI113X_DEVICE_CONTROL); - devctl &= ~TI113X_DCR_IMODE_MASK; + if (devctl & TI113X_DCR_IMODE_MASK != TI12XX_DCR_IMODE_ALL_SERIAL) { + printk (KERN_INFO "ti113x: Routing card interrupts to PCI\n"); + + devctl &= ~TI113X_DCR_IMODE_MASK; - irqmux = config_readl(socket, TI122X_IRQMUX); - irqmux = (irqmux & ~0x0f) | 0x02; /* route INTA */ - irqmux = (irqmux & ~0xf0) | 0x20; /* route INTB */ + irqmux = config_readl(socket, TI122X_IRQMUX); + irqmux = (irqmux & ~0x0f) | 0x02; /* route INTA */ + irqmux = (irqmux & ~0xf0) | 0x20; /* route INTB */ - config_writel(socket, TI122X_IRQMUX, irqmux); - config_writeb(socket, TI113X_DEVICE_CONTROL, devctl); + config_writel(socket, TI122X_IRQMUX, irqmux); + config_writeb(socket, TI113X_DEVICE_CONTROL, devctl); + } } socket->socket.ss_entry->init = ti_init; -- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-13 10:00 ` Russell King @ 2003-07-13 10:48 ` Jaakko Niemi 2003-07-13 11:00 ` Russell King 2003-07-13 11:02 ` Wiktor Wodecki 1 sibling, 1 reply; 13+ messages in thread From: Jaakko Niemi @ 2003-07-13 10:48 UTC (permalink / raw) To: Russell King; +Cc: Alan Cox, Wiktor Wodecki, Linux Kernel Mailing List Russell King <rmk@arm.linux.org.uk> writes: > On Sun, Jul 13, 2003 at 12:50:33PM +0300, Jaakko Niemi wrote: >> Alan Cox <alan@lxorguk.ukuu.org.uk> writes: >> > On Sad, 2003-07-12 at 17:48, Wiktor Wodecki wrote: >> >> > + * If ISA interrupts don't work, then fall back to routing card >> >> > + * interrupts to the PCI interrupt of the socket. >> >> > + */ >> >> > + if (!socket->socket.irq_mask) { >> >> > + int irqmux, devctl; >> >> > + >> > >> > See the fix posted to the list a while ago and apply that and all should >> > be well. The change you refer to breaks for some setups >> >> Was the fix against drivers/pcmcia/ti113x.h ? (other than backing off >> that patch..). If so, then I'm unable to locate it. Looks like I need >> local lkml archive anyway :) > > The patch never went anywhere near lkml. It was sent to Pat Mochel > primerily for testing (since Pat was able to produce the feedback > last time around to solve the problem.) However, I haven't heard back > from Pat. I applied this to plain vanilla 2.5.75-bk1 and booted and everything seems working ok. > I won't even bother putting this into my bk tree and asking Linus to > pull; I'm sure someone else will integrate this into the kernel tree > for me. (as happened previously, and as a result I need to sort out > my bk tree.) I guess testing with a bit of different hardware would be good. --j ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-13 10:48 ` Jaakko Niemi @ 2003-07-13 11:00 ` Russell King 2003-07-13 11:09 ` Alan Cox 0 siblings, 1 reply; 13+ messages in thread From: Russell King @ 2003-07-13 11:00 UTC (permalink / raw) To: Jaakko Niemi; +Cc: Alan Cox, Wiktor Wodecki, Linux Kernel Mailing List On Sun, Jul 13, 2003 at 01:48:22PM +0300, Jaakko Niemi wrote: > Russell King <rmk@arm.linux.org.uk> writes: > > I won't even bother putting this into my bk tree and asking Linus to > > pull; I'm sure someone else will integrate this into the kernel tree > > for me. (as happened previously, and as a result I need to sort out > > my bk tree.) > > I guess testing with a bit of different hardware would be good. Oddly, that's what the rest of the community is for. Developers don't have access to all possible combinations of hardware. However, the patch to ti113x.h came from 2.4-ac, and afaik there haven't been any reports of failure there. Also note that I was just the middle man in getting the original patch applied. -- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-13 11:00 ` Russell King @ 2003-07-13 11:09 ` Alan Cox 0 siblings, 0 replies; 13+ messages in thread From: Alan Cox @ 2003-07-13 11:09 UTC (permalink / raw) To: Russell King; +Cc: Jaakko Niemi, Wiktor Wodecki, Linux Kernel Mailing List On Sul, 2003-07-13 at 12:00, Russell King wrote: > However, the patch to ti113x.h came from 2.4-ac, and afaik there haven't > been any reports of failure there. Also note that I was just the middle > man in getting the original patch applied. It took a while for the few laptops it bites to turn up. The new fix is in the newest -ac build tree and seems to fix the cases I've tested ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card 2003-07-13 10:00 ` Russell King 2003-07-13 10:48 ` Jaakko Niemi @ 2003-07-13 11:02 ` Wiktor Wodecki 1 sibling, 0 replies; 13+ messages in thread From: Wiktor Wodecki @ 2003-07-13 11:02 UTC (permalink / raw) To: Russell King, Alan Cox, Linux Kernel Mailing List [-- Attachment #1: Type: text/plain, Size: 3203 bytes --] On Sun, Jul 13, 2003 at 11:00:16AM +0100, Russell King wrote: > On Sun, Jul 13, 2003 at 12:50:33PM +0300, Jaakko Niemi wrote: > > Alan Cox <alan@lxorguk.ukuu.org.uk> writes: > > > On Sad, 2003-07-12 at 17:48, Wiktor Wodecki wrote: > > >> > + * If ISA interrupts don't work, then fall back to routing card > > >> > + * interrupts to the PCI interrupt of the socket. > > >> > + */ > > >> > + if (!socket->socket.irq_mask) { > > >> > + int irqmux, devctl; > > >> > + > > > > > > See the fix posted to the list a while ago and apply that and all should > > > be well. The change you refer to breaks for some setups > > > > Was the fix against drivers/pcmcia/ti113x.h ? (other than backing off > > that patch..). If so, then I'm unable to locate it. Looks like I need > > local lkml archive anyway :) > > The patch never went anywhere near lkml. It was sent to Pat Mochel > primerily for testing (since Pat was able to produce the feedback > last time around to solve the problem.) However, I haven't heard back > from Pat. > > I won't even bother putting this into my bk tree and asking Linus to > pull; I'm sure someone else will integrate this into the kernel tree > for me. (as happened previously, and as a result I need to sort out > my bk tree.) oh, I'm sorry, I must have missed this patch. I just applied it on top of 2.5.75-bk2 and it fixes the problem for me. Please apply it and tell linus, thinks like that happen - don't be grumpy please :-) > > --- orig/drivers/pcmcia/ti113x.h Wed Jul 2 22:44:06 2003 > +++ linux/drivers/pcmcia/ti113x.h Sun Jul 6 22:52:41 2003 > @@ -179,21 +179,26 @@ > /* > * If ISA interrupts don't work, then fall back to routing card > * interrupts to the PCI interrupt of the socket. > + * > + * Tweaking this when we are using serial PCI IRQs causes hangs > + * --rmk > */ > if (!socket->socket.irq_mask) { > - int irqmux, devctl; > - > - printk (KERN_INFO "ti113x: Routing card interrupts to PCI\n"); > + u8 irqmux, devctl; > > devctl = config_readb(socket, TI113X_DEVICE_CONTROL); > - devctl &= ~TI113X_DCR_IMODE_MASK; > + if (devctl & TI113X_DCR_IMODE_MASK != TI12XX_DCR_IMODE_ALL_SERIAL) { > + printk (KERN_INFO "ti113x: Routing card interrupts to PCI\n"); > + > + devctl &= ~TI113X_DCR_IMODE_MASK; > > - irqmux = config_readl(socket, TI122X_IRQMUX); > - irqmux = (irqmux & ~0x0f) | 0x02; /* route INTA */ > - irqmux = (irqmux & ~0xf0) | 0x20; /* route INTB */ > + irqmux = config_readl(socket, TI122X_IRQMUX); > + irqmux = (irqmux & ~0x0f) | 0x02; /* route INTA */ > + irqmux = (irqmux & ~0xf0) | 0x20; /* route INTB */ > > - config_writel(socket, TI122X_IRQMUX, irqmux); > - config_writeb(socket, TI113X_DEVICE_CONTROL, devctl); > + config_writel(socket, TI122X_IRQMUX, irqmux); > + config_writeb(socket, TI113X_DEVICE_CONTROL, devctl); > + } > } > > socket->socket.ss_entry->init = ti_init; > > > -- > Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux > http://www.arm.linux.org.uk/personal/aboutme.html -- Regards, Wiktor Wodecki [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: hang with pcmcia wlan card @ 2003-07-13 2:51 Sven Dowideit 0 siblings, 0 replies; 13+ messages in thread From: Sven Dowideit @ 2003-07-13 2:51 UTC (permalink / raw) To: linux-kernel [-- Attachment #1: Type: text/plain, Size: 340 bytes --] > well, at least it is this changeset for me (same problem) > >> --- linux-2.5.73-bk1/drivers/pcmcia/ti113x.h 2003-06-22 11:32:41.000000000 -0700 >> +++ linux-2.5.73-bk2/drivers/pcmcia/ti113x.h 2003-06-24 13:06:59.000000000 -0700 me too :) my cisco aironet 350 now works, and does not hang my 2.5.75 vanilla thankyou sven [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2003-07-13 10:57 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-07-11 16:20 hang with pcmcia wlan card Jaakko Niemi 2003-07-12 16:22 ` Jaakko Niemi 2003-07-12 16:30 ` Russell King 2003-07-12 16:48 ` Wiktor Wodecki 2003-07-12 17:30 ` Jaakko Niemi 2003-07-13 8:46 ` Alan Cox 2003-07-13 9:50 ` Jaakko Niemi 2003-07-13 10:00 ` Russell King 2003-07-13 10:48 ` Jaakko Niemi 2003-07-13 11:00 ` Russell King 2003-07-13 11:09 ` Alan Cox 2003-07-13 11:02 ` Wiktor Wodecki 2003-07-13 2:51 Sven Dowideit
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).