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