From owner-freebsd-firewire Sun Dec 15 19:11: 2 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 8118C37B401 for ; Sun, 15 Dec 2002 19:11:00 -0800 (PST) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [133.11.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8257243ED1 for ; Sun, 15 Dec 2002 19:10:59 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is2.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id CF6F737807C for ; Mon, 16 Dec 2002 12:10:48 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is2.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id gBG3AmF23469; Mon, 16 Dec 2002 12:10:48 +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 AHN43487; Mon, 16 Dec 2002 12:10:48 +0900 (JST) Date: Mon, 16 Dec 2002 12:10:48 +0900 Message-ID: From: Hidetoshi Shimokawa To: nao Cc: freebsd-firewire@freebsd.org Subject: Re: ATA HDD via FireWire failes. In-Reply-To: <200212121219.gBCCJr0T015566@miffy.tom-yam.or.jp> References: <200212121219.gBCCJr0T015566@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 Thu, 12 Dec 2002 21:19:53 +0900 (JST), nao wrote: > I tried another FreeBSD-stable box and an IEEE1394 CD-RW drive to get > the same unstable results. Both boxes include ASUS TUSL2-C motherboard > and VIA VT6306 FireWire card (http://www.winbest.com.tw/5010.htm). > > I also tried Texas Instruments TSB12LV26 card with this box and the > result was quite satisfactory. > > So, the problem seems to do with VIA VT6306 FireWire controller. How > do you think of this idea? Thanks for those experiments. If the controler works right on other OSes, there might be some timing issue in the initialization step in the driver. Could you change DEALY for waiting SCLK to several values like the following patch and see whether it helps or not? I have a card with VIA chip but I have not enough time to try it yet. But I remember someone reported a success with VIA chip in freebsd-users-jp. Index: fwohci.c =================================================================== RCS file: /pub/FreeBSD-CVS/src/sys/dev/firewire/fwohci.c,v retrieving revision 1.1.2.2 diff -u -r1.1.2.2 fwohci.c --- fwohci.c 5 Nov 2002 02:44:01 -0000 1.1.2.2 +++ fwohci.c 16 Dec 2002 03:01:32 -0000 @@ -494,7 +494,7 @@ #endif OWRITE(sc, OHCI_HCCCTL, OHCI_HCC_LPS); /* XXX wait for SCLK. */ - DELAY(100000); + DELAY(200000); reg = OREAD(sc, OHCI_BUS_OPT); reg2 = reg | OHCI_BUSFNC; /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message