From owner-freebsd-firewire@FreeBSD.ORG Fri Jun 20 05:01:12 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 0B0D8106566C for ; Fri, 20 Jun 2008 05:01:12 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by mx1.freebsd.org (Postfix) with ESMTP id B7BDA8FC17 for ; Fri, 20 Jun 2008 05:01:11 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: by an-out-0708.google.com with SMTP id b33so271790ana.13 for ; Thu, 19 Jun 2008 22:01:11 -0700 (PDT) Received: by 10.100.140.10 with SMTP id n10mr4574465and.129.1213938071478; Thu, 19 Jun 2008 22:01:11 -0700 (PDT) Received: by 10.101.70.3 with HTTP; Thu, 19 Jun 2008 22:01:11 -0700 (PDT) Message-ID: <626eb4530806192201k119d9edep78fd6f4be69b29f3@mail.gmail.com> Date: Thu, 19 Jun 2008 22:01:11 -0700 From: "Hidetoshi Shimokawa" Sender: freebsd@gm.nunu.org To: "Sean Bruno" In-Reply-To: <485AFC6D.4050107@miralink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <485AFC6D.4050107@miralink.com> X-Google-Sender-Auth: f8123e3109882a6d Cc: freebsd-firewire@freebsd.org Subject: Re: [RELENG_7] SBP Drives not recognized 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, 20 Jun 2008 05:01:12 -0000 The log indicates that the OHCI controller didn't receive any acks from disk for probe packets. This usually indicates hardware problem. Do linux and windows work on exactly same hardware? (host machine and cable) How about if you change gap counts with 'fwcontrol -g 10; fwcontrol -r'? On Thu, Jun 19, 2008 at 5:40 PM, Sean Bruno wrote: > In an effort to test my sbp_targ modifications, I fired up a FreeBSD 7 > initiator, and cvsup'd to RELENG_7. I then connected an external SBP2 device > that I got off of NewEgg. > I was surprised to see it not work when I plugged it in: > Jun 19 11:30:01 home-test kernel: fwohci0: BUS reset > Jun 19 11:30:01 home-test kernel: fwohci0: node_id=0xc800ffc1, gen=6, > CYCLEMASTER mode > Jun 19 11:30:01 home-test kernel: sbp_post_busreset > Jun 19 11:30:01 home-test kernel: firewire0: 2 nodes, maxhop <= 1, cable IRM > = 1 (me) > Jun 19 11:30:01 home-test kernel: fwohci0: fw_set_bus_manager: 1->1 (loop=0) > Jun 19 11:30:01 home-test kernel: firewire0: bus manager 1 (me) > Jun 19 11:30:01 home-test kernel: send phy_config root_node=1 gap_count=5 > Jun 19 11:30:01 home-test kernel: fwohci0: start AT DMA status=11 > Jun 19 11:30:02 home-test kernel: firewire0: New S800 device > ID:0001d27ceea502b8 > Jun 19 11:30:02 home-test kernel: fwohci0: txd err= 3 miss Ack err > Jun 19 11:30:02 home-test kernel: fw_explore: node 2, err = -1 > Jun 19 11:30:02 home-test kernel: fwohci0: txd err= 3 miss Ack err > Jun 19 11:30:02 home-test kernel: fw_explore: node 2, err = -1 > Jun 19 11:30:02 home-test kernel: fwohci0: txd err= 3 miss Ack err > Jun 19 11:30:02 home-test kernel: fw_explore: node 2, err = -1 > Jun 19 11:30:02 home-test kernel: bus_explore done > Jun 19 11:30:02 home-test kernel: sbp_post_explore (sbp_cold=0) > Jun 19 11:30:02 home-test kernel: sbp_post_explore: EUI:0001d27ceea502b8 not > attached, state=3. > > > > This looks an awful lot like my issues with sbp_targ from previous emails > and may indicate a more serious failure in fwohci.c or firewire.c > > Or, it may indicate that I have no idea what I am doing. :) > > This SBP-2 device is a external 2 disk enclosure with an Oxford > Semicondoctor F/W controller. It seems to work just fine with linux and > windows. > > [sean@home-test ~]$ sudo fwcontrol -t > crc_len: 4 generation:8 node_count:2 sid_count:2 > id link gap_cnt speed delay cIRM power port0 port1 port2 ini more > 00 1 5 S800 0 0 -1W - - P 0 0 > 01 1 5 S800 0 1 -1W C - - 1 0 > > [sean@home-test ~]$ sudo fwcontrol -p > === base register === > 0x07 0x85 0xe3 0xe2 0xc4 0x03 0x50 0x00 > Physical_ID:1 R:1 CPS:1 > RHB:1 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:2 BLINK:1 Bridge:0 > Page_Select:0 Port_Select0 > > === page 0 port 0 === > 0xfe 0x40 0xbb 0x00 0x00 0x00 0x00 0x00 > Astat:3 BStat:3 Ch:1 Con:1 RXOK:1 Dis:0 > Negotiated_speed:2 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0 > DC_connected:1 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 > > -- /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.ORG