From owner-freebsd-firewire@FreeBSD.ORG Wed Nov 10 23:32:12 2004 Return-Path: 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 06EEE16A4CE for ; Wed, 10 Nov 2004 23:32:12 +0000 (GMT) Received: from teryx.bobdbob.com (w178.z067105181.was-dc.dsl.cnc.net [67.105.181.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5626A43D1D for ; Wed, 10 Nov 2004 23:32:10 +0000 (GMT) (envelope-from protius@teryx.bobdbob.com) Received: from teryx.bobdbob.com (localhost [127.0.0.1]) by teryx.bobdbob.com (8.12.10/8.12.10) with ESMTP id iAANW7Gi002601 for ; Wed, 10 Nov 2004 18:32:07 -0500 (EST) (envelope-from protius@teryx.bobdbob.com) Received: (from protius@localhost) by teryx.bobdbob.com (8.12.10/8.12.10/Submit) id iAANW7d6002600 for freebsd-firewire@freebsd.org; Wed, 10 Nov 2004 18:32:07 -0500 (EST) (envelope-from protius) Date: Wed, 10 Nov 2004 18:32:07 -0500 (EST) From: Protius Message-Id: <200411102332.iAANW7d6002600@teryx.bobdbob.com> To: freebsd-firewire@freebsd.org Subject: sbp_targ difficulties X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: protius@bobdbob.com List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 23:32:12 -0000 I am attempting to use scsi_target to make a BSD box look like an external firewire drive, and it /almost/ works, but not quite... :-P The machines are running 5.3-STABLE, cvsupped on November 7. They have in their kernel config files: (among other things) device firewire # FireWire bus code device sbp # SCSI over FireWireRequires scbus and da) device sbp_targ device fwe # Ethernet over FireWirenon-standard!) device targ options VFS_AIO On the server machine, I run: scsi_target 1:0:0 /dev/stripe/mm There are no errors from scsi_target. But, on the console appears: Unknown service addr 0xffff:0xf0000210 WREQ0) src=0xffc0 data=200000f I googled around for that message, and there was a suggestion to change the line OWRITsc, OHCI_PREQHI, 0x7fffffff); in fwohci.c to OWRITsc, OHCI_PREQHI, 0xffffffff); That didn't change anything... On the client machine console appears: fwohci0: BUS reset fwohci0: node_id=0x8800ffc0, gen=2, non CYCLEMASTER mode firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 firewire0: bus manager 1 da4 at sbp0 bus 0 target 0 lun 0 da4: Fixed Direct Access SCSI-3 device da4: 50.000MB/s transfers da4: 34992MB71664928 512 byte sectors: 255H 63S/T 4460C) Which is definately a good sign... I then mount the disk read only, and everything is happy. On umounting the disk, scsi_target coredumps... The core dump is actualy unusual, it has only happened once in the five or ten times I've done this entire sequence. So I restart scsi_target, and mount the disk read-write. The mount succeeds with no errors. However the moment I attempt to write something in the filesystem (IE: cat > foo), scsi_target on the server machine goes nuts, and consumes all the CPU. The client machine hangs, I assume waiting for IO. Then typicaly they both crash. Is the unknown service address caused by something which FreeBSD as a client does? It definately only happens when one trys to write. Any ideas? What additional information would be useful? I'm off to read firewire documentation now. :-) -Tommy tjohnson@bobdbob.com