From owner-freebsd-firewire@FreeBSD.ORG Sun Aug 21 13:52:35 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 40B54106564A for ; Sun, 21 Aug 2011 13:52:35 +0000 (UTC) (envelope-from ka@flu.if0.org) Received: from fbo52.m3.home.ne.jp (fbo52.m3.home.ne.jp [IPv6:2001:ff0:2082:4:1:1:f000:c0]) by mx1.freebsd.org (Postfix) with ESMTP id 7D4718FC13 for ; Sun, 21 Aug 2011 13:52:34 +0000 (UTC) Received: from flu.if0.org ([210.194.125.78]) by smtpa15.m3.home.ne.jp with ESMTP id <20110821134403.DQAI3188.smtpa15.m3.home.ne.jp@flu.if0.org> for ; Sun, 21 Aug 2011 22:44:03 +0900 Received: from localhost (localhost.if0.org [127.0.0.1]) by flu.if0.org (8.14.5/8.14.4) with ESMTP id p7LDi2wH013294 for ; Sun, 21 Aug 2011 22:44:02 +0900 (JST) (envelope-from ka@flu.if0.org) Date: Sun, 21 Aug 2011 22:44:02 +0900 (JST) Message-Id: <20110821.224402.45702056.ka@flu.if0.org> To: freebsd-firewire@freebsd.org From: Kazumaro Aoki In-Reply-To: <20110819235902.227920@gmx.com> References: <20110819235902.227920@gmx.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH PLAIN at smtpa15.m3.home.ne.jp from [210.194.125.78] at Sun, 21 Aug 2011 22:44:03 +0900 Subject: Re: fwcontrol -R is broken, need help, urgent 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: Sun, 21 Aug 2011 13:52:35 -0000 From: "Dieter BSD" Subject: fwcontrol -R is broken, need help, urgent Date: Fri, 19 Aug 2011 23:59:01 +0000 > "fwcontrol -R foo.dv" gives: > fwcontrol: detect_recv_fn: ioctl FW_SSTBUF: Bad file descriptor > > I tried both controllers (-u 0, -u 1), same result. > > I know that -R worked under 6.x with the VIA controller. > (Still can't do -S with the VIA due to the cyclemaster PR.) > I'm fairly sure that -R worked with the NEC under 6.x and 7.x. I met the same problem, and I use fwcontrol in 6R on 8R box. Fortunately, I noticed the problem when I used 6R on a different PC, and I made the statically linked fwcontrol binary on 6R machine, and I kept it. Kazumaro From owner-freebsd-firewire@FreeBSD.ORG Mon Aug 22 11:07:00 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 B06031065697 for ; Mon, 22 Aug 2011 11:07:00 +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 9E58C8FC1D for ; Mon, 22 Aug 2011 11:07:00 +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 p7MB70Y3097117 for ; Mon, 22 Aug 2011 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7MB70RF097113 for freebsd-firewire@FreeBSD.org; Mon, 22 Aug 2011 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 22 Aug 2011 11:07:00 GMT Message-Id: <201108221107.p7MB70RF097113@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, 22 Aug 2011 11:07:00 -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 Mon Aug 22 19:09:08 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 57B76106566B for ; Mon, 22 Aug 2011 19:09:08 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.re1.yahoo.com (mrout1-b.corp.re1.yahoo.com [69.147.107.20]) by mx1.freebsd.org (Postfix) with ESMTP id 167A88FC0C for ; Mon, 22 Aug 2011 19:09:07 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.re1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p7MJ8e0t057234; Mon, 22 Aug 2011 12:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1314040121; bh=/gNVsHxsqjpqTDURS6fvEF2Nx+wgLs2kaGEpQHeRfW4=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=lG617Kd4uEJWmrqRzeKbLXnbxoUDpoEjUgqPQptCk3hU3Bh7O+fWeyDYRwF8KQ2/y /USqBS5kQ2tX7vHcK7ujv7FPPKDVxfAZLNfxl9+Kv4dvOf6gyp5js8/OCZDU8vKVf7 jCNJVIiWgtDCG3/+UqqEI7BEcPPo7iLsUFkQ2SQg= From: Sean Bruno To: Kazumaro Aoki , Dieter BSD In-Reply-To: <20110821.224402.45702056.ka@flu.if0.org> References: <20110819235902.227920@gmx.com> <20110821.224402.45702056.ka@flu.if0.org> Content-Type: text/plain; charset="UTF-8" Date: Mon, 22 Aug 2011 12:08:40 -0700 Message-ID: <1314040120.2560.1.camel@hitfishpass-lx.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Content-Transfer-Encoding: 7bit Cc: "freebsd-firewire@freebsd.org" Subject: Re: fwcontrol -R is broken, need help, urgent 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, 22 Aug 2011 19:09:08 -0000 On Sun, 2011-08-21 at 06:44 -0700, Kazumaro Aoki wrote: > From: "Dieter BSD" > Subject: fwcontrol -R is broken, need help, urgent > Date: Fri, 19 Aug 2011 23:59:01 +0000 > > > "fwcontrol -R foo.dv" gives: > > fwcontrol: detect_recv_fn: ioctl FW_SSTBUF: Bad file descriptor > > > > I tried both controllers (-u 0, -u 1), same result. > > > > I know that -R worked under 6.x with the VIA controller. > > (Still can't do -S with the VIA due to the cyclemaster PR.) > > I'm fairly sure that -R worked with the NEC under 6.x and 7.x. > > I met the same problem, and I use fwcontrol in 6R on 8R box. > Fortunately, I noticed the problem when I used 6R on a different PC, > and I made the statically linked fwcontrol binary on 6R machine, and I > kept it. > > Kazumaro > _______________________________________________ Ugh, I see one obvious problem, the device wasn't open at all when detect_recv_fn() was called. Try this patch: http://people.freebsd.org/~sbruno/fwcontrol.diff Sean From owner-freebsd-firewire@FreeBSD.ORG Wed Aug 24 22:11:21 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 F1B36106566B for ; Wed, 24 Aug 2011 22:11:21 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.re1.yahoo.com (mrout1-b.corp.re1.yahoo.com [69.147.107.20]) by mx1.freebsd.org (Postfix) with ESMTP id AE7C18FC15 for ; Wed, 24 Aug 2011 22:11:21 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.re1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p7OMAmoX059666; Wed, 24 Aug 2011 15:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1314223849; bh=guEIDCCXxfNqEw9w2tQWZNVcnZf7Phxpa4yngqASfKI=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=V/3QIWnC1ex8UmpV1lCIQZ9MkUSNOOReoLf2lQP47P1f3Hf0Mi6KWZ6iaJ6MawYeZ d3aNeSioGoDivTDu82OI6AjdJwbOJzVhRjBjlQ2DlZjYH7km11wGqH8qigIvwg3L7+ Bb6ttZHWa/9IQCoPIdDAQQjOwmvm7AdvIMKTvRGI= From: Sean Bruno To: Kazumaro Aoki In-Reply-To: <1314040120.2560.1.camel@hitfishpass-lx.corp.yahoo.com> References: <20110819235902.227920@gmx.com> <20110821.224402.45702056.ka@flu.if0.org> <1314040120.2560.1.camel@hitfishpass-lx.corp.yahoo.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 24 Aug 2011 15:10:47 -0700 Message-ID: <1314223847.2734.7.camel@hitfishpass-lx.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Content-Transfer-Encoding: 7bit Cc: "freebsd-firewire@freebsd.org" , Dieter BSD Subject: Re: fwcontrol -R is broken, need help, urgent 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, 24 Aug 2011 22:11:22 -0000 On Mon, 2011-08-22 at 12:08 -0700, Sean Bruno wrote: > On Sun, 2011-08-21 at 06:44 -0700, Kazumaro Aoki wrote: > > From: "Dieter BSD" > > Subject: fwcontrol -R is broken, need help, urgent > > Date: Fri, 19 Aug 2011 23:59:01 +0000 > > > > > "fwcontrol -R foo.dv" gives: > > > fwcontrol: detect_recv_fn: ioctl FW_SSTBUF: Bad file descriptor > > > > > > I tried both controllers (-u 0, -u 1), same result. > > > > > > I know that -R worked under 6.x with the VIA controller. > > > (Still can't do -S with the VIA due to the cyclemaster PR.) > > > I'm fairly sure that -R worked with the NEC under 6.x and 7.x. > > > > I met the same problem, and I use fwcontrol in 6R on 8R box. > > Fortunately, I noticed the problem when I used 6R on a different PC, > > and I made the statically linked fwcontrol binary on 6R machine, and I > > kept it. > > > > Kazumaro > > _______________________________________________ > > Ugh, I see one obvious problem, the device wasn't open at all when > detect_recv_fn() was called. Try this patch: > > http://people.freebsd.org/~sbruno/fwcontrol.diff > > 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. sean From owner-freebsd-firewire@FreeBSD.ORG Thu Aug 25 02:34: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 5470E106566B for ; Thu, 25 Aug 2011 02:34:07 +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 F37968FC14 for ; Thu, 25 Aug 2011 02:34:06 +0000 (UTC) Received: (qmail 7731 invoked by uid 0); 25 Aug 2011 02:34:05 -0000 Received: from 67.206.163.230 by rms-us007.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Thu, 25 Aug 2011 02:34:04 +0000 From: "Dieter BSD" Message-ID: <20110825023405.227920@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: r41mdj1tlHK1IRfSAGVn6jE5MjQ1N10s Subject: Re: fwcontrol -R is broken, need help, urgent 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: Thu, 25 Aug 2011 02:34:07 -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'll look at your patch as soon as I get a chance. I did manage to figure out that rearranging the arguments worked around the problem. If we want the 9.0 fwcontrol to work, doesn't kern/144843 need to be fixed?  I'm not sure whether to blame the kernel (shouldn't panic unless someone is doing something really screwy like writing random junk into /dev/kmem) or the compiler (maybe generating code that does something sufficiently screwy that the kernel can't defend against it).