From owner-freebsd-firewire@FreeBSD.ORG Mon Sep 5 11:07:07 2011 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 BD0261065706 for ; Mon, 5 Sep 2011 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AA5A88FC1F for ; Mon, 5 Sep 2011 11:07:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p85B77TR065858 for ; Mon, 5 Sep 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p85B77Xu065856 for freebsd-firewire@FreeBSD.org; Mon, 5 Sep 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Sep 2011 11:07:07 GMT Message-Id: <201109051107.p85B77Xu065856@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-firewire@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-firewire@FreeBSD.org 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: Mon, 05 Sep 2011 11:07:07 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/155303 firewire [firewire] Mounted firewire disks prevent reboot o kern/144843 firewire [firewire] [panic] fwcontrol(8) -S causes kernel panic o kern/143623 firewire [firewire] firewire fails to attach DV camera and down o kern/139549 firewire [firewire] reconnecting a firewire disk does not cause o kern/136946 firewire [fwohci] fwohci throws an"unrecoverable error" upon re p kern/125673 firewire [firewire] [panic] FreeBSD7 panics when kldunloading f o kern/122951 firewire [firewire] video-transfer via fwcontrol triggers a pan o kern/118093 firewire [firewire] firewire bus reset hogs CPU, causing data t p kern/114646 firewire [firewire] [patch] firewire fails after suspend/resume o kern/113785 firewire [firewire] dropouts when playing DV on firewire o kern/97208 firewire [firewire] System hangs / locks up when a firewire dis o kern/74238 firewire [firewire] fw_rcv: unknown response; firewire ad-hoc w 12 problems total. From owner-freebsd-firewire@FreeBSD.ORG Wed Sep 7 16:12:17 2011 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 9B931106566C for ; Wed, 7 Sep 2011 16:12:17 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.mail.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id 5F2308FC08 for ; Wed, 7 Sep 2011 16:12:17 +0000 (UTC) Received: (qmail 7310 invoked by uid 0); 7 Sep 2011 16:12:06 -0000 Received: from 67.206.187.57 by rms-us017 with HTTP Content-Type: text/plain; charset="utf-8" Date: Wed, 07 Sep 2011 12:12:03 -0400 From: "Dieter BSD" Message-ID: <20110907161204.43270@gmx.com> MIME-Version: 1.0 To: freebsd-firewire@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: u+IOfape33erJQ7YAmtn2JAjL0tsZs38 Subject: Re: fwcontrol -R is broken 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, 07 Sep 2011 16:12:17 -0000 Hi Sean, > Please try this patch sooner rather than later.  I'd like to get it > patched pre-9.0 at a minimum if this resolves the issues. I added your patch to the 8.2 sources and compiled it in a 7.1 chroot in hopes of avoiding a kernel panic. It printed out some garbage.  I looked at the code a bit and added the following:        char *recv_data = NULL;        char *send_data = NULL; +       /* debug */ +       snprintf(devbase, sizeof(devbase), "ERROR: variable devbase is uninitialized "); +        if (argc < 2) {                for (current_board = 0; current_board < MAX_BOARDS; current_board++) {                        snprintf(devbase, sizeof(devbase), "%s%d.0", device_string, current_board); Now I get: ./fwcontrol -R /tmp/foo.dv fwcontrol: main: Error opening firewire controller #0 ERROR: variable devbase is uninitialized  in recv_data detect: No such file or directory Note: I didn't have to turn on the camcorder to get this far. For full testing it might be possible to connect two controllers together and do fwcontrol -S on one and fwcontrol -R on the other, avoiding the need for a camcorder or similar DV device. ----- IIRC someone changed fwcontrol awhile back so that the order of arguments isn't supposed to matter anymore?  If so it isn't working: ./fwcontrol -u 0 -R /tmp/foo.dv     fwcontrol: main: Error opening firewire controller #0 ERROR: variable devbase is uninitialized  in recv_data detect: No such file or directory ./fwcontrol -R /tmp/foo.dv -u 0 fwcontrol: detect_recv_fn: error reading from device: Resource temporarily unavailable The "error reading from device" is probably due to the camcorder not being on.  Rearranging the args got it working a few days ago. But this is just a FYI, not a suggestion that someone wade into improving fwcontrol's arg handling. I can live with having to arrange the args in a particular order. I can live with having to compile fwcontrol in a 7.1 chroot. But kern/113785 is a big problem with no workaround.  :-( So 113785 is the bug I really need a fix for.