The Oops(LR= C00C4F38)is due to lwz r9,40(r31)
the last two line in the hc_add_trans function:
memcpy (ptd + 8, data, len);
hp->tlp += ((len + 8 +3) & ~03);
bl 2C290 is the address of memcpy function
and lwz r9,40(r31) is
mapping to get hp->tlp value. I do not understand why here got the Oops
as the hp->tlp has been fretched one time before set up those ptd array
without error.
disasm PPC code:
000C4F1C: 386C0008 addi r3,r12,0x0008
000C4F20: 7F84E378 or
r4,r28,r28
000C4F24: 9B6C0000 stb
r27,0(r12) (EA: 00000000)
000C4F28: 9BAC0002 stb
r29,2(r12) (EA: 00000002)
000C4F2C: 9BCC0004 stb
r30,4(r12) (EA: 00000004)
000C4F30: 7FC5F378 or
r5,r30,r30
000C4F34: 4BF6735D bl
0x0002C290
000C4F38: 813F0028
lwz r9,40(r31)
(EA: 00000028)
000C4F3C: 381E000B addi r0,r30,0x000B
Li Yi
Benjamin Herrenschmidt wrote:
>
>I have problems with hub function of isp1161 V0.8, it Oops whenever I plug
>in any USB devices like keyboard or mouse through a Belkin F5U100 Hub. But
>if I plug the keyboard into the roothub OR if nothing on the hub,
>everything is fine. Can you repeat it?Could you get some backtrace symbols for the oops ?
One oops I found and fixed locally was to not handle the delete list
if hc->trans is non-NULL (in the interrupt handler). There were some
rare occasions where the delete list could be run because of a different
interrupt (SOF for example) while there was still a pending hc->trans,
possibly making the URB pointers in the trans array invalid.Ben.
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
begin:vcard n:Li;Yi tel;fax:+65-481-6997 tel;work:+65-486-3796 x-mozilla-html:FALSE org:Global Software Group, Embedded System ;<html> <img src="http://SL.sps.mot.com/images/MotLogo-rotating_sm.gif"> </html> version:2.1 email;internet:[EMAIL PROTECTED] title:Sotftware Engineer adr;quoted-printable:;;Singapore Software Center=0D=0AMotorola Innovation Centre - Level 3A=0D=0A12 Ang Mo Kio Street 64=0D=0A;Singapore;;569088;Singapore fn:Yi Li end:vcard
