Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2002 21:54:54 +0900
From:      Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
To:        nao <nao@tom-yam.or.jp>
Cc:        freebsd-firewire@FreeBSD.ORG
Subject:   Re: ATA HDD via FireWire failes.
Message-ID:  <ybsd6ns99pd.wl@ett.sat.t.u-tokyo.ac.jp>
In-Reply-To: <200212181149.gBIBn1Cv070654@miffy.tom-yam.or.jp>
References:  <ybsk7iaacav.wl@ett.sat.t.u-tokyo.ac.jp> <200212181149.gBIBn1Cv070654@miffy.tom-yam.or.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ybsd6ns99pd.wl>