Hi All, Thanks for all the help, I have it working now by building a 2.6.23 kernel with the patchset from here applied: http://me.in-berlin.de/~s5r6/linux1394/updates/ Then it works if I lower the number of buffer passed to dc1394_capture_setup() to 2, after also applying this patch: http://marc.info/?l=linux1394-devel&m=119965813322642 ? This is no longer needed and even coriander (from cvs) works fine! This is with a via vt6306 in OHCI 1.1 mode (which is the factory default for this pci card), should the above patches be enough to also get it to work in 1.0 mode? If that is the case I can try flashing it to 1.0 mode and see if that will also work. Regards, Hans p.s. Next step building libdc1394 and coriander packages for Fedora!
Hans de Goede wrote:> Thanks for all the help, I have it working now by building a 2.6.23 kernel with > the patchset from here applied: > http://me.in-berlin.de/~s5r6/linux1394/updates/ > > Then it works if I lower the number of buffer passed to dc1394_capture_setup() > to 2, after also applying this patch: > http://marc.info/?l=linux1394-devel&m=119965813322642 ? > > This is no longer needed and even coriander (from cvs) works fine! > > This is with a via vt6306 in OHCI 1.1 mode (which is the factory default for > this pci card), should the above patches be enough to also get it to work in > 1.0 mode? If that is the case I can try flashing it to 1.0 mode and see if that > will also work.No, according to what several people saw with VT630x in OHCI 1.0 mode, there is still the bug that the DMA program stops after receiving one or a few frames. This is 100% reproducible with coriander + IIDC camera and dvgrab + DV camcorder. https://bugzilla.redhat.com/show_bug.cgi?id=415841 As far as I understood, this presumably happens because the problem which David Moore addressed with "fw-ohci: Fix for dualbuffer three-or-more buffers" is also present but unfixed in the packet-per-buffer code. -- Stefan Richter -=====-==--- ---= -=-=http://arcgraph.de/sr/
Stefan Richter wrote:> Hans de Goede wrote: >> Thanks for all the help, I have it working now by building a 2.6.23 kernel with >> the patchset from here applied: >> http://me.in-berlin.de/~s5r6/linux1394/updates/ >> >> Then it works if I lower the number of buffer passed to dc1394_capture_setup() >> to 2, after also applying this patch: >> http://marc.info/?l=linux1394-devel&m=119965813322642 ? >> >> This is no longer needed and even coriander (from cvs) works fine! >> >> This is with a via vt6306 in OHCI 1.1 mode (which is the factory default for >> this pci card), should the above patches be enough to also get it to work in >> 1.0 mode? If that is the case I can try flashing it to 1.0 mode and see if that >> will also work.I can take care of testing on an VT6306 OHCI 1.0 controller, as well as a VT6307 OHCI 1.0 controller. Just bumping to the latest linux1394 git code wasn''t enough to get dv capture working (via dvgrab) on one of my VT6307 1.0 controllers, but I''m about to give it a go with the addition of David''s dynamic buffer allocation patch.> No, according to what several people saw with VT630x in OHCI 1.0 mode, > there is still the bug that the DMA program stops after receiving one or > a few frames. This is 100% reproducible with coriander + IIDC camera > and dvgrab + DV camcorder. > https://bugzilla.redhat.com/show_bug.cgi?id=415841 > > As far as I understood, this presumably happens because the problem > which David Moore addressed with "fw-ohci: Fix for dualbuffer > three-or-more buffers" is also present but unfixed in the > packet-per-buffer code.I can probably get a similar fix added on top of the packet-per-buffer code today, if it is indeed still needed. -- Jarod Wilson jwilson@redhat.com
On Fri, 2008-01-11 at 10:44 +0100, Stefan Richter wrote:> No, according to what several people saw with VT630x in OHCI 1.0 mode, > there is still the bug that the DMA program stops after receiving one or > a few frames. This is 100% reproducible with coriander + IIDC camera > and dvgrab + DV camcorder. > https://bugzilla.redhat.com/show_bug.cgi?id=415841 > > As far as I understood, this presumably happens because the problem > which David Moore addressed with "fw-ohci: Fix for dualbuffer > three-or-more buffers" is also present but unfixed in the > packet-per-buffer code.I thought I had fixed that in my "fw-ohci: Bug fixes for packet-per-buffer support" patch, but maybe it''s still not working perfectly yet. I''m running out of ideas for why that still might not work so further testing or insights would be appreciated. -David
David Moore wrote:> On Fri, 2008-01-11 at 10:44 +0100, Stefan Richter wrote: >> No, according to what several people saw with VT630x in OHCI 1.0 mode, >> there is still the bug that the DMA program stops after receiving one or >> a few frames. This is 100% reproducible with coriander + IIDC camera >> and dvgrab + DV camcorder. >> https://bugzilla.redhat.com/show_bug.cgi?id=415841 >> >> As far as I understood, this presumably happens because the problem >> which David Moore addressed with "fw-ohci: Fix for dualbuffer >> three-or-more buffers" is also present but unfixed in the >> packet-per-buffer code. > > I thought I had fixed that in my "fw-ohci: Bug fixes for > packet-per-buffer support" patchThat''s what I was thinking/hoping, but...> but maybe it''s still not working perfectly yet....I still can''t get more than 1 or 2 frames of dv w/the OHCI 1.0 VT6307 I''m working with right now. :(> I''m running out of ideas for why that still might not > work so further testing or insights would be appreciated.I''m rather short on ideas too. I was really hoping the dynamic buffer allocation patch might help too, thinking maybe these cards were just exhausting the buffer and getting wedged, but no dice. Oh, I should also mention that I get some lockdep spew w/the dynamic buffer alloc patch added to the mix... (will get that report over to you via linux1394-devel though) -- Jarod Wilson jwilson@redhat.com
Jarod Wilson wrote:> David Moore wrote: >> On Fri, 2008-01-11 at 10:44 +0100, Stefan Richter wrote: >>> No, according to what several people saw with VT630x in OHCI 1.0 mode, >>> there is still the bug that the DMA program stops after receiving one or >>> a few frames. This is 100% reproducible with coriander + IIDC camera >>> and dvgrab + DV camcorder. >>> https://bugzilla.redhat.com/show_bug.cgi?id=415841 >>> >>> As far as I understood, this presumably happens because the problem >>> which David Moore addressed with "fw-ohci: Fix for dualbuffer >>> three-or-more buffers" is also present but unfixed in the >>> packet-per-buffer code. >> I thought I had fixed that in my "fw-ohci: Bug fixes for >> packet-per-buffer support" patch > > That''s what I was thinking/hoping, but... > >> but maybe it''s still not working perfectly yet. > > ...I still can''t get more than 1 or 2 frames of dv w/the OHCI 1.0 VT6307 I''m > working with right now. :(On the positive side, I *do* have coriander displaying video from a Unibrain Fire-i hooked to this same controller now, so the remaining problems appear to be dv-specific. -- Jarod Wilson jwilson@redhat.com
Jarod Wilson wrote:> Jarod Wilson wrote: >> ...I still can''t get more than 1 or 2 frames of dv w/the OHCI 1.0 VT6307 I''m >> working with right now. :( > > On the positive side, I *do* have coriander displaying video from a Unibrain > Fire-i hooked to this same controller now, so the remaining problems appear to > be dv-specific.Confirmed. "v4 Dynamically allocate buffers for DMA descriptors" fixes reception with coriander on my VT6306 (OHCI 1.0). But dvgrab still doesn''t work with this card. (Says to have captured one frame when exiting, file size is 144000 bytes.) -- Stefan Richter -=====-==--- ---= -=-=http://arcgraph.de/sr/
On Fri, 2008-01-11 at 19:25 +0100, Stefan Richter wrote:> Jarod Wilson wrote: > > On the positive side, I *do* have coriander displaying video from a Unibrain > > Fire-i hooked to this same controller now, so the remaining problems appear to > > be dv-specific. > > Confirmed. "v4 Dynamically allocate buffers for DMA descriptors" fixes > reception with coriander on my VT6306 (OHCI 1.0). But dvgrab still > doesn''t work with this card. (Says to have captured one frame when > exiting, file size is 144000 bytes.)Can you confirm that with the same patch set dvgrab _does_ work on other types of OHCI 1.0 controllers? -David
David Moore wrote:> On Fri, 2008-01-11 at 19:25 +0100, Stefan Richter wrote: >> "v4 Dynamically allocate buffers for DMA descriptors" fixes >> reception with coriander on my VT6306 (OHCI 1.0). But dvgrab still >> doesn''t work with this card. (Says to have captured one frame when >> exiting, file size is 144000 bytes.) > > Can you confirm that with the same patch set dvgrab _does_ work on other > types of OHCI 1.0 controllers?With and without this patch dvgrab works on OHCI 1.0 Agere/LSI FW323 (Apple Mac mini onboard) and OHCI NEC something (OrangeLink CardBus card). -- Stefan Richter -=====-==--- ---= -=-=http://arcgraph.de/sr/