From owner-freebsd-firewire@FreeBSD.ORG Thu Nov 11 13:56:30 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 DAB1F16A4CE for ; Thu, 11 Nov 2004 13:56:30 +0000 (GMT) Received: from ybbsmtp07.mail.mci.yahoo.co.jp (ybbsmtp07.mail.mci.yahoo.co.jp [210.80.241.156]) by mx1.FreeBSD.org (Postfix) with SMTP id 3DFA443D4C for ; Thu, 11 Nov 2004 13:56:30 +0000 (GMT) (envelope-from simokawa@FreeBSD.org) Received: from unknown (HELO tora.nunu.org) (nunuorg@219.3.182.80 with login) by ybbsmtp07.mail.mci.yahoo.co.jp with SMTP; 11 Nov 2004 13:56:29 -0000 X-Apparently-From: Received: from tora.nunu.org (ns.nunu.org [210.79.14.94]) by tora.nunu.org (Postfix) with ESMTP id 88B194C8FD; Thu, 11 Nov 2004 22:54:36 +0900 (JST) Date: Thu, 11 Nov 2004 22:54:36 +0900 Message-ID: <87sm7gze1v.wl@tora.nunu.org> From: Hidetoshi Shimokawa To: protius@bobdbob.com In-Reply-To: <200411102332.iAANW7d6002600@teryx.bobdbob.com> References: <200411102332.iAANW7d6002600@teryx.bobdbob.com> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 MULE XEmacs/21.4 (patch 14) (Reasonable Discussion) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII cc: freebsd-firewire@freebsd.org Subject: Re: sbp_targ difficulties X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 13:56:31 -0000 At Wed, 10 Nov 2004 18:32:07 -0500 (EST), Protius wrote: > > > 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 This is beacuse firewire driver doesn't have this register implemented. This is harmless, ignore. > 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. It has nothing to do with unknown service address error. Try -d option of scsi_target(8) and see what happens. > Any ideas? > What additional information would be useful? > > I'm off to read firewire documentation now. :-) /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.org