From owner-freebsd-firewire@FreeBSD.ORG Mon Jul 6 02:05:23 2009 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 3F538106566C for ; Mon, 6 Jul 2009 02:05:23 +0000 (UTC) (envelope-from freebsd-firewire@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id EC1328FC13 for ; Mon, 6 Jul 2009 02:05:22 +0000 (UTC) (envelope-from freebsd-firewire@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1MNdBb-0006Qd-64 for freebsd-firewire@freebsd.org; Mon, 06 Jul 2009 01:40:03 +0000 Received: from dslb-094-222-041-056.pools.arcor-ip.net ([94.222.41.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jul 2009 01:40:03 +0000 Received: from js by dslb-094-222-041-056.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jul 2009 01:40:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-firewire@freebsd.org From: Julian Stecklina Date: Sun, 05 Jul 2009 23:03:47 +0200 Lines: 19 Message-ID: <878wj2r3t1.fsf@tabernacle.lan> References: <1246316092.3981.11.camel@Lappy> <87hbxxp5ot.fsf@tabernacle.lan> <1246483794.3443.6.camel@Lappy> <87fxdguj4a.fsf@tabernacle.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-094-222-041-056.pools.arcor-ip.net X-From-Line: nobody Sun Jul 5 23:03:47 2009 X-Archive: encrypt User-Agent: Gnus/5.101 (Gnus v5.10.10) Cancel-Lock: sha1:wK5PP24osLqWqRr9i4j35XwZyQk= Sender: news Subject: Re: 8-CURRENT 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: Mon, 06 Jul 2009 02:05:23 -0000 Julian Stecklina writes: >> 2. Can you boot with the firewire enabled in the BIOS and the following >> in loader.conf: >> firewire_load="NO" >> If you can boot this way, what happens when you: >> kldload sbp.ko http://os.inf.tu-dresden.de/~jsteckli/fbsd/sbp-after-boot.txt In summary: No devices are discovered, even though I have a DVD and a disk attached to the bus. Regards, -- Julian Stecklina The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners - Ernst Jan Plugge From owner-freebsd-firewire@FreeBSD.ORG Mon Jul 6 11:06:57 2009 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 025D31065670 for ; Mon, 6 Jul 2009 11:06:57 +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 E28EB8FC12 for ; Mon, 6 Jul 2009 11:06:56 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n66B6uB3010739 for ; Mon, 6 Jul 2009 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n66B6uc7010735 for freebsd-firewire@FreeBSD.org; Mon, 6 Jul 2009 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 6 Jul 2009 11:06:56 GMT Message-Id: <200907061106.n66B6uc7010735@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, 06 Jul 2009 11:06:57 -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 -------------------------------------------------------------------------------- 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 7 problems total. From owner-freebsd-firewire@FreeBSD.ORG Mon Jul 6 15:41:17 2009 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 AB0A5106564A for ; Mon, 6 Jul 2009 15:41:17 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: from iron2.pdx.net (iron2.pdx.net [69.64.224.71]) by mx1.freebsd.org (Postfix) with ESMTP id 6D8658FC30 for ; Mon, 6 Jul 2009 15:41:17 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: (qmail 866 invoked from network); 6 Jul 2009 08:41:15 -0700 Received: from host-246-98.pubnet.pdx.edu (HELO ?131.252.246.98?) (131.252.246.98) by iron2.pdx.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 6 Jul 2009 08:41:15 -0700 From: Sean Bruno To: Julian Stecklina In-Reply-To: <878wj2r3t1.fsf@tabernacle.lan> References: <1246316092.3981.11.camel@Lappy> <87hbxxp5ot.fsf@tabernacle.lan> <1246483794.3443.6.camel@Lappy> <87fxdguj4a.fsf@tabernacle.lan> <878wj2r3t1.fsf@tabernacle.lan> Content-Type: text/plain Date: Mon, 06 Jul 2009 08:41:16 -0700 Message-Id: <1246894876.2966.8.camel@Lappy> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 (2.26.2-1.fc11) Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org Subject: Re: 8-CURRENT 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: Mon, 06 Jul 2009 15:41:18 -0000 On Sun, 2009-07-05 at 23:03 +0200, Julian Stecklina wrote: > Julian Stecklina writes: > > >> 2. Can you boot with the firewire enabled in the BIOS and the following > >> in loader.conf: > >> firewire_load="NO" > >> If you can boot this way, what happens when you: > >> kldload sbp.ko > > http://os.inf.tu-dresden.de/~jsteckli/fbsd/sbp-after-boot.txt > > In summary: No devices are discovered, even though I have a DVD and a > disk attached to the bus. > > Regards, Hrm ... I think that fwohci() or firewire() is getting stuck. Can you turn up debug and re-run your boot up sequence just like the above dmesg? firewire_debug=3 sbp_debug=3 Sean P.S. This is a lot of debugging. :D From owner-freebsd-firewire@FreeBSD.ORG Wed Jul 8 00:04:11 2009 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 1E693106564A for ; Wed, 8 Jul 2009 00:04:11 +0000 (UTC) (envelope-from freebsd-firewire@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id CBB3A8FC14 for ; Wed, 8 Jul 2009 00:04:10 +0000 (UTC) (envelope-from freebsd-firewire@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MOKds-0006Mn-Ju for freebsd-firewire@freebsd.org; Wed, 08 Jul 2009 00:04:08 +0000 Received: from dslb-094-222-035-172.pools.arcor-ip.net ([94.222.35.172]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 00:04:08 +0000 Received: from js by dslb-094-222-035-172.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 00:04:08 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-firewire@freebsd.org From: Julian Stecklina Date: Wed, 08 Jul 2009 02:03:54 +0200 Lines: 38 Message-ID: <87k52kt505.fsf@tabernacle.lan> References: <1246316092.3981.11.camel@Lappy> <87hbxxp5ot.fsf@tabernacle.lan> <1246483794.3443.6.camel@Lappy> <87fxdguj4a.fsf@tabernacle.lan> <878wj2r3t1.fsf@tabernacle.lan> <1246894876.2966.8.camel@Lappy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-094-222-035-172.pools.arcor-ip.net X-Archive: encrypt User-Agent: Gnus/5.101 (Gnus v5.10.10) Cancel-Lock: sha1:4OtFLHBzTN+zlcCOam5I1kczuDE= Sender: news Subject: Re: 8-CURRENT 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, 08 Jul 2009 00:04:11 -0000 Sean Bruno writes: > On Sun, 2009-07-05 at 23:03 +0200, Julian Stecklina wrote: >> Julian Stecklina writes: >> >> >> 2. Can you boot with the firewire enabled in the BIOS and the following >> >> in loader.conf: >> >> firewire_load="NO" >> >> If you can boot this way, what happens when you: >> >> kldload sbp.ko >> >> http://os.inf.tu-dresden.de/~jsteckli/fbsd/sbp-after-boot.txt >> >> In summary: No devices are discovered, even though I have a DVD and a >> disk attached to the bus. >> >> Regards, > > Hrm ... I think that fwohci() or firewire() is getting stuck. > > Can you turn up debug and re-run your boot up sequence just like the > above dmesg? > > firewire_debug=3 > sbp_debug=3 I think I am too stupid to set these variables. I tried debug.firewire_debug=3 in loader.conf, but it doesn't work. After loading the modules they are always set to zero. Setting via sysctl doesn't work either, since they don't exist before loading firewire/sbp. So how do I set these? Regards, -- Julian Stecklina The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners - Ernst Jan Plugge From owner-freebsd-firewire@FreeBSD.ORG Wed Jul 8 02:04:38 2009 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 3CC2C106566C for ; Wed, 8 Jul 2009 02:04:38 +0000 (UTC) (envelope-from freebsd-firewire@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id EA40D8FC17 for ; Wed, 8 Jul 2009 02:04:37 +0000 (UTC) (envelope-from freebsd-firewire@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MOMWT-00021d-IY for freebsd-firewire@freebsd.org; Wed, 08 Jul 2009 02:04:37 +0000 Received: from dslb-094-222-036-246.pools.arcor-ip.net ([94.222.36.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 02:04:37 +0000 Received: from js by dslb-094-222-036-246.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2009 02:04:37 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-firewire@freebsd.org From: Julian Stecklina Date: Wed, 08 Jul 2009 04:04:26 +0200 Lines: 44 Message-ID: <87bpnwszf9.fsf@tabernacle.lan> References: <1246316092.3981.11.camel@Lappy> <87hbxxp5ot.fsf@tabernacle.lan> <1246483794.3443.6.camel@Lappy> <87fxdguj4a.fsf@tabernacle.lan> <878wj2r3t1.fsf@tabernacle.lan> <1246894876.2966.8.camel@Lappy> <87k52kt505.fsf@tabernacle.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-094-222-036-246.pools.arcor-ip.net X-Archive: encrypt User-Agent: Gnus/5.101 (Gnus v5.10.10) Cancel-Lock: sha1:uiGDZlCAzRjzFD16dFsmJSGnM70= Sender: news Subject: Re: 8-CURRENT 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, 08 Jul 2009 02:04:38 -0000 Julian Stecklina writes: > Sean Bruno writes: > >> On Sun, 2009-07-05 at 23:03 +0200, Julian Stecklina wrote: >>> Julian Stecklina writes: >>> >>> >> 2. Can you boot with the firewire enabled in the BIOS and the following >>> >> in loader.conf: >>> >> firewire_load="NO" >>> >> If you can boot this way, what happens when you: >>> >> kldload sbp.ko >>> >>> http://os.inf.tu-dresden.de/~jsteckli/fbsd/sbp-after-boot.txt >>> >>> In summary: No devices are discovered, even though I have a DVD and a >>> disk attached to the bus. >>> >>> Regards, >> >> Hrm ... I think that fwohci() or firewire() is getting stuck. >> >> Can you turn up debug and re-run your boot up sequence just like the >> above dmesg? >> >> firewire_debug=3 >> sbp_debug=3 > > I think I am too stupid to set these variables. I tried > debug.firewire_debug=3 in loader.conf, but it doesn't work. After > loading the modules they are always set to zero. Setting via sysctl > doesn't work either, since they don't exist before loading > firewire/sbp. So how do I set these? Okay, I hardcoded them in the source... http://os.inf.tu-dresden.de/~jsteckli/fbsd/fw-log.txt Regards, -- Julian Stecklina The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners - Ernst Jan Plugge From owner-freebsd-firewire@FreeBSD.ORG Wed Jul 8 03:13:09 2009 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 EA3311065670 for ; Wed, 8 Jul 2009 03:13:09 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 9F7708FC20 for ; Wed, 8 Jul 2009 03:13:09 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (fhernlng9zff5zvi@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id n682x4gB048563; Tue, 7 Jul 2009 19:59:04 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id n682wxwr048560; Tue, 7 Jul 2009 19:58:59 -0700 (PDT) (envelope-from jmg) Date: Tue, 7 Jul 2009 19:58:59 -0700 From: John-Mark Gurney To: Julian Stecklina Message-ID: <20090708025858.GA93646@funkthat.com> Mail-Followup-To: Julian Stecklina , freebsd-firewire@freebsd.org References: <1246316092.3981.11.camel@Lappy> <87hbxxp5ot.fsf@tabernacle.lan> <1246483794.3443.6.camel@Lappy> <87fxdguj4a.fsf@tabernacle.lan> <878wj2r3t1.fsf@tabernacle.lan> <1246894876.2966.8.camel@Lappy> <87k52kt505.fsf@tabernacle.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k52kt505.fsf@tabernacle.lan> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hydrogen.funkthat.com [127.0.0.1]); Tue, 07 Jul 2009 19:59:06 -0700 (PDT) Cc: freebsd-firewire@freebsd.org Subject: Re: 8-CURRENT 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, 08 Jul 2009 03:13:10 -0000 Julian Stecklina wrote this message on Wed, Jul 08, 2009 at 02:03 +0200: > Sean Bruno writes: > > > On Sun, 2009-07-05 at 23:03 +0200, Julian Stecklina wrote: > >> Julian Stecklina writes: > >> > >> >> 2. Can you boot with the firewire enabled in the BIOS and the following > >> >> in loader.conf: > >> >> firewire_load="NO" > >> >> If you can boot this way, what happens when you: > >> >> kldload sbp.ko > >> > >> http://os.inf.tu-dresden.de/~jsteckli/fbsd/sbp-after-boot.txt > >> > >> In summary: No devices are discovered, even though I have a DVD and a > >> disk attached to the bus. > >> > >> Regards, > > > > Hrm ... I think that fwohci() or firewire() is getting stuck. > > > > Can you turn up debug and re-run your boot up sequence just like the > > above dmesg? > > > > firewire_debug=3 > > sbp_debug=3 > > I think I am too stupid to set these variables. I tried > debug.firewire_debug=3 in loader.conf, but it doesn't work. After > loading the modules they are always set to zero. Setting via sysctl > doesn't work either, since they don't exist before loading > firewire/sbp. So how do I set these? laoder.conf doesn't get reread after boot. You can use kenv to set these tunables, and then load the module... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-firewire@FreeBSD.ORG Thu Jul 9 03:47:15 2009 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 265151065673 for ; Thu, 9 Jul 2009 03:47:15 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: from iron2.pdx.net (iron2.pdx.net [69.64.224.71]) by mx1.freebsd.org (Postfix) with ESMTP id DA4558FC1F for ; Thu, 9 Jul 2009 03:47:14 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: (qmail 14012 invoked from network); 8 Jul 2009 15:20:31 -0700 Received: from host-244-242.pubnet.pdx.edu (HELO ?131.252.244.242?) (131.252.244.242) by iron2.pdx.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Jul 2009 15:20:31 -0700 From: Sean Bruno To: Julian Stecklina In-Reply-To: <87bpnwszf9.fsf@tabernacle.lan> References: <1246316092.3981.11.camel@Lappy> <87hbxxp5ot.fsf@tabernacle.lan> <1246483794.3443.6.camel@Lappy> <87fxdguj4a.fsf@tabernacle.lan> <878wj2r3t1.fsf@tabernacle.lan> <1246894876.2966.8.camel@Lappy> <87k52kt505.fsf@tabernacle.lan> <87bpnwszf9.fsf@tabernacle.lan> Content-Type: text/plain Date: Wed, 08 Jul 2009 15:20:33 -0700 Message-Id: <1247091633.2552.3.camel@Lappy> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 (2.26.2-1.fc11) Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org Subject: Re: 8-CURRENT 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: Thu, 09 Jul 2009 03:47:15 -0000 On Wed, 2009-07-08 at 04:04 +0200, Julian Stecklina wrote: > Julian Stecklina writes: > > > Sean Bruno writes: > > > >> On Sun, 2009-07-05 at 23:03 +0200, Julian Stecklina wrote: > >>> Julian Stecklina writes: > >>> > >>> >> 2. Can you boot with the firewire enabled in the BIOS and the following > >>> >> in loader.conf: > >>> >> firewire_load="NO" > >>> >> If you can boot this way, what happens when you: > >>> >> kldload sbp.ko > >>> > >>> http://os.inf.tu-dresden.de/~jsteckli/fbsd/sbp-after-boot.txt > >>> > >>> In summary: No devices are discovered, even though I have a DVD and a > >>> disk attached to the bus. > >>> > >>> Regards, > >> > >> Hrm ... I think that fwohci() or firewire() is getting stuck. > >> > >> Can you turn up debug and re-run your boot up sequence just like the > >> above dmesg? > >> > >> firewire_debug=3 > >> sbp_debug=3 > > > > I think I am too stupid to set these variables. I tried > > debug.firewire_debug=3 in loader.conf, but it doesn't work. After > > loading the modules they are always set to zero. Setting via sysctl > > doesn't work either, since they don't exist before loading > > firewire/sbp. So how do I set these? > > Okay, I hardcoded them in the source... > > http://os.inf.tu-dresden.de/~jsteckli/fbsd/fw-log.txt > > Regards, Thanks. Let me digest what is going on here and see if I can patch it this weekend. Sean From owner-freebsd-firewire@FreeBSD.ORG Thu Jul 9 04:02:29 2009 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 9764B10656CA for ; Thu, 9 Jul 2009 04:02:29 +0000 (UTC) (envelope-from js@alien8.de) Received: from mail.skyhub.de (cl-3117.ham-01.de.sixxs.net [IPv6:2001:6f8:900:c2c::2]) by mx1.freebsd.org (Postfix) with ESMTP id B11BE8FC22 for ; Thu, 9 Jul 2009 04:02:28 +0000 (UTC) (envelope-from js@alien8.de) Received: from localhost (localhost [127.0.0.1]) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTP id C79BA244B5A; Thu, 9 Jul 2009 03:36:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1247103392; bh=QMvFrAI5JUB/U7rvcYMZoUW5uB95HqSgCYSjj6U0bU0=; h=To:Cc:Subject:References:From:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=JdkKW6hVWvF+azeIkWd3wUkEzY9acCkYEEZer pqORJxD8K5j9OETLLRM2gvqRiRBPonn6U6g93KntzeUdv+QmYkRn2AlvtVVXDVtBro9 1CQ8kwGDnaAVluG09slFQTof1kkpubt2CSxfWKsUbjlSHtQasjk3fwpS961HT4ZydPw = X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (door.skyhub.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7gYO+M7pGldj; Thu, 9 Jul 2009 03:36:31 +0200 (CEST) Received: from tabernacle.localnet (unknown [IPv6:2001:6f8:10f6:200:21b:77ff:fe41:11ab]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 5D19B1D95F0; Thu, 9 Jul 2009 03:36:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1247103391; bh=QMvFrAI5JUB/U7rvcYMZoUW5uB95HqSgCYSjj6U0bU0=; h=To:Cc:Subject:References:From:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=U4SScO5cqoOG0A/9jC8t5GHMGIAdk2P/8TsZ2 QbXoLn3TxQ5VQMvAAZz7t5/oiuVybd1eWq36f8UzKe+XyFbEuACKgcpSDqnkdK3eeuO uZqZeexHkJSt4WV+NUPe6b9JgOJjJ8JGOpVsv6t6sdsqIrGOlQ53C2pvj65rXbUmiu8 = To: Sean Bruno References: <1246316092.3981.11.camel@Lappy> <87hbxxp5ot.fsf@tabernacle.lan> <1246483794.3443.6.camel@Lappy> <87fxdguj4a.fsf@tabernacle.lan> <878wj2r3t1.fsf@tabernacle.lan> <1246894876.2966.8.camel@Lappy> <87k52kt505.fsf@tabernacle.lan> <87bpnwszf9.fsf@tabernacle.lan> <1247093348.2552.4.camel@Lappy> X-Archive: encrypt From: Julian Stecklina X-Hashcash: 1:23:090709:sean.bruno@dsl-only.net::pZ6a5aRW7iyPbana:000000000000000000000000000000000000002UYD X-Hashcash: 1:23:090709:freebsd-firewire@freebsd.org::tLiH+rM8xYovTfY+:000000000000000000000000000000000hyTk Date: Thu, 09 Jul 2009 03:36:27 +0200 In-Reply-To: <1247093348.2552.4.camel@Lappy> (Sean Bruno's message of "Wed\, 08 Jul 2009 15\:49\:08 -0700") Message-ID: <8763e2r61w.fsf@tabernacle.lan> User-Agent: Gnus/5.101 (Gnus v5.10.10) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: freebsd-firewire@freebsd.org Subject: Re: 8-CURRENT 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: Thu, 09 Jul 2009 04:02:30 -0000 --=-=-= Sean Bruno writes: >> >> Hrm ... I think that fwohci() or firewire() is getting stuck. >> >> >> >> Can you turn up debug and re-run your boot up sequence just like the >> >> above dmesg? >> >> >> >> firewire_debug=3 >> >> sbp_debug=3 >> > >> > I think I am too stupid to set these variables. I tried >> > debug.firewire_debug=3 in loader.conf, but it doesn't work. After >> > loading the modules they are always set to zero. Setting via sysctl >> > doesn't work either, since they don't exist before loading >> > firewire/sbp. So how do I set these? >> >> Okay, I hardcoded them in the source... >> >> http://os.inf.tu-dresden.de/~jsteckli/fbsd/fw-log.txt >> >> Regards, > > For fun, please try to apply this diff and retest. The attached dmesg was taken with firewire and sbp loaded from loader.conf with no devices attached to the bus. It still hangs waiting for xpt_config. Regards, -- Julian Stecklina The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners - Ernst Jan Plugge --=-=-= Content-Disposition: attachment; filename=minicomlog Content-Description: dmesg log -\|/-\|GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-BETA1 #0: Wed Jul 8 18:58:30 CEST 2009 root@occam.lan:/usr/src/sys/amd64/compile/GENERICNOFW WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Phenom(tm) 8450 Triple-Core Processor (2095.46-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x100f23 Stepping = 3 Features=0x178bfbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x7ff TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 1797529600 (1714 MB) ACPI APIC Table: <060408 APIC0822> FreeBSD/SMP: Multiprocessor System Detected: 3 CPUs FreeBSD/SMP: 1 package(s) x 3 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: <060408 RSDT0822> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of ffb80000, 80000 (3) failed acpi0: reservation of fff00000, 100000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 6fe00000 (3) failed ACPI HPET table warning: Sequence is non-zero (2) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xd000-0xd0ff mem 0xd0000000-0xdfffffff,0xfe9f0000-0xfe9fffff,0xfe800000-0xfe8fffff irq 18 at device 5.0 on pci1 pci1: at device 5.1 (no driver attached) pcib2: irq 17 at device 5.0 on pci0 pci2: on pcib2 re0: port 0xe800-0xe8ff mem 0xfdfff000-0xfdffffff,0xfdfe0000-0xfdfeffff irq 17 at device 0.0 on pci2 re0: Using 1 MSI messages re0: Chip rev. 0x3c000000 re0: MAC rev. 0x00400000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:21:85:14:fe:5b re0: [FILTER] pcib3: irq 18 at device 6.0 on pci0 pci3: on pcib3 fwohci0: <1394 Open Host Controller Interface> mem 0xfebff800-0xfebfffff,0xfebff400-0xfebff47f,0xfebff000-0xfebff07f,0xfebfec00-0xfebfec7f irq 18 at device 0.0 on pci3 fwohci0: [ITHREAD] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:10:dc:00:01:62:41:78 fwohci0: fwphy_rddata:: 0x2, retry=6 fwohci0: fwphy_rddata:: 0x3, retry=6 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: fwphy_rddata:: 0x5, retry=6 fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 sbp0: on firewire0 fwohci0: Initiate bus reset Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x74 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x74 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x74 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x74 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x74 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x85 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x85 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x85 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x85 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c Sleeping on "fwphyr" with the following non-sleepable locks held: exclusive sleep mutex firewire (firewire) r = 0 (0xffffff800033f858) locked @ /usr/src/sys/modules/firewire/firewire/../../../dev/firewire/fwohci.c:2524 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_warn() at witness_warn+0x2c2 _sleep() at _sleep+0x60 fwphy_rddata() at fwphy_rddata+0x1d1 fwohci_ibr() at fwohci_ibr+0x85 firewire_attach() at firewire_attach+0x2ba device_attach() at device_attach+0x69 fwohci_pci_add_child() at fwohci_pci_add_child+0x57 bus_generic_probe() at bus_generic_probe+0x67 fwohci_pci_attach() at fwohci_pci_attach+0x248 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x95 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pci_attach() at acpi_pci_attach+0x147 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x1a7 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x1fd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0x9f3 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd5 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c atapci0: port 0xc000-0xc007,0xb000-0xb003,0xa000-0xa007,0x9000-0x9003,0x8000-0x800f mem 0xfe7ff800-0xfe7ffbff irq 22 at device 17.0 on pci0 atapci0: [ITHREAD] atapci0: AHCI v1.10 controller with 6 3Gbps ports, PM supported ata2: on atapci0 ata2: port is not ready (timeout 0ms) tfd = 000001d0 ata2: software reset clear timeout ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] ata6: on atapci0 ata6: [ITHREAD] ata7: on atapci0 ata7: [ITHREAD] ohci0: mem 0xfe7fe000-0xfe7fefff irq 16 at device 18.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ohci1: mem 0xfe7fd000-0xfe7fdfff irq 16 at device 18.1 on pci0 ohci1: [ITHREAD] usbus1: on ohci1 ehci0: mem 0xfe7ff000-0xfe7ff0ff irq 17 at device 18.2 on pci0 ehci0: [ITHREAD] usbus2: EHCI version 1.0 usbus2: on ehci0 ohci2: mem 0xfe7fc000-0xfe7fcfff irq 18 at device 19.0 on pci0 ohci2: [ITHREAD] usbus3: on ohci2 ohci3: mem 0xfe7f7000-0xfe7f7fff irq 18 at device 19.1 on pci0 ohci3: [ITHREAD] usbus4: on ohci3 ehci1: mem 0xfe7f6800-0xfe7f68ff irq 19 at device 19.2 on pci0 ehci1: [ITHREAD] usbus5: EHCI version 1.0 usbus5: on ehci1 pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] ata1: on atapci1 ata1: [ITHREAD] pci0: at device 20.2 (no driver attached) isab0: at device 20.3 on pci0 isa0: on isab0 pcib4: at device 20.4 on pci0 pci4: on pcib4 ohci4: mem 0xfe7f5000-0xfe7f5fff irq 18 at device 20.5 on pci0 ohci4: [ITHREAD] usbus6: on ohci4 acpi_button0: on acpi0 atrtc0: port 0x70-0x71 irq 8 on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] uart0: console (9600,n,8,1) atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] cpu0: on acpi0 acpi_throttle0: on cpu0 hwpstate0: on cpu0 cpu1: on acpi0 cpu2: on acpi0 orm0: at iomem 0xd1000-0xd1fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range Timecounters tick every 1.000 msec usbus6: 12Mbps Full Speed USB v1.0 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 480Mbps High Speed USB v2.0 ad4: 476940MB at ata2-master SATA300 ugen6.1: at usbus6 uhub0: on usbus6 ugen0.1: at usbus0 uhub1: on usbus0 ugen1.1: at usbus1 uhub2: on usbus1 ugen2.1: at usbus2 uhub3: on usbus2 ugen3.1: at usbus3 uhub4: on usbus3 ugen4.1: at usbus4 uhub5: on usbus4 ugen5.1: at usbus5 uhub6: on usbus5 GEOM: ad4s1: geometry does not match label (255h,63s != 16h,63s). uhub0: 2 ports with 2 removable, self powered uhub1: 3 ports with 3 removable, self powered uhub2: 3 ports with 3 removable, self powered uhub4: 3 ports with 3 removable, self powered uhub5: 3 ports with 3 removable, self powered uhub3: 6 ports with 6 removable, self powered uhub6: 6 ports with 6 removable, self powered ugen2.2: at usbus2 uhub7: on usbus2 uhub7: 4 ports with 4 removable, self powered ugen1.2: at usbus1 ukbd0: on usbus1 kbd2 at ukbd0 uhid0: on usbus1 run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config --=-=-=-- From owner-freebsd-firewire@FreeBSD.ORG Thu Jul 9 04:15:52 2009 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 1B9D91065802 for ; Thu, 9 Jul 2009 04:15:52 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: from iron2.pdx.net (iron2.pdx.net [69.64.224.71]) by mx1.freebsd.org (Postfix) with ESMTP id E48998FC1A for ; Thu, 9 Jul 2009 04:15:51 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: (qmail 2158 invoked from network); 8 Jul 2009 15:49:06 -0700 Received: from host-244-242.pubnet.pdx.edu (HELO ?131.252.244.242?) (131.252.244.242) by iron2.pdx.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Jul 2009 15:49:06 -0700 From: Sean Bruno To: Julian Stecklina In-Reply-To: <87bpnwszf9.fsf@tabernacle.lan> References: <1246316092.3981.11.camel@Lappy> <87hbxxp5ot.fsf@tabernacle.lan> <1246483794.3443.6.camel@Lappy> <87fxdguj4a.fsf@tabernacle.lan> <878wj2r3t1.fsf@tabernacle.lan> <1246894876.2966.8.camel@Lappy> <87k52kt505.fsf@tabernacle.lan> <87bpnwszf9.fsf@tabernacle.lan> Content-Type: multipart/mixed; boundary="=-Z1PMy3ujl2uNspxmxomY" Date: Wed, 08 Jul 2009 15:49:08 -0700 Message-Id: <1247093348.2552.4.camel@Lappy> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 (2.26.2-1.fc11) Cc: freebsd-firewire@freebsd.org Subject: Re: 8-CURRENT 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: Thu, 09 Jul 2009 04:15:52 -0000 --=-Z1PMy3ujl2uNspxmxomY Content-Type: text/plain Content-Transfer-Encoding: 7bit > >> Hrm ... I think that fwohci() or firewire() is getting stuck. > >> > >> Can you turn up debug and re-run your boot up sequence just like the > >> above dmesg? > >> > >> firewire_debug=3 > >> sbp_debug=3 > > > > I think I am too stupid to set these variables. I tried > > debug.firewire_debug=3 in loader.conf, but it doesn't work. After > > loading the modules they are always set to zero. Setting via sysctl > > doesn't work either, since they don't exist before loading > > firewire/sbp. So how do I set these? > > Okay, I hardcoded them in the source... > > http://os.inf.tu-dresden.de/~jsteckli/fbsd/fw-log.txt > > Regards, For fun, please try to apply this diff and retest. Sean --=-Z1PMy3ujl2uNspxmxomY Content-Disposition: attachment; filename="fwohci.c.diff" Content-Type: text/x-patch; name="fwohci.c.diff"; charset="UTF-8" Content-Transfer-Encoding: 7bit Index: fwohci.c =================================================================== --- fwohci.c (revision 195344) +++ fwohci.c (working copy) @@ -280,7 +280,8 @@ fun = (PHYDEV_WRCMD | (addr << PHYDEV_REGADDR) | (data << PHYDEV_WRDATA)); OWRITE(sc, OHCI_PHYACCESS, fun); - DELAY(100); + bus_space_barrier(sc->bst, sc->bsh, OHCI_PHYACCESS, + 4, BUS_SPACE_BARRIER_WRITE); return(fwphy_rddata( sc, addr)); } @@ -316,43 +317,65 @@ fwphy_rddata(struct fwohci_softc *sc, u_int addr) { uint32_t fun, stat; - u_int i, retry = 0; + int retry = 0; addr &= 0xf; -#define MAX_RETRY 100 -again: + + + /* + * Read requested data from OHCI PHY + * If we generate an INT_REG_FAIL error + * from our request, most likely SCLK has + * not been started yet. pause() and retry. + * Mechanics of RDCMD and RDDONE are in + * ohci 1.1 Table 5-19 + */ + + /* Clear error register */ + stat = OREAD(sc, FWOHCI_INTSTAT); + stat &= ~OHCI_INT_REG_FAIL; OWRITE(sc, FWOHCI_INTSTATCLR, OHCI_INT_REG_FAIL); + + /* Issue requested command to PHY */ fun = PHYDEV_RDCMD | (addr << PHYDEV_REGADDR); OWRITE(sc, OHCI_PHYACCESS, fun); - for ( i = 0 ; i < MAX_RETRY ; i ++ ){ - fun = OREAD(sc, OHCI_PHYACCESS); - if ((fun & PHYDEV_RDCMD) == 0 && (fun & PHYDEV_RDDONE) != 0) - break; - DELAY(100); - } - if(i >= MAX_RETRY) { - if (firewire_debug) - device_printf(sc->fc.dev, "%s: failed(1).\n", __func__); - if (++retry < MAX_RETRY) { - DELAY(100); - goto again; - } - } - /* Make sure that SCLK is started */ - stat = OREAD(sc, FWOHCI_INTSTAT); - if ((stat & OHCI_INT_REG_FAIL) != 0 || + bus_space_barrier(sc->bst, sc->bsh, OHCI_PHYACCESS, + 4, BUS_SPACE_BARRIER_WRITE); +#define MAX_RETRY 5 + for ( retry = 0 ; retry < MAX_RETRY ; retry++ ){ + /* Check for error, sleep if error reg set */ + stat = OREAD(sc, FWOHCI_INTSTAT); + if ((stat & OHCI_INT_REG_FAIL) != 0 || ((fun >> PHYDEV_REGADDR) & 0xf) != addr) { - if (firewire_debug) - device_printf(sc->fc.dev, "%s: failed(2).\n", __func__); - if (++retry < MAX_RETRY) { - DELAY(100); - goto again; + if (firewire_debug) + device_printf(sc->fc.dev, "%s: " + "OHCI_INT_REG_FAIL.\n", __func__); + /* Clear error register */ + stat = OREAD(sc, FWOHCI_INTSTAT); + stat &= ~OHCI_INT_REG_FAIL; + OWRITE(sc, FWOHCI_INTSTATCLR, OHCI_INT_REG_FAIL); + pause("fwphyr", (50 * hz + 999) / 1000); + /* Issue requested command to PHY */ + fun = PHYDEV_RDCMD | (addr << PHYDEV_REGADDR); + OWRITE(sc, OHCI_PHYACCESS, fun); + bus_space_barrier(sc->bst, sc->bsh, OHCI_PHYACCESS, + 4, BUS_SPACE_BARRIER_WRITE); + } else { /* no error, check for command completion */ + fun = OREAD(sc, OHCI_PHYACCESS); + bus_space_barrier(sc->bst, sc->bsh, OHCI_PHYACCESS, + 4, BUS_SPACE_BARRIER_READ); + if ((fun & PHYDEV_RDCMD) == 0 && (fun & PHYDEV_RDDONE) != 0) { + retry = MAX_RETRY; /* exit loop. command complete */ + } else { /* pause for 100 usec to allow command completion */ + pause("fwphyr", hz/10); + } } + } - if (firewire_debug > 1 || retry >= MAX_RETRY) + if (firewire_debug > 1 || retry > MAX_RETRY) device_printf(sc->fc.dev, - "%s:: 0x%x loop=%d, retry=%d\n", - __func__, addr, i, retry); + "%s:: 0x%x, retry=%d\n", + __func__, addr, retry); #undef MAX_RETRY return((fun >> PHYDEV_RDDATA )& 0xff); } @@ -426,20 +449,45 @@ static int fwohci_probe_phy(struct fwohci_softc *sc, device_t dev) { - uint32_t reg, reg2; + uint32_t lps, reg, reg2; + int lps_counter = 0; int e1394a = 1; -/* - * probe PHY parameters - * 0. to prove PHY version, whether compliance of 1394a. - * 1. to probe maximum speed supported by the PHY and - * number of port supported by core-logic. - * It is not actually available port on your PC . - */ + + /* + * Enable LPS(Link Power Status as per + * section 5.7 of OHCI v1.1 + * This allows PHY communication after + * a hard/soft reset + * + * Some users report that the code + * will crash without the pause due + * to the lps bit being set and the + * PHY not being up. Implement pause + * here to work around this error. + */ OWRITE(sc, OHCI_HCCCTL, OHCI_HCC_LPS); - DELAY(500); - + bus_space_barrier(sc->bst, sc->bsh, OHCI_HCCCTL, 4, BUS_SPACE_BARRIER_WRITE); + for (lps = 0, lps_counter = 0; !lps && lps_counter < 3; lps_counter++) { + pause("fwlps", (50 * hz + 999) / 1000); + lps = (OREAD(sc, OHCI_HCCCTL) & OHCI_HCC_LPS); + } + /* + * probe PHY parameters + * 0. to prove PHY version, whether compliance of 1394a. + * 1. to probe maximum speed supported by the PHY and + * number of port supported by core-logic. + * It is not actually available port on your PC . + */ reg = fwphy_rddata(sc, FW_PHY_SPD_REG); + /* + * ref 1394-2000 table 5B-1 + * ref 1394-1995 table J.12 + * If Extended is not set + * Assume 1394-1995 + * If Extended is set + * Assume 1394-2000(1394a) + */ if((reg >> 5) != 7 ){ sc->fc.mode &= ~FWPHYASYST; sc->fc.nport = reg & FW_PHY_NP; @@ -453,12 +501,12 @@ "Phy 1394 only %s, %d ports.\n", linkspeed[sc->fc.speed], sc->fc.nport); }else{ - reg2 = fwphy_rddata(sc, FW_PHY_ESPD_REG); sc->fc.mode |= FWPHYASYST; sc->fc.nport = reg & FW_PHY_NP; + reg2 = fwphy_rddata(sc, FW_PHY_ESPD_REG); sc->fc.speed = (reg2 & FW_PHY_ESPD) >> 5; if (sc->fc.speed > MAX_SPEED) { - device_printf(dev, "invalid speed %d (fixed to %d).\n", + device_printf(dev, "invalid extended speed %d (fixed to %d).\n", sc->fc.speed, MAX_SPEED); sc->fc.speed = MAX_SPEED; } @@ -468,11 +516,7 @@ /* check programPhyEnable */ reg2 = fwphy_rddata(sc, 5); -#if 0 - if (e1394a && (OREAD(sc, OHCI_HCCCTL) & OHCI_HCC_PRPHY)) { -#else /* XXX force to enable 1394a */ if (e1394a) { -#endif if (firewire_debug) device_printf(dev, "Enable 1394a Enhancements\n"); @@ -488,6 +532,13 @@ reg2 = fwphy_wrdata(sc, 5, reg2); } + /* + * Re-read and check for extended 1394a + * PHY Register map. + * Then set the Contender bit on. + * This makes us a possible bus or isoc + * resource manager. (ieee 1394a-2000, 5B.1) + */ reg = fwphy_rddata(sc, FW_PHY_SPD_REG); if((reg >> 5) == 7 ){ reg = fwphy_rddata(sc, 4); --=-Z1PMy3ujl2uNspxmxomY--