* USB lockup on Thinkpad i1300
@ 2001-09-22 9:45 Taral
2001-09-22 16:50 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Taral @ 2001-09-22 9:45 UTC (permalink / raw)
To: linux-kernel
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.
--
Taral <taral@taral.net>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: USB lockup on Thinkpad i1300
2001-09-22 9:45 USB lockup on Thinkpad i1300 Taral
@ 2001-09-22 16:50 ` Alan Cox
2001-09-22 21:03 ` Taral
0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2001-09-22 16:50 UTC (permalink / raw)
To: Taral; +Cc: linux-kernel
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: USB lockup on Thinkpad i1300
2001-09-22 16:50 ` Alan Cox
@ 2001-09-22 21:03 ` Taral
0 siblings, 0 replies; 3+ messages in thread
From: Taral @ 2001-09-22 21:03 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
On Sat, Sep 22, 2001 at 05:50:03PM +0100, Alan Cox wrote:
> 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.
--
Taral <taral@taral.net>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-22 21:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-22 9:45 USB lockup on Thinkpad i1300 Taral
2001-09-22 16:50 ` Alan Cox
2001-09-22 21:03 ` Taral
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox