On Thu, 17 Aug 2006 [EMAIL PROTECTED] wrote: > Hi Greg, > I request your help on debugging the GadgetFS AIO > functionality. I'm working on an developing a USB user > space driver on top of the GadgetFS Driver on a ARM > based Linux Kernel version 2.6.10. I'm using the AIO > support of the GadgetFS driver in my design. When I > make a io_getevents call from the user space, it hangs > and never returns. I see that you have released a > patch to fix this on 2.6.17 kernel > (http://www.kernel.org/pub/linux/kernel/people/gregkh/usb/2.6/2.6.17/). > I tried applying the following of patches in the same > order as mentioned below > > usb-gadgetfs-highspeed-bugfix.patch (all the Hunks > succeed) > gadgetfs-fix-memory-leaks.patch (2 out of 6 Hunks, #4 > and #6 FAILED) > gadgetfs-fix-aio-interface-bugs.patch (all the Hunks > succeed) > > After applying the patches, I get some memory faults > when the io_submit is called. But the io_getevetns > returns without reading any data. I don't know whether > it matters, but the libaio version that is use is > 0.3.99. > > Please advice me on whether I'm applying the patches > in the correct order or am I missing something here.
One thing you're missing is that those patches were meant to apply to 2.6.17. There's no guarantee they will work correctly in a 2.6.10 kernel. In fact, as you saw, the second patch couldn't be applied at all. > If you can give me a direction on how to go about > fixing this, it would be great. A good way to start would be to update your kernel to 2.6.17, if at all possible. You might also need to upgrade libaio; the version I've got (which isn't particularly current) is 0.3.103. Alan Stern ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel