--- Nitin Mahajan <[EMAIL PROTECTED]> wrote: > HI! > > I am running the usb tests given as per > http://www.linux-usb.org/usbtest/ and interested in > host side testing. I am using the PCI based net2280 > EVB board on a SUSE Linux 9.3(as a USB device), > which > has 2.6.11.x kernel version > > I am running 2.6.11.11 version of kernel with the > 2.6.12-rc5 patch applied for complete USB part only, > on SAMSUNG S3C2410 based board as a USB host. > > I am facing following problems with execution of > test > case 10 and 14 respectively. The below logs tell > about the error messages. > > 1) Log for test case 10 > ------------------------ > /etc # ./testusb -t10 -D /proc/bus/usb/001/002 > finding test device > finding test device > finding test device > unknown speed /procdrivers/usb/misc/usbtest.c: > control queue 80.06, err -32, 31999 left > /bus/usb/002/002 > finding test device > finding test devs3c2410-ohci s3c2410-ohci: > dma_pool_free buffer-32, ffc15040/6fc15040 (bad dma) > ice > finding test device > unknown speed /proc/bus/usb/001/002 > finding test device > finding test device > s3c2410-ohci s3c2410-ohci: dma_pool_free buffer-32, > ffc15080/6fc15080 (bad dma) > s3c2410-ohci s3c2410-ohci: dma_pool_free buffer-32, > ffc150c0/6fc150c0 (bad dma) > s3c2410-ohci s3c2410-ohci: dma_pool_free buffer-32, > ffc15100/6fc15100 (bad dma) > | > | > | > s3c2410-ohci s3c2410-ohci: dma_pool_free buffer-32, > ffc15740/6fc15740 (bad dma) > /proc/bus/usb/001/002 test 10 --> 32 (error 32) > The reason for this I have found out as follows. When we call usb_buffer_free (udev, sizeof (struct usb_ctrlrequest), urb [i]->setup_packet, urb [i]->setup_dma); in function test_ctrl_queue in usbtest.c, the value of urb[i]->setup_dma is different from the correspoding value when this dma buffer was allocated. This value has got changed due to call to dma_map_single, but a correspoding dma_unmap_single has not happened when we are attempting to free. Thus the error message from dma_pool_free. Could anyone please tell me what would be a correct way from the usb driver(usbtest.c) to trigger an approprite dma_unmap_single or this is a shortcoming in some part of USB host side stack.
> 2)log for test case 14 > ------------------------ > /etc # ./testusb -t14 -D /proc/bus/usb/001/002 > finding test device > finding test device > finding test device > unknown speed /proc/bus/usb/002/002 > finding test device > finding test device > finding test device > unknown speed /proc/bus/usb/001/002 > finding test device > finding test device > /proc/bus/usb/001/002 test 14 --> 22 (error 22) > > Can anyone please tell are these any known bugs and > possible pointers towards the solution, because of > which the test cases are failing. > > Thanking you in advance > > regards > > -Nitin > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > Thanking you in advance regards -Nitin Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel