Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2002 12:10:48 +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:  <ybsk7iaacav.wl@ett.sat.t.u-tokyo.ac.jp>
In-Reply-To: <200212121219.gBCCJr0T015566@miffy.tom-yam.or.jp>
References:  <ybsznrfan6l.wl@ett.sat.t.u-tokyo.ac.jp> <200212121219.gBCCJr0T015566@miffy.tom-yam.or.jp>

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




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