From owner-freebsd-firewire@FreeBSD.ORG Wed Mar 3 14:43:02 2010 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 8D38B106566B for ; Wed, 3 Mar 2010 14:43:02 +0000 (UTC) (envelope-from ka@flu.if0.org) Received: from flu.if0.org (v112022.ppp.asahi-net.or.jp [124.155.112.22]) by mx1.freebsd.org (Postfix) with ESMTP id 2A4B68FC14 for ; Wed, 3 Mar 2010 14:43:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by flu.if0.org (8.14.3/8.14.3) with ESMTP id o23Eh043006643 for ; Wed, 3 Mar 2010 23:43:00 +0900 (JST) (envelope-from ka@flu.if0.org) Date: Wed, 03 Mar 2010 23:42:59 +0900 (JST) Message-Id: <20100303.234259.193731492.ka@flu.if0.org> To: freebsd-firewire@freebsd.org From: Kazumaro Aoki In-Reply-To: <1267546296.2264.0.camel@localhost.localdomain> References: <20100207.220956.59557668.ka@flu.if0.org> <20100303.001031.193727057.ka@flu.if0.org> <1267546296.2264.0.camel@localhost.localdomain> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Mar__3_23_42_59_2010_364)--" Content-Transfer-Encoding: 7bit Subject: Re: reset with fwcontrol -R X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-firewire@freebsd.org List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 14:43:02 -0000 ----Next_Part(Wed_Mar__3_23_42_59_2010_364)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Sean Bruno Subject: Re: reset with fwcontrol -R Date: Tue, 02 Mar 2010 08:11:36 -0800 >> > In recent month, the system is in good condition, but today morning, >> > system crashed and made a crash dump. >> (snip) >> > # kgdb /boot/kernel/kernel vmcore.1 >> (snip) >> > Fatal trap 12: page fault while in kernel mode >> > current process = 42 (fw0_taskq) >> > panic: page fault >> (snip) >> > (kgdb) bt >> (snip) >> > #7 0xc05f6d87 in fwohci_task_dma (arg=0xc5662000, pending=1) >> > at /home/usr/src/sys/dev/firewire/fwohci.c:2206 >> (snip) >> I noticed lines 2197-2199 are >> #if 0 >> dump_db(sc, dmach); >> #endif > >> Are the information generated by the commented out the lines useful to >> analyze the problem? > > I've never used that code, but I think it is more debugging. If it is > useful for debugging this issue, I can make it a sysctl for debugging. I found that the following sequence cause a panic with high probability: 1. fwcontrol -R foo.dv 2. terminate fwcontrol using ctrl-c 3. start fwcontrol -R bar.dv before finishing fwcontrol -R foo.dv The used fwcontrol command is imported from FreeBSD6R, and back-trace of kgdb command always says line 2206 cause a panic. I attached the log file generated by line 2198. Can you fix the problem? # I write send-pr when it seems to take long time in this mailing-list. When I used fwcontrol in the original distribution (FreeBSD 7.2R/i386) with "fwcontrol -M dv -R bar.dv", I got the error message: fwcontrol: main: Error opening firewire controller #0 /dev/fw0.0 in recv_data : Device busy and the system does not panic. It certainly prohibits a panic, but it also seems to prevent to show the firewire status that is generated fwcontrol command without any option. I also met a panic with another sequence caused by kldunload of firewire.ko module. However, I usually do not kldunload, and I do not write the details. If you are interested in the panic, I can write the back-trace information. Best regards, Kazumaro ----Next_Part(Wed_Mar__3_23_42_59_2010_364)-- Content-Type: Application/Octet-Stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="2198.log.gz" H4sIAAAAAAACA+3TzWqDQBQF4H2f4ixbyGJmqlaELkzMQqpJSUyhS38pJJhiLfj4HWMpXXXMIkjD uSCMcrwXvqtx2gD3UNJTwlMWquMx04/2ZVOXBw8fbdq0CDcIYh+iEzfx3/nFZ9OUdYtgDmM2f8Mj RndcPwN4Wr4iXCWYb/TNoazRl18UugOC8r2sC2zbtNVv1a2psZCZ5UhXYL1LImwTBT+KTpcuqSC+ awgqfXAtqTxVZCk2u9XMXyThy3KGNN+jn3wr1Z1xZieEq9zC0l27qspFpas/9oOsB3EKDEVpSlOa 0pT+V9L2GdL2KGn7UtL2BNI2pSlNaUpTmtKUpjSlKU1pSlOa0pSmNKUpTWlKU5rSlKY0pSlNaUpT mtKUpjSlr0PalPu1CVP0Z1PG2cMmjbGRm+aXwH+O0pSmNKUpTekJpZ0zpJ1R0s6lpJ0JpB1KU5rS lKb09Up/ATfxegPKOgAA ----Next_Part(Wed_Mar__3_23_42_59_2010_364)----