From owner-freebsd-firewire@FreeBSD.ORG Mon Oct 6 22:35:28 2003 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 9965316A4B3 for ; Mon, 6 Oct 2003 22:35:28 -0700 (PDT) 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 314B143FDD for ; Mon, 6 Oct 2003 22:35:24 -0700 (PDT) (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 0CC1A3787A5 for ; Tue, 7 Oct 2003 14:35:23 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) h975ZMhC020113; Tue, 7 Oct 2003 14:35:22 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3])3.3.5-GR) with ESMTP id AKT27239; Tue, 7 Oct 2003 14:35:21 +0900 (JST) Date: Tue, 07 Oct 2003 14:35:21 +0900 Message-ID: From: Hidetoshi Shimokawa To: dhelder@gizmolabs.org Newsgroups: freebsd.firewire In-Reply-To: References: <1065482801.350.55.camel@localhost> <1065383483.476.12.camel@localhost> 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-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2003 05:35:28 -0000 At Tue, 07 Oct 2003 13:40:02 +0900, Hidetoshi Shimokawa wrote: > > At Mon, 06 Oct 2003 19:26:41 -0400, > dhelder@gizmolabs.org wrote: > > > > [root@sorrow] dhelder -: camcontrol devlist > > > > at scbus1 target 0 lun 0 (pass0) > > > > at scbus2 target 0 lun 0 > > > > (probe0,da0,pass1) > > > > Yes, but it's not plugged in and fwcontrol doesn't show it. It's a > > ghost. > > If it's not listed in 'fwcontrol' (not 'fwcontorl -t'), it must be > detached. In that case, there might be some reason why CAM layer > cannot detach the device. The output of dmesg might help. Try this patch or 4.9-RC. Index: sbp.c =================================================================== RCS file: /home/ncvs/src/sys/dev/firewire/sbp.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -r1.46 -r1.47 --- sbp.c 29 Apr 2003 23:40:04 -0000 1.46 +++ sbp.c 30 Apr 2003 10:32:32 -0000 1.47 @@ -1982,6 +1982,9 @@ if (sdev->status == SBP_DEV_RESET) continue; if (sdev->path) { + xpt_release_devq(sdev->path, + sdev->freeze, TRUE); + sdev->freeze = 0; xpt_async(AC_LOST_DEVICE, sdev->path, NULL); xpt_free_path(sdev->path); sdev->path = NULL; /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html