Oops in usb core when running traffic with libusb.

View: New views
3 Messages — Rating Filter:   Alert me  

Oops in usb core when running traffic with libusb.

by chuckf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm not sure if this is the best place to ask this, but it seems like
the guys on this mailing list are pretty knowledgeable about the usb
subsystem.

I have a situation where I get an Oops from processcompl() in
usb/core/devio.c running with a 2.6.28.4 kernel on an embedded mips
platform.

I have a read thread that constantly calls libusb_bulk_transfer() on the
IN endpoint. libusb_bulk_transfer() calls op_handle_events()which
eventually calls IOCTL_USBFS_REAPURBNDELAY ioctl. The ioctl calls
proc_reapurbnonblock() which calls async_getcompleted() in devio.c which
returns a pointer to an async struct which contains a completed urb.

Sometimes this urb seems to be corrupted occasionally when I
send/receive a lot of packets.

Has anyone seen this kind of problem?
Do you recommend asking on a different forum?

Thanks,
chuck fossen

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Re: Oops in usb core when running traffic with libusb.

by Peter Stuge-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chuck Fossen wrote:
> Has anyone seen this kind of problem?

It seems it's a kernel problem, so it would probably appear also
without libusb?


> Do you recommend asking on a different forum?

linux-usb-devel would probably be better. Maybe cc the MIPS
community?


//Peter

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Re: Oops in usb core when running traffic with libusb.

by Alan Stern :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 16 Oct 2009, Chuck Fossen wrote:

> I'm not sure if this is the best place to ask this, but it seems like
> the guys on this mailing list are pretty knowledgeable about the usb
> subsystem.
>
> I have a situation where I get an Oops from processcompl() in
> usb/core/devio.c running with a 2.6.28.4 kernel on an embedded mips
> platform.
>
> I have a read thread that constantly calls libusb_bulk_transfer() on the
> IN endpoint. libusb_bulk_transfer() calls op_handle_events()which
> eventually calls IOCTL_USBFS_REAPURBNDELAY ioctl. The ioctl calls
> proc_reapurbnonblock() which calls async_getcompleted() in devio.c which
> returns a pointer to an async struct which contains a completed urb.
>
> Sometimes this urb seems to be corrupted occasionally when I
> send/receive a lot of packets.
>
> Has anyone seen this kind of problem?
> Do you recommend asking on a different forum?

You should ask on the kernel USB mailing list,
<linux-usb@...>, since this is a problem in the kernel and
not in libusb.

Does it still occur with a 2.6.31 kernel?

Alan Stern



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel