USB lockup on Thinkpad i1300
My thinkpad happily locks up with both 2.4.9 and 2.4.10-pre14 when I load usb-ohci. Tracing with kdb shows that the system locks up right after executing this: (usb-ohci.c:2137)
/* HC Reset requires max 10 ms delay */
writel (OHCI_HCR, &ohci->regs->cmdstatus);Anyone have any idea? The processor apparently never gets to the next instruction.
[Cc: me please, I'm not on this list.]
P.S. System chipset is ALi:
00:14.0 USB Controller: Acer Laboratories Inc. [ALi] M5237 USB (rev 03) (prog-if 10 [OHCI])
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at 82400000 (32-bit, non-prefetchable) [size=4K]
Shares IRQ with cardbus bridge and lcd controller.
Signature · 4 lines
Taral <[email protected]> This message is digitally signed. Please PGP encrypt mail to me. "Any technology, no matter how primitive, is magic to those who don't understand it." -- Florence Ambrose
Quoted 8 lines
load usb-ohci. Tracing with kdb shows that the system locks up right after executing this: (usb-ohci.c:2137)
/* HC Reset requires max 10 ms delay */ writel (OHCI_HCR, &ohci->regs->cmdstatus);Anyone have any idea? The processor apparently never gets to the next instruction.
As an experiment stick
unsigned long flags;
save_flags(flags);
cli();
printh("Not dead yet\n");
/* HC ...
..
printk("Writel returned\n");
readl(&ohci->regs->cmdstatus);
printk("Write definitely occurred now\n");
restore_flags(flags);
printk("Ok with IRQ on\n");Into that piece of code.
That will tell you if for example it is an IRQ storm of some kind.
Quoted 11 lines · Alan Cox
save_flags(flags);
cli();
printh("Not dead yet\n");
/* HC ...
..
printk("Writel returned\n");
readl(&ohci->regs->cmdstatus);
printk("Write definitely occurred now\n");
restore_flags(flags);
printk("Ok with IRQ on\n");I get "Not dead yet" then nothing.
Signature · 4 lines
Taral <[email protected]> This message is digitally signed. Please PGP encrypt mail to me. "Any technology, no matter how primitive, is magic to those who don't understand it." -- Florence Ambrose