Hi Olav, I'm sorry to disturb you another time but I have another big
problem.
First, thank you for your suggestion below, it was very helpfully :)
About problem: sometimes the kernel crash when s1161_unlink_urb is
running for unlink the second buffers's urb.
I use pwc 9.0.1 and in pwc-if.c the functions pwc_isoc_cleanup call
usb_unlink_urb(urb) functions, a pointer to s1161_unlink_urb.
usb_unlink_urb(urb) is called for every MAX_ISO_BUFS defined in pwc.h (2).
The first urb seem to unlink well, the second crash.
The panic occours with 5 grab average :( and the kernel say to me:
Unable to handle kernel paging request at virtual address 5a5a5a6a
The same thing occour with "setpwc" utility that only set some cam
parameter.
The same software on a PC work fine. My CPU is very slow and havn't got
DMA :/
Another bug that I think have fix is about cleanup of module: for turn
off the isp1161 after grabbing, I unload the module every grab for
energy saving. The kernel go to panic with average of 12 load/unload but
frequency was very random.
So I have swapped the two line as follow in hcd_1161_cleanup:
free_irq(irq,ohci); /* Free interrupt line */
hc_release_1161(ohci); /* release the 1161 hc */
so if an irq occours, ohci it isn't free.
After test, load/unload seems to work but kernel's panic average
increase a lot (20 ok before mod.).
Thank you,
--
Cristian Chiarello
Olav Kongas wrote:
On Thu, 22 Sep 2005, Cristian Chiarello wrote:
Hi @ all.
I'm working on a custom EP7311 board with isp1161A1 and linux-2.4.21-rmk1.
Another people have made porting of kernel to this board but now I have
problem with data tranfert in ISO mode with a webcam logitech
4000pro: some frame is often loss. The driver I use I think is the same
mentioned in this thread:
http://sourceforge.net/mailarchive/message.php?msg_id=665283
isp1161 is a full speed device, i.e., it supports
(theoretically) transfer rates up to 12Mbit/s. I don't know
your webcam, but supposing for the sake of example that it
is trying to output "quarter" PAL resolution, 25fps, YUV
4:2:0 (i.e., 12 bit per pixel in average) would yield
352*288*25*12 = 30412800 bit/s > 12Mbit/s
I'm a bit confuse about ISO support in 1161A1.
In yours page I have readed that 116x not support ISO tranfers but between the
features of 1161A1 there is:
"Endpoints with double buffering to increase throughput and ease real-time
data transfer for both DC transfers and HC isochronous (ISO) transactions".
116x hardware is capable of iso transfers. Whether these
transfers are supported or not, depends on the driver. The
driver included in the 2.6 kernels does not support iso
transfers. The main reason it doesn't is that nobody has
asked for this feature. Except until 2 weeks ago someone
asked about it. There are other reasons too, including full
speed transfer rate's inadequacy for video as explained
above.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel