From owner-freebsd-firewire@FreeBSD.ORG Wed Nov 21 03:57:52 2007 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A5F116A41A for ; Wed, 21 Nov 2007 03:57:52 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.231]) by mx1.freebsd.org (Postfix) with ESMTP id 16C8E13C448 for ; Wed, 21 Nov 2007 03:57:51 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: by nz-out-0506.google.com with SMTP id l8so1795982nzf for ; Tue, 20 Nov 2007 19:57:51 -0800 (PST) Received: by 10.142.179.12 with SMTP id b12mr1832809wff.1195617470547; Tue, 20 Nov 2007 19:57:50 -0800 (PST) Received: by 10.142.224.12 with HTTP; Tue, 20 Nov 2007 19:57:50 -0800 (PST) Message-ID: <626eb4530711201957o8698d39x132070e268cb70ab@mail.gmail.com> Date: Wed, 21 Nov 2007 12:57:50 +0900 From: "Hidetoshi Shimokawa" Sender: freebsd@gm.nunu.org To: Dieter In-Reply-To: <200711162220.lAGMK3s9039592@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200711162220.lAGMK3s9039592@freefall.freebsd.org> X-Google-Sender-Auth: 602a2d521c800e20 Cc: freebsd-firewire@freebsd.org Subject: Re: kern/113785: [firewire] dropouts when playing DV on firewire X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2007 03:57:52 -0000 There is no initialization packet to send streams; however, it might be a problem who is the cycle/bus/IR manager. Can you see some difference of the output of the fwcontrol(8) and demsg(8) in node-id, cycle master and etc. between success and failed cases? Thanks for a fix for the compiler warning. On 11/17/07, Dieter wrote: > The following reply was made to PR kern/113785; it has been noted by GNATS. > > From: Dieter > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: kern/113785: [firewire] dropouts when playing DV on firewire > Date: Fri, 16 Nov 2007 13:23:35 +0000 > > [ previous reply didn't make it into the PR system, trying again ] > > In message <200710300119.l9U1Jsv8040070@freefall.freebsd.org>, simokawa@FreeBSD.org writes: > > Synopsis: [firewire] dropouts when playing DV on firewire > > > > State-Changed-From-To: open->feedback > > State-Changed-By: simokawa > > State-Changed-When: Tue Oct 30 01:17:44 UTC 2007 > > State-Changed-Why: > > I increased tx/rx buffer size in rev. 1.7 and 1.5.12.2 of > > src/usr.sbin/fwcontrol/fwdv.c. I hope this fixes your problem. > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=113785 > > > -#define NCHUNK 8 > +#define NCHUNK 64 > > I tried this, it didn't help. I also tried cranking it up to 256, > which still didn't help. :-( > > Given that the NEC controller has the problem only when "hot powered-up", > I wonder if it is an initialization problem. Is there a way to log > what FreeBSD sends to the camcorder, similar to tcpdump(1) ? Comparing > what FreeBSD sends if it detects the camcorder at boot time with what > it sends when the camcorder is powered up later might allow fixing the > having-to-reboot problem. Perhaps the VIA controller always sends > the bad initialization? > > > > The compiler whined: > > fwcontrol.c:611: warning: control reaches end of non-void function > fwdv.c:93: warning: no previous prototype for 'dvrecv' > fwdv.c:248: warning: no previous prototype for 'dvsend' > > At least the compiler warnings are easily fixed: > > > diff -u -r1.1 fwcontrol.c > --- fwcontrol.c 2007/10/30 15:32:15 1.1 > +++ fwcontrol.c 2007/10/30 15:33:10 > @@ -58,7 +58,7 @@ > extern int dvrecv(int, char *, char, int); > extern int dvsend(int, char *, char, int); > > -int sysctl_set_int(const char *, int); > +void sysctl_set_int(const char *, int); > > static void > usage(void) > @@ -603,7 +603,7 @@ > } > } > > -int > +void > sysctl_set_int(const char *name, int val) > { > if (sysctlbyname(name, NULL, NULL, &val, sizeof(int)) < 0) > > > > diff -u -r1.1 fwdv.c > --- fwdv.c 2007/10/30 02:50:42 1.1 > +++ fwdv.c 2007/10/30 15:45:42 > @@ -88,6 +88,10 @@ > #define MAXBLOCKS (300) > #define CYCLE_FRAC 0xc00 > > +/* prototypes */ > +int dvrecv(int, char *, char, int); > +int dvsend(int, char *, char, int); > + > int > dvrecv(int d, char *filename, char ich, int count) > { > _______________________________________________ > freebsd-firewire@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-firewire > To unsubscribe, send any mail to "freebsd-firewire-unsubscribe@freebsd.org" > > -- /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.ORG