From owner-freebsd-firewire@FreeBSD.ORG Mon Jun 9 11:06:58 2008 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 7021E10656FF for ; Mon, 9 Jun 2008 11:06:58 +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 3D5018FC1C for ; Mon, 9 Jun 2008 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m59B6wgV070720 for ; Mon, 9 Jun 2008 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m59B6vOU070716 for freebsd-firewire@FreeBSD.org; Mon, 9 Jun 2008 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Jun 2008 11:06:57 GMT Message-Id: <200806091106.m59B6vOU070716@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, 09 Jun 2008 11:06:58 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/74238 firewire [firewire] fw_rcv: unknown response; firewire ad-hoc w 1 problem total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/113785 firewire [firewire] dropouts when playing DV on firewire 1 problem total. From owner-freebsd-firewire@FreeBSD.ORG Tue Jun 10 21:17:33 2008 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 1A0C31065670; Tue, 10 Jun 2008 21:17:33 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id EC7018FC14; Tue, 10 Jun 2008 21:17:32 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 68D7E1A93D2; Tue, 10 Jun 2008 14:15:07 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RROcs3JekV0p; Tue, 10 Jun 2008 14:15:07 -0700 (PDT) Received: from iago.office.miralink.com (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id 1C34A1A93D1; Tue, 10 Jun 2008 14:15:07 -0700 (PDT) Message-ID: <484EEF6B.7010407@miralink.com> Date: Tue, 10 Jun 2008 14:17:31 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Hidetoshi Shimokawa References: <4846F3F9.1080302@miralink.com> <48482800.8000501@miralink.com> In-Reply-To: <48482800.8000501@miralink.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org Subject: Re: sbp_targ errors with windows initiators 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: Tue, 10 Jun 2008 21:17:33 -0000 So, it appears that the firewire target (sbp_targ) has some kind of race condition that makes a windows initiator fall down and cry. Most times when I connect a windows initiator to my sbp_targ host, I get the following: fwohci0: BUS reset fwohci0: node_id=0x8800ffc0, gen=5, non CYCLEMASTER mode sbp_targ_recv: cannot resolve nodeid=1 sbp_targ_recv: rtcode = 6 lo == 0x0 firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 fwohci0: txd err= 3 miss Ack err firewire0: New S400 device ID:0011060000004d63 fwohci0: txd err= 3 miss Ack err fwohci0: txd err= 3 miss Ack err sbp_targ_recv: cannot resolve nodeid=1 sbp_targ_recv: rtcode = 6 lo == 0x0 sbp_targ_recv: cannot resolve nodeid=1 sbp_targ_recv: rtcode = 6 lo == 0x0 sbp_targ_recv: cannot resolve nodeid=1 sbp_targ_recv: rtcode = 6 lo == 0x0 sbp_targ_recv: cannot resolve nodeid=1 sbp_targ_recv: rtcode = 6 lo == 0x0 fwohci0: txd err= 3 miss Ack err Sometimes, the initiator succeeds in the login process and sometimes it doesn't. I'm not sure why yet. Any clues? -- Sean Bruno MiraLink Corporation 6015 NE 80th Ave, Ste 100 Portland, OR 97218 Phone 503-621-5143 Fax 503-621-5199 From owner-freebsd-firewire@FreeBSD.ORG Wed Jun 11 05:37:35 2008 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 B380E1065683 for ; Wed, 11 Jun 2008 05:37:35 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3BF8FC34 for ; Wed, 11 Jun 2008 05:37:35 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: by an-out-0708.google.com with SMTP id b33so726633ana.13 for ; Tue, 10 Jun 2008 22:37:34 -0700 (PDT) Received: by 10.100.138.16 with SMTP id l16mr6753355and.58.1213161211353; Tue, 10 Jun 2008 22:13:31 -0700 (PDT) Received: by 10.101.70.3 with HTTP; Tue, 10 Jun 2008 22:13:31 -0700 (PDT) Message-ID: <626eb4530806102213w3beda7a3u89efffd01d5e254b@mail.gmail.com> Date: Tue, 10 Jun 2008 22:13:31 -0700 From: "Hidetoshi Shimokawa" Sender: freebsd@gm.nunu.org To: "Sean Bruno" In-Reply-To: <484EEF6B.7010407@miralink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4846F3F9.1080302@miralink.com> <48482800.8000501@miralink.com> <484EEF6B.7010407@miralink.com> X-Google-Sender-Auth: 7efbc1dca28fc78d Cc: freebsd-firewire@freebsd.org Subject: Re: sbp_targ errors with windows initiators 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, 11 Jun 2008 05:37:35 -0000 It could be that windows sends requests before FreeBSD finish bus probing.. On Tue, Jun 10, 2008 at 2:17 PM, Sean Bruno wrote: > So, it appears that the firewire target (sbp_targ) has some kind of race > condition that makes a windows initiator fall down and cry. Most times when > I connect a windows initiator to my sbp_targ host, I get the following: > > fwohci0: BUS reset > fwohci0: node_id=0x8800ffc0, gen=5, non CYCLEMASTER mode > sbp_targ_recv: cannot resolve nodeid=1 > sbp_targ_recv: rtcode = 6 lo == 0x0 > firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 > fwohci0: txd err= 3 miss Ack err > firewire0: New S400 device ID:0011060000004d63 > fwohci0: txd err= 3 miss Ack err > fwohci0: txd err= 3 miss Ack err > sbp_targ_recv: cannot resolve nodeid=1 > sbp_targ_recv: rtcode = 6 lo == 0x0 > sbp_targ_recv: cannot resolve nodeid=1 > sbp_targ_recv: rtcode = 6 lo == 0x0 > sbp_targ_recv: cannot resolve nodeid=1 > sbp_targ_recv: rtcode = 6 lo == 0x0 > sbp_targ_recv: cannot resolve nodeid=1 > sbp_targ_recv: rtcode = 6 lo == 0x0 > fwohci0: txd err= 3 miss Ack err > > Sometimes, the initiator succeeds in the login process and sometimes it > doesn't. I'm not sure why yet. Any clues? > > -- > > Sean Bruno > MiraLink Corporation > 6015 NE 80th Ave, Ste 100 > Portland, OR 97218 > Phone 503-621-5143 > Fax 503-621-5199 > > -- /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.ORG From owner-freebsd-firewire@FreeBSD.ORG Wed Jun 11 06:07:47 2008 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 B63251065677; Wed, 11 Jun 2008 06:07:47 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 9CA538FC0C; Wed, 11 Jun 2008 06:07:47 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id A7DFC1A9144; Tue, 10 Jun 2008 23:05:17 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mcl-HKBUt80O; Tue, 10 Jun 2008 23:05:17 -0700 (PDT) Received: from [10.47.1.74] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 1694C1A9138; Tue, 10 Jun 2008 23:05:17 -0700 (PDT) Message-ID: <484F6BB2.4080808@miralink.com> Date: Tue, 10 Jun 2008 23:07:46 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Hidetoshi Shimokawa References: <4846F3F9.1080302@miralink.com> <48482800.8000501@miralink.com> <484EEF6B.7010407@miralink.com> <626eb4530806102213w3beda7a3u89efffd01d5e254b@mail.gmail.com> In-Reply-To: <626eb4530806102213w3beda7a3u89efffd01d5e254b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org Subject: Re: sbp_targ errors with windows initiators 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, 11 Jun 2008 06:07:47 -0000 Hidetoshi Shimokawa wrote: > It could be that windows sends requests before FreeBSD finish bus probing.. > > I think that I have made sbp_targ "more" broken than I realize. It doesn't seem to work at all when connected to a RELENG 7 initiator. At least I now have an initiator that I can actually decode and debug. :) Sean P.S. Just a sanity check, SBP does work under RELENG 7? From owner-freebsd-firewire@FreeBSD.ORG Wed Jun 11 17:56:09 2008 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 08C9610656D8; Wed, 11 Jun 2008 17:56:09 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id CC3F58FC15; Wed, 11 Jun 2008 17:56:08 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 8B1651A9137; Wed, 11 Jun 2008 10:53:32 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1mMfc5Im4mWy; Wed, 11 Jun 2008 10:53:32 -0700 (PDT) Received: from [10.47.1.74] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id E39311A90AF; Wed, 11 Jun 2008 10:53:31 -0700 (PDT) Message-ID: <485011B7.7060900@miralink.com> Date: Wed, 11 Jun 2008 10:56:07 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: freebsd-firewire@freebsd.org, Hidetoshi Shimokawa Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 400/800 card 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, 11 Jun 2008 17:56:09 -0000 I have a 400/800 card installed in my RELENG_7 box that has one 800 connector and two 400 connectors on it. Looking over the system, I wonder if the card is working correctly when I attach a S400 device to it: [sean@home-test ~]$ sudo fwcontrol -t crc_len: 3 generation:1 node_count:1 sid_count:1 id link gap_cnt speed delay cIRM power port0 port1 port2 ini more 00 1 63 S800 0 1 -1W - - - 1 0 [sean@home-test ~]$ sudo fwcontrol 1 devices (info_len=1) node EUI64 status 0 00-13-3b-01-00-01-01-82 0 [sean@home-test ~]$ sudo fwcontrol -c 0 first quad: 0x044cbb31 info_len=4 crc_len=76 crc=0xbb31(OK) bus_name: 0x31333934 irmc:1 cmc:1 isc:1 bmc:1 pmc:0 cyc_clk_acc:100 max_rec:11 max_rom:0 generation:2 link_spd:3 EUI64: 00-13-3b-01-00-01-01-82 root_directory: len=0x0008(8) crc=0x2aa1(OK) 0c(I:0c) 0083c0 node_capabilities: 03(I:03) acde48 module_vendor_ID: 81(L:01) 000006 text_leaf: len=7 crc=0x82ed(OK) FreeBSD Project 04(I:04) 0aae97 hardware_version: 81(L:01) 00000c text_leaf: len=3 crc=0x0000(OK) d1(D:11) 00000f unit_directory: len=8 crc=0x9735(OK) 12(I:12) acde48 unit_spec_ID: 81(L:01) 000007 text_leaf: len=5 crc=0xec03(OK) FreeBSD 13(I:13) 64636f unit_sw_version: 81(L:01) 00000b text_leaf: len=5 crc=0xc6ec(OK) dcons 3a(I:3a) 000001 unit_characteristics: 3b(I:3b) 388000 command_set_revision: 3c(I:3c) 000000 firmware_revision: 3d(I:3d) c00240 reconnect_timeout: d1(D:11) 000023 unit_directory: len=4 crc=0xbb7c(OK) 12(I:12) 00005e unit_spec_ID: 81(L:01) 000003 text_leaf: len=4 crc=0x9bde(OK) IANA 13(I:13) 000001 unit_sw_version: 81(L:01) 000006 text_leaf: len=4 crc=0x08db(OK) IPv4 d1(D:11) 000031 unit_directory: len=4 crc=0x55ae(OK) 12(I:12) 00005e unit_spec_ID: 81(L:01) 000003 text_leaf: len=4 crc=0x9bde(OK) IANA 13(I:13) 000002 unit_sw_version: 81(L:01) 000006 text_leaf: len=4 crc=0x4c58(OK) IPv6 fwohci0@pci0:2:1:0: class=0x0c0010 card=0x00051592 chip=0x8025104c rev=0x01 hdr=0x00 vendor = 'Texas Instruments (TI)' device = 'TSB82AA2 1394b OHCI-Lynx IEEE 1394 Host Controller' class = serial bus subclass = FireWire dmesg: fwohci0: mem 0xff904000-0xff9047ff,0xff900000-0xff903fff irq 22 at device 1.0 on pci2 fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:13:3b:01:00:01:01:82 fwohci0: invalid speed 7 (fixed to 3). fwohci0: Phy 1394a available S800, 3 ports. fwohci0: Link S800, max_rec 4096 bytes. firewire0: on fwohci0 From owner-freebsd-firewire@FreeBSD.ORG Thu Jun 12 04:07:21 2008 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 0FC8C1065671 for ; Thu, 12 Jun 2008 04:07:21 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id B92A98FC0C for ; Thu, 12 Jun 2008 04:07:20 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: by an-out-0708.google.com with SMTP id b33so856177ana.13 for ; Wed, 11 Jun 2008 21:07:19 -0700 (PDT) Received: by 10.100.95.19 with SMTP id s19mr1170306anb.65.1213243639617; Wed, 11 Jun 2008 21:07:19 -0700 (PDT) Received: by 10.101.70.3 with HTTP; Wed, 11 Jun 2008 21:07:19 -0700 (PDT) Message-ID: <626eb4530806112107k79bf957eyfe668935695a7a7c@mail.gmail.com> Date: Wed, 11 Jun 2008 21:07:19 -0700 From: "Hidetoshi Shimokawa" Sender: freebsd@gm.nunu.org To: "Sean Bruno" In-Reply-To: <484F6BB2.4080808@miralink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4846F3F9.1080302@miralink.com> <48482800.8000501@miralink.com> <484EEF6B.7010407@miralink.com> <626eb4530806102213w3beda7a3u89efffd01d5e254b@mail.gmail.com> <484F6BB2.4080808@miralink.com> X-Google-Sender-Auth: d9fda444cde8fcfa Cc: freebsd-firewire@freebsd.org Subject: Re: sbp_targ errors with windows initiators 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, 12 Jun 2008 04:07:21 -0000 I have tested with releng_7's sbp and sbp_targ last year. I have not tested with other combinations... On Tue, Jun 10, 2008 at 11:07 PM, Sean Bruno wrote: > Hidetoshi Shimokawa wrote: >> >> It could be that windows sends requests before FreeBSD finish bus >> probing.. >> >> > > I think that I have made sbp_targ "more" broken than I realize. It doesn't > seem to work at all when connected to a RELENG 7 initiator. > > At least I now have an initiator that I can actually decode and debug. :) > > Sean > > P.S. Just a sanity check, SBP does work under RELENG 7? > -- /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.ORG From owner-freebsd-firewire@FreeBSD.ORG Thu Jun 12 04:12:48 2008 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 A50011065670 for ; Thu, 12 Jun 2008 04:12:48 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5808FC18 for ; Thu, 12 Jun 2008 04:12:48 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: by an-out-0708.google.com with SMTP id b33so856436ana.13 for ; Wed, 11 Jun 2008 21:12:47 -0700 (PDT) Received: by 10.100.178.13 with SMTP id a13mr1203490anf.29.1213243966941; Wed, 11 Jun 2008 21:12:46 -0700 (PDT) Received: by 10.101.70.3 with HTTP; Wed, 11 Jun 2008 21:12:46 -0700 (PDT) Message-ID: <626eb4530806112112w4b3873c6n195385af3db909cc@mail.gmail.com> Date: Wed, 11 Jun 2008 21:12:46 -0700 From: "Hidetoshi Shimokawa" Sender: freebsd@gm.nunu.org To: "Sean Bruno" In-Reply-To: <485011B7.7060900@miralink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <485011B7.7060900@miralink.com> X-Google-Sender-Auth: 329ee162f8033e22 Cc: freebsd-firewire@freebsd.org Subject: Re: 400/800 card 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, 12 Jun 2008 04:12:48 -0000 On Wed, Jun 11, 2008 at 10:56 AM, Sean Bruno wrote: > I have a 400/800 card installed in my RELENG_7 box that has one 800 > connector and two 400 connectors on it. Looking over the system, I wonder > if the card is working correctly when I attach a S400 device to it: > > [sean@home-test ~]$ sudo fwcontrol -t > crc_len: 3 generation:1 node_count:1 sid_count:1 > id link gap_cnt speed delay cIRM power port0 port1 port2 ini more > 00 1 63 S800 0 1 -1W - - - 1 0 The phy layer doesn't seem to recognize the S400 device. It seem to be a hardware problem. Are your cable and connector o.k.? Did a bus reset occur when you attached the device? > [sean@home-test ~]$ sudo fwcontrol 1 devices (info_len=1) > node EUI64 status > 0 00-13-3b-01-00-01-01-82 0 > > [sean@home-test ~]$ sudo fwcontrol -c 0 > first quad: 0x044cbb31 info_len=4 crc_len=76 crc=0xbb31(OK) > bus_name: 0x31333934 > irmc:1 cmc:1 isc:1 bmc:1 pmc:0 > cyc_clk_acc:100 max_rec:11 max_rom:0 > generation:2 link_spd:3 > EUI64: 00-13-3b-01-00-01-01-82 > root_directory: len=0x0008(8) crc=0x2aa1(OK) > 0c(I:0c) 0083c0 node_capabilities: > 03(I:03) acde48 module_vendor_ID: > 81(L:01) 000006 text_leaf: len=7 crc=0x82ed(OK) FreeBSD Project > 04(I:04) 0aae97 hardware_version: > 81(L:01) 00000c text_leaf: len=3 crc=0x0000(OK) > d1(D:11) 00000f unit_directory: len=8 crc=0x9735(OK) > 12(I:12) acde48 unit_spec_ID: > 81(L:01) 000007 text_leaf: len=5 crc=0xec03(OK) FreeBSD > 13(I:13) 64636f unit_sw_version: > 81(L:01) 00000b text_leaf: len=5 crc=0xc6ec(OK) dcons > 3a(I:3a) 000001 unit_characteristics: > 3b(I:3b) 388000 command_set_revision: > 3c(I:3c) 000000 firmware_revision: > 3d(I:3d) c00240 reconnect_timeout: > d1(D:11) 000023 unit_directory: len=4 crc=0xbb7c(OK) > 12(I:12) 00005e unit_spec_ID: > 81(L:01) 000003 text_leaf: len=4 crc=0x9bde(OK) IANA > 13(I:13) 000001 unit_sw_version: > 81(L:01) 000006 text_leaf: len=4 crc=0x08db(OK) IPv4 > d1(D:11) 000031 unit_directory: len=4 crc=0x55ae(OK) > 12(I:12) 00005e unit_spec_ID: > 81(L:01) 000003 text_leaf: len=4 crc=0x9bde(OK) IANA > 13(I:13) 000002 unit_sw_version: > 81(L:01) 000006 text_leaf: len=4 crc=0x4c58(OK) IPv6 > > > fwohci0@pci0:2:1:0: class=0x0c0010 card=0x00051592 chip=0x8025104c > rev=0x01 hdr=0x00 > vendor = 'Texas Instruments (TI)' > device = 'TSB82AA2 1394b OHCI-Lynx IEEE 1394 Host Controller' > class = serial bus > subclass = FireWire > > dmesg: > fwohci0: mem > 0xff904000-0xff9047ff,0xff900000-0xff903fff irq 22 at device 1.0 on pci2 > fwohci0: [FILTER] > fwohci0: OHCI version 1.10 (ROM=1) > fwohci0: No. of Isochronous channels is 4. > fwohci0: EUI64 00:13:3b:01:00:01:01:82 > fwohci0: invalid speed 7 (fixed to 3). > fwohci0: Phy 1394a available S800, 3 ports. > fwohci0: Link S800, max_rec 4096 bytes. > firewire0: on fwohci0 > > -- /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.ORG From owner-freebsd-firewire@FreeBSD.ORG Thu Jun 12 05:07:31 2008 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 42B8F1065676; Thu, 12 Jun 2008 05:07:31 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 183718FC22; Thu, 12 Jun 2008 05:07:30 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id C83281A9141; Wed, 11 Jun 2008 22:04:48 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, AWL=0.000, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KNauehDA6xIY; Wed, 11 Jun 2008 22:04:48 -0700 (PDT) Received: from [10.47.1.74] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 3903C1A90BB; Wed, 11 Jun 2008 22:04:48 -0700 (PDT) Message-ID: <4850AF11.4060702@miralink.com> Date: Wed, 11 Jun 2008 22:07:29 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Hidetoshi Shimokawa References: <485011B7.7060900@miralink.com> <626eb4530806112112w4b3873c6n195385af3db909cc@mail.gmail.com> In-Reply-To: <626eb4530806112112w4b3873c6n195385af3db909cc@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org Subject: Re: 400/800 card 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, 12 Jun 2008 05:07:31 -0000 Hidetoshi Shimokawa wrote: > On Wed, Jun 11, 2008 at 10:56 AM, Sean Bruno wrote: > >> I have a 400/800 card installed in my RELENG_7 box that has one 800 >> connector and two 400 connectors on it. Looking over the system, I wonder >> if the card is working correctly when I attach a S400 device to it: >> >> [sean@home-test ~]$ sudo fwcontrol -t >> crc_len: 3 generation:1 node_count:1 sid_count:1 >> id link gap_cnt speed delay cIRM power port0 port1 port2 ini more >> 00 1 63 S800 0 1 -1W - - - 1 0 >> > > The phy layer doesn't seem to recognize the S400 device. > It seem to be a hardware problem. > Are your cable and connector o.k.? > Did a bus reset occur when you attached the device? > The output of fwcontrol was generated with no attached device. I thought I would see a report of both the S400 and S800 capable ports in the output. Sean From owner-freebsd-firewire@FreeBSD.ORG Thu Jun 12 05:56:55 2008 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 E8478106567A; Thu, 12 Jun 2008 05:56:55 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id B4D218FC1A; Thu, 12 Jun 2008 05:56:55 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 1B1B81A9141; Wed, 11 Jun 2008 22:54:13 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, AWL=0.000, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PuiL5JVHK-td; Wed, 11 Jun 2008 22:54:12 -0700 (PDT) Received: from [10.47.1.74] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 9316B1A90BB; Wed, 11 Jun 2008 22:54:12 -0700 (PDT) Message-ID: <4850BAA6.30501@miralink.com> Date: Wed, 11 Jun 2008 22:56:54 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Hidetoshi Shimokawa References: <4846F3F9.1080302@miralink.com> <48482800.8000501@miralink.com> <484EEF6B.7010407@miralink.com> <626eb4530806102213w3beda7a3u89efffd01d5e254b@mail.gmail.com> In-Reply-To: <626eb4530806102213w3beda7a3u89efffd01d5e254b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org Subject: Re: sbp_targ errors with windows initiators 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, 12 Jun 2008 05:56:56 -0000 Hidetoshi Shimokawa wrote: > It could be that windows sends requests before FreeBSD finish bus probing.. > If so, then the freebsd initiator is doing the same thing. Can you point me to the code where I should look? firewire.c ? fwohci.c ? Sean > On Tue, Jun 10, 2008 at 2:17 PM, Sean Bruno wrote: > >> So, it appears that the firewire target (sbp_targ) has some kind of race >> condition that makes a windows initiator fall down and cry. Most times when >> I connect a windows initiator to my sbp_targ host, I get the following: >> >> fwohci0: BUS reset >> fwohci0: node_id=0x8800ffc0, gen=5, non CYCLEMASTER mode >> sbp_targ_recv: cannot resolve nodeid=1 >> sbp_targ_recv: rtcode = 6 lo == 0x0 >> firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 >> fwohci0: txd err= 3 miss Ack err >> firewire0: New S400 device ID:0011060000004d63 >> fwohci0: txd err= 3 miss Ack err >> fwohci0: txd err= 3 miss Ack err >> sbp_targ_recv: cannot resolve nodeid=1 >> sbp_targ_recv: rtcode = 6 lo == 0x0 >> sbp_targ_recv: cannot resolve nodeid=1 >> sbp_targ_recv: rtcode = 6 lo == 0x0 >> sbp_targ_recv: cannot resolve nodeid=1 >> sbp_targ_recv: rtcode = 6 lo == 0x0 >> sbp_targ_recv: cannot resolve nodeid=1 >> sbp_targ_recv: rtcode = 6 lo == 0x0 >> fwohci0: txd err= 3 miss Ack err >> >> Sometimes, the initiator succeeds in the login process and sometimes it >> doesn't. I'm not sure why yet. Any clues? >> >> -- >> >> Sean Bruno >> MiraLink Corporation >> 6015 NE 80th Ave, Ste 100 >> Portland, OR 97218 >> Phone 503-621-5143 >> Fax 503-621-5199 >> >> >> > > > > From owner-freebsd-firewire@FreeBSD.ORG Fri Jun 13 02:02:38 2008 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 011C810656BE for ; Fri, 13 Jun 2008 02:02:38 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id B7AF08FC20 for ; Fri, 13 Jun 2008 02:02:37 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: by an-out-0708.google.com with SMTP id b33so973105ana.13 for ; Thu, 12 Jun 2008 19:02:37 -0700 (PDT) Received: by 10.100.228.17 with SMTP id a17mr3215999anh.75.1213322556737; Thu, 12 Jun 2008 19:02:36 -0700 (PDT) Received: by 10.101.70.3 with HTTP; Thu, 12 Jun 2008 19:02:36 -0700 (PDT) Message-ID: <626eb4530806121902u25e45054neee042b0bccf1d5@mail.gmail.com> Date: Thu, 12 Jun 2008 19:02:36 -0700 From: "Hidetoshi Shimokawa" Sender: freebsd@gm.nunu.org To: "Sean Bruno" In-Reply-To: <4850AF11.4060702@miralink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <485011B7.7060900@miralink.com> <626eb4530806112112w4b3873c6n195385af3db909cc@mail.gmail.com> <4850AF11.4060702@miralink.com> X-Google-Sender-Auth: 19a43d0eb9dfc1fd Cc: freebsd-firewire@freebsd.org Subject: Re: 400/800 card 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: Fri, 13 Jun 2008 02:02:38 -0000 try 'fwcontrol -p'. On Wed, Jun 11, 2008 at 10:07 PM, Sean Bruno wrote: > Hidetoshi Shimokawa wrote: >> >> On Wed, Jun 11, 2008 at 10:56 AM, Sean Bruno wrote: >> >>> >>> I have a 400/800 card installed in my RELENG_7 box that has one 800 >>> connector and two 400 connectors on it. Looking over the system, I >>> wonder >>> if the card is working correctly when I attach a S400 device to it: >>> >>> [sean@home-test ~]$ sudo fwcontrol -t >>> crc_len: 3 generation:1 node_count:1 sid_count:1 >>> id link gap_cnt speed delay cIRM power port0 port1 port2 ini more >>> 00 1 63 S800 0 1 -1W - - - 1 0 >>> >> >> The phy layer doesn't seem to recognize the S400 device. >> It seem to be a hardware problem. >> Are your cable and connector o.k.? >> Did a bus reset occur when you attached the device? >> > > The output of fwcontrol was generated with no attached device. I thought I > would see > a report of both the S400 and S800 capable ports in the output. > > Sean > > -- /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.ORG From owner-freebsd-firewire@FreeBSD.ORG Fri Jun 13 04:42:16 2008 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 20A80106566B; Fri, 13 Jun 2008 04:42:16 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id E06518FC0A; Fri, 13 Jun 2008 04:42:15 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 197B61A9388; Thu, 12 Jun 2008 21:39:21 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.162 X-Spam-Level: X-Spam-Status: No, score=-4.162 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, AWL=0.237, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qt8lTzJwhXY8; Thu, 12 Jun 2008 21:39:20 -0700 (PDT) Received: from [10.47.1.74] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 84F681A9387; Thu, 12 Jun 2008 21:39:20 -0700 (PDT) Message-ID: <4851FAA6.7080601@miralink.com> Date: Thu, 12 Jun 2008 21:42:14 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Hidetoshi Shimokawa References: <485011B7.7060900@miralink.com> <626eb4530806112112w4b3873c6n195385af3db909cc@mail.gmail.com> <4850AF11.4060702@miralink.com> <626eb4530806121902u25e45054neee042b0bccf1d5@mail.gmail.com> In-Reply-To: <626eb4530806121902u25e45054neee042b0bccf1d5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org Subject: Re: 400/800 card 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: Fri, 13 Jun 2008 04:42:16 -0000 Hidetoshi Shimokawa wrote: > try 'fwcontrol -p'. > > > Interesting. I can't discern from this output, which port actually has the S400 device connected to it. That seems to output the following: === base register === 0x03 0x05 0xe3 0xe2 0xc4 0x03 0x10 0x20 Physical_ID:0 R:1 CPS:1 RHB:0 IBR:0 Gap_Count:5 Extended:7 Num_Ports:3 PHY_Speed:7 Delay:2 LCtrl:1 C:1 Jitter:0 Pwr_Class:4 WDIE:0 ISBR:0 CTOI:0 CPSI:0 STOI:0 PEI:0 EAA:1 EMC:1 Max_Legacy_SPD:0 BLINK:1 Bridge:0 Page_Select:1 Port_Select0 === page 0 port 0 === 0xf8 0x60 0x3b 0x00 0x00 0x00 0x00 0x00 Astat:3 BStat:3 Ch:1 Con:0 RXOK:0 Dis:0 Negotiated_speed:3 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0 DC_connected:0 Max_port_speed:3 LPP:1 Cable_speed:3 Connection_unreliable:0 Beta_mode:0 Port_error:0x0 Loop_disable:0 In_standby:0 Hard_disable:0 === page 0 port 1 === 0xf8 0x60 0x3b 0x00 0x00 0x00 0x00 0x00 Astat:3 BStat:3 Ch:1 Con:0 RXOK:0 Dis:0 Negotiated_speed:3 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0 DC_connected:0 Max_port_speed:3 LPP:1 Cable_speed:3 Connection_unreliable:0 Beta_mode:0 Port_error:0x0 Loop_disable:0 In_standby:0 Hard_disable:0 === page 0 port 2 === 0xf8 0x60 0x3b 0x00 0x00 0x00 0x00 0x00 Astat:3 BStat:3 Ch:1 Con:0 RXOK:0 Dis:0 Negotiated_speed:3 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0 DC_connected:0 Max_port_speed:3 LPP:1 Cable_speed:3 Connection_unreliable:0 Beta_mode:0 Port_error:0x0 Loop_disable:0 In_standby:0 Hard_disable:0 === page 1 === 0x02 0x00 0x08 0x00 0x28 0x83 0x13 0x04 Compliance:2 Vendor_ID:0x080028 Product_ID:0x831304 From owner-freebsd-firewire@FreeBSD.ORG Fri Jun 13 05:19:37 2008 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 21CEB106564A; Fri, 13 Jun 2008 05:19:37 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id E9C708FC13; Fri, 13 Jun 2008 05:19:36 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 137301A938B; Thu, 12 Jun 2008 22:16:42 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CFynDKRkgUl3; Thu, 12 Jun 2008 22:16:41 -0700 (PDT) Received: from [10.47.1.74] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 73BE51A9387; Thu, 12 Jun 2008 22:16:41 -0700 (PDT) Message-ID: <48520367.7090807@miralink.com> Date: Thu, 12 Jun 2008 22:19:35 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Hidetoshi Shimokawa References: <4846F3F9.1080302@miralink.com> <48482800.8000501@miralink.com> <484EEF6B.7010407@miralink.com> <626eb4530806102213w3beda7a3u89efffd01d5e254b@mail.gmail.com> <4850BAA6.30501@miralink.com> In-Reply-To: <4850BAA6.30501@miralink.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org Subject: Re: sbp_targ errors with windows initiators 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: Fri, 13 Jun 2008 05:19:37 -0000 Sean Bruno wrote: > Hidetoshi Shimokawa wrote: >> It could be that windows sends requests before FreeBSD finish bus >> probing.. >> It seems that by adjusting the callout timer in firewire.c:fw_sidrcv() from 1/4 a hz to 1/10 a hz: callout_reset(&fc->busprobe_callout, hz/10, (void *)fw_bus_probe, (void *)fc); I've been able to get a reliable detection of the sbp_targ by a FreeBSD initiator. Is this a correct way of fixing my issue? Sean From owner-freebsd-firewire@FreeBSD.ORG Fri Jun 13 22:32:00 2008 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 4785F1065671; Fri, 13 Jun 2008 22:32:00 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 2B7108FC19; Fri, 13 Jun 2008 22:32:00 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 051AD1A93E0; Fri, 13 Jun 2008 15:28:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MtnQZT+1TTf4; Fri, 13 Jun 2008 15:28:55 -0700 (PDT) Received: from iago.office.miralink.com (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id 977B71A93DE; Fri, 13 Jun 2008 15:28:55 -0700 (PDT) Message-ID: <4852F55E.6000208@miralink.com> Date: Fri, 13 Jun 2008 15:31:58 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Hidetoshi Shimokawa References: <4846F3F9.1080302@miralink.com> <48482800.8000501@miralink.com> <484EEF6B.7010407@miralink.com> <626eb4530806102213w3beda7a3u89efffd01d5e254b@mail.gmail.com> <4850BAA6.30501@miralink.com> <48520367.7090807@miralink.com> In-Reply-To: <48520367.7090807@miralink.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@freebsd.org Subject: Re: sbp_targ errors with windows initiators 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: Fri, 13 Jun 2008 22:32:00 -0000 Sean Bruno wrote: > Sean Bruno wrote: >> Hidetoshi Shimokawa wrote: >>> It could be that windows sends requests before FreeBSD finish bus >>> probing.. >>> > It seems that by adjusting the callout timer in firewire.c:fw_sidrcv() > from 1/4 a hz to 1/10 a hz: > callout_reset(&fc->busprobe_callout, hz/10, > (void *)fw_bus_probe, (void *)fc); > > > I've been able to get a reliable detection of the sbp_targ by a > FreeBSD initiator. Is this a correct way of fixing my issue? > > Well, I guess I was too hopeful. This did not work. I have identified the failure case, but I cannot see what the solution is. You are correct, the Windows and FreeBSD inititator are sending requests to the target prior to sbp_targ even beginning it's bus probe activity. sbp_targ finishes it's "sbp_targ_post_busreset" callback, then it starts processing messages based on the bind addr callback for sbp_targ_recv(). I don't as of yet know where the issue lies? Can you give me some guidance? -- Sean Bruno MiraLink Corporation 6015 NE 80th Ave, Ste 100 Portland, OR 97218 Phone 503-621-5143 Fax 503-621-5199