From owner-freebsd-firewire Mon Dec 23 4:55: 4 2002 Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CF5C37B401 for ; Mon, 23 Dec 2002 04:55:02 -0800 (PST) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B8D643EDE for ; Mon, 23 Dec 2002 04:55:01 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 7B6152180E7 for ; Mon, 23 Dec 2002 21:54:54 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id gBNCssJ01286; Mon, 23 Dec 2002 21:54:54 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHO35011; Mon, 23 Dec 2002 21:54:54 +0900 (JST) Date: Mon, 23 Dec 2002 21:54:54 +0900 Message-ID: From: Hidetoshi Shimokawa To: nao Cc: freebsd-firewire@FreeBSD.ORG Subject: Re: ATA HDD via FireWire failes. In-Reply-To: <200212181149.gBIBn1Cv070654@miffy.tom-yam.or.jp> References: <200212181149.gBIBn1Cv070654@miffy.tom-yam.or.jp> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Wed, 18 Dec 2002 20:49:01 +0900 (JST), nao wrote: > It made hardly any difference. > > Is there anything I can try further? I have reproduced a similar problem with my VIA chip. I noticed that it doesn't work if it isn't root node. The following patch makes the chip try to be a root node. I hope this patch fix your problem too. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html Index: fwohci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/firewire/fwohci.c,v retrieving revision 1.7 diff -u -r1.7 fwohci.c --- fwohci.c 6 Dec 2002 02:17:30 -0000 1.7 +++ fwohci.c 23 Dec 2002 12:36:56 -0000 @@ -1992,6 +1992,14 @@ u_int32_t fun; sc = (struct fwohci_softc *)fc; + + /* + * XXX set root hold-off bit. + * VIA6903 seems to be unstable if it doesn't become root node. + */ + fun = fwphy_rddata(sc, FW_PHY_RHB_REG); + fun |= FW_PHY_RHB; + fun = fwphy_wrdata(sc, FW_PHY_RHB_REG, fun); #if 1 fun = fwphy_rddata(sc, FW_PHY_IBR_REG); fun |= FW_PHY_IBR; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message From owner-freebsd-firewire Mon Dec 23 21:54:54 2002 Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFD0737B401 for ; Mon, 23 Dec 2002 21:54:53 -0800 (PST) Received: from miffy.tom-yam.or.jp (67.117.138.210.xn.2iij.net [210.138.117.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78AB843EDC for ; Mon, 23 Dec 2002 21:54:52 -0800 (PST) (envelope-from nao@miffy.tom-yam.or.jp) Received: from miffy.tom-yam.or.jp (localhost.tom-yam.or.jp [IPv6:::1]) by miffy.tom-yam.or.jp (8.12.6/8.12.6) with ESMTP id gBO5sq6c004621; Tue, 24 Dec 2002 14:54:52 +0900 (JST) (envelope-from nao@miffy.tom-yam.or.jp) Received: (from nao@localhost) by miffy.tom-yam.or.jp (8.12.6/8.12.6/Submit) id gBO5snwN004616; Tue, 24 Dec 2002 14:54:49 +0900 (JST) (envelope-from nao) Date: Tue, 24 Dec 2002 14:54:49 +0900 (JST) Message-Id: <200212240554.gBO5snwN004616@miffy.tom-yam.or.jp> From: nao X-Mailer: cmail 2.61.1+20011011 on GNU Emacs 21.2.1 / Mule 5.0 (SAKAKI) References: To: simokawa@sat.t.u-tokyo.ac.jp Cc: freebsd-firewire@FreeBSD.ORG In-reply-to: Hidetoshi Shimokawa's message of "Mon, 23 Dec 2002 21:54:54 +0900" Subject: Re: ATA HDD via FireWire failes. User-Agent: SEMI/1.14.4 (Hosorogi) FLIM/1.14.4 (=?ISO-8859-4?Q?Kashiharaji?= =?ISO-8859-4?Q?ng=FE-mae?=) APEL/10.3 Emacs/21.2 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-firewire@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, In message "Re: ATA HDD via FireWire failes." on 02/12/23, Hidetoshi Shimokawa writes: >I have reproduced a similar problem with my VIA chip. I noticed that >it doesn't work if it isn't root node. The following patch makes the >chip try to be a root node. I hope this patch fix your problem too. As always, thank you for your excellent work! With your patch, my VIA VT6306 board goes quite flawlessly. -nao To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message From owner-freebsd-firewire Tue Dec 24 1:53:33 2002 Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA45137B401 for ; Tue, 24 Dec 2002 01:53:29 -0800 (PST) Received: from backmaster.cdsnet.net (backmaster.cdsnet.net [63.163.68.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 3544443EE5 for ; Tue, 24 Dec 2002 01:53:29 -0800 (PST) (envelope-from mrcpu@backmaster.cdsnet.net) Received: (qmail 82270 invoked by uid 29999); 24 Dec 2002 09:53:28 -0000 Date: Tue, 24 Dec 2002 01:53:28 -0800 From: Jaye Mathisen To: freebsd-firewire@freebsd.org Subject: Problem recognizing second disk in 2 disk firewire enclosure. Message-ID: <20021224095328.GZ1284@backmaster.cdsnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-firewire@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG FreeBSD 4.7-stable, sup'd as of last night 12/23. I got this enclosure that holds 2 3.5" IDE hard drives, and hooks them up as individual drives to my firewire connection. Under windows XP, both drives are recognized just fine as "SBP2" devices, I can format/copy/mangle at will. However, under FreeBSD, only the 1st drive is found (da0). dmesg output is included: opyright (c) 1992-2002 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 4.7-STABLE #5: Mon Dec 23 23:27:32 PST 2002 root@plugh.cdsnet.net:/usr/src/sys/compile/PLUGH Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (1002.28-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383f9ff real memory = 134152192 (131008K bytes) avail memory = 125812736 (122864K bytes) Preloaded elf kernel "kernel" at 0xc04a4000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 7 entries at 0xc00fde10 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 isab0: at device 7.0 on pci0 isa0: on isab0 uhci0: port 0xb000-0xb01f irq 12 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xb400-0xb41f irq 12 at device 7.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: (vendor=0x1106, dev=0x3057) at 7.4 pcm0: port 0xc000-0xc003,0xbc00-0xbc03,0xb800-0xb8ff irq 15 at device 7.5 on pci0 fwohci0: mem 0xe5800000-0xe5803fff,0xe5804000-0xe58047ff irq 11 at device 8.0 on pci0 fwohci0: PCI bus latency was changing to 250. cache size 8. fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channel is 4. fwohci0: resetting OHCI...done (0) fwohci0: BUS_OPT 0xa002 -> 0xf800a002 fwohci0: Link 1394a available S400, 3 ports, maxrec 2048 bytes. fwohci0: Enable 1394a Enhancements fwohci0: EUI64 00:20:e5:00:00:01:ff:e4 fwochi_set_intr: 1 firewire0: on fwohci0 firewire0: firewire bus attach sbp_identify sbp_probe sbp0: on firewire0 sbp_attach pcib2: at device 9.0 on pci0 pci2: on pcib2 ahc0: port 0xc800-0xc8ff mem 0xe5806000-0xe5806fff irq 15 at d evice 10.0 on pci0 aic7870: Single Channel A, SCSI Id=7, 16/253 SCBs twe0: <3ware Storage Controller> port 0xcc00-0xcc0f mem 0xe5000000-0xe57fffff,0xe5805000-0 xe580500f irq 11 at device 12.0 on pci0 twe0: 8 ports, Firmware FE7X 1.04.00.024, BIOS BE7X 1.07.02.008 orm0: