From owner-freebsd-arm@FreeBSD.ORG Thu Jan 17 05:44:12 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D20D96BD for ; Thu, 17 Jan 2013 05:44:12 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from smtprelay-b22.telenor.se (smtprelay-b22.telenor.se [195.54.99.213]) by mx1.freebsd.org (Postfix) with ESMTP id 4F408695 for ; Thu, 17 Jan 2013 05:44:12 +0000 (UTC) Received: from ipb5.telenor.se (ipb5.telenor.se [195.54.127.168]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 649C6EB7DF for ; Thu, 17 Jan 2013 06:44:10 +0100 (CET) X-SENDER-IP: [85.229.94.62] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ahc2AKaO91BV5V4+PGdsb2JhbABEvgcXAwEBAQE4NIIeAQEBAQMBAQEvARsIGAsQCw4KLicBBQQIChQGCAIFBAEcBId8CLktjRCEKAONfYVhg0qNYoRBgW4 X-IronPort-AV: E=Sophos;i="4.84,484,1355094000"; d="scan'208";a="261807859" Received: from c-3e5ee555.06-11-73746f31.cust.bredbandsbolaget.se (HELO sigyn.alvermark.net) ([85.229.94.62]) by ipb5.telenor.se with ESMTP; 17 Jan 2013 06:44:10 +0100 Received: from localhost ([127.0.0.1] helo=webmail.alvermark.net) by sigyn.alvermark.net with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1TviCY-000EvQ-3p; Thu, 17 Jan 2013 06:39:46 +0100 Received: from 85.229.93.180 (SquirrelMail authenticated user alvis) by webmail.alvermark.net with HTTP; Thu, 17 Jan 2013 06:39:46 +0100 (CET) Message-ID: <29663.85.229.93.180.1358401186.squirrel@webmail.alvermark.net> In-Reply-To: <50F73F19.20401@bluezbox.com> References: <6BD0E5E4-3921-4F9B-9381-3813933670AE@alvermark.net> <201301161319.17236.hselasky@c2i.net> <78AB4FEC-6E16-4FCA-B172-3C7B37FEA4DF@alvermark.net> <50F73F19.20401@bluezbox.com> Date: Thu, 17 Jan 2013 06:39:46 +0100 (CET) Subject: Re: Isochronous USB transfers on RPI? From: "Jakob Alvermark" To: "Oleksandr Tymoshenko" User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-arm@freebsd.org, Jakob Alvermark X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 05:44:12 -0000 On Thu, January 17, 2013 01:00, Oleksandr Tymoshenko wrote: > On 1/16/2013 6:29 AM, Jakob Alvermark wrote: > >> Hi, >> >> >> I see that there is code, I'm not just very good at reading and writing >> it. :-) >> >> usbdump is quiet on the Pi On my laptop I can see ISOC packets when >> using the same webcam and software so something is missing. > > I'm not familiar with webcam configuration on freebsd but > do you have all the components setup on RPi? Kernel driver and/or userland > bits? The device is a video grabber with an analog video camera connected. The software is entirely in userland, using libusb. Code is at http://code.google.com/p/easycap-somagic-linux/ I works on my laptop (amd64 with ehci) and comparing output of usbdump while (trying) capturing video, ISOC is completely missing on RPi. >> >> /Jakob >> >> >> On 16 jan 2013, at 13:19, Hans Petter Selasky wrote: >> >> >>> On Wednesday 16 January 2013 10:25:38 Jakob Alvermark wrote: >>> >>>> Hi, >>>> >>>> >>>> Maybe this should go to the usb list, but it is probably relevant >>>> here as well. I have been playing with the Pi for a while now and >>>> having great fun with FreeBSD. Great work gonzo and others! However, >>>> I'd like to use a webcam with it. I learned that USB webcams use >>>> isochronous transfers and the DWC OTG driver doesn't fully implement >>>> it. (If I read the commit logs correctly) >>>> What is missing and how can I help? >>>> >>>> >>> Hi, >>> >>> >>> The DWC OTG driver has not fully implemented isochronous. Using >>> isochronous transfers will have a high CPU load impact, because 1000 >>> IRQ's (FS) or 8000 >>> IRQ's (HS) second will be needed to feed the FIFOs. However, if this >>> is acceptable, code can be found in: >>> >>> sys/dev/usb/controller/dwc_otg.c >>> >>> --HPS >>> >>> >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >> >> > > >