From owner-freebsd-firewire Fri Feb 28 0:52:34 2003 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 E9AD337B401 for ; Fri, 28 Feb 2003 00:52:31 -0800 (PST) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0863243F93 for ; Fri, 28 Feb 2003 00:52:30 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 8B1D321810B for ; Fri, 28 Feb 2003 17:52:28 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h1S8qSc16734; Fri, 28 Feb 2003 17:52:28 +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 AHZ00954; Fri, 28 Feb 2003 17:52:27 +0900 (JST) Date: Fri, 28 Feb 2003 17:52:27 +0900 Message-ID: From: Hidetoshi Shimokawa To: Marcel Moolenaar Cc: firewire@FreeBSD.ORG Subject: Re: Bad news: bus resets not fixed yet In-Reply-To: <20030228080145.GA1736@athlon.pn.xcllnt.net> References: <20030222194741.GA579@dhcp01.pn.xcllnt.net> <20030226061321.GA549@dhcp01.pn.xcllnt.net> <20030226095348.GA565@dhcp01.pn.xcllnt.net> <20030228053856.GA640@dhcp01.pn.xcllnt.net> <20030228080145.GA1736@athlon.pn.xcllnt.net> 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 > > (2) Change auto_login=0 in sbp.c. After boot > > sysctl hw.firewire.sbp.auto_login=1 > > then > > fwcontrol -r > > Ok. After loading the sbp module I got: > > \begin{dmesg} > sbp_identify > sbp_probe > sbp0: on firewire0 > sbp_attach (cold=0) > sbp_post_explore (sbp_cold=1) > sbp_post_explore: EUI:08004603011eb709 spec=1 key=1. > target 0 lun 0 found > sbp0:0:0 ordered:0 type:5 EUI:08004603011eb709 node:1 speed:2 maxrec:10 new! > sbp0:0:0 'Sony' 'PCGA-DSM5' 'ad1830' > \end{dmesg} > > I think this is as expected. After setting the sysctl and resetting > the bus with fwcontrol, I got the bus reset loop (delay still 10). > The bus caused the loop to end. Another possibility is a copy of Configuration ROM is broken and we are issuing the management ORB to wrong address. Can you see any difference of output of fwcontrol -c node_id_of_the_drive between good and bad case? It seems the node_id is '0' for your case. > Silly questions: > 1. Does the sbp module support SBP3 devices? Is there a > different that we need to care about? I haven't read SBP3 spec.. > 2. Would it make sense to implement the "query logins" ORB > (can you tell I've been reading? :-) so that we could > avoid/suppress a login (when sbp_cold=1 probably). Maybe > the "login" ORB sent to the CD drive when it's already > logged in causes this. As far as I read the spec(SBP2), we don't expect BUS reset for login failure and expect ORB status indicates login failure. > 3. Alternatively. Would it hurt to send a "logout" ORB to > all devices when sbp_cold=1? If we know login_id :-) Only BIOS knows it but it's easy to guess because it's usually 0. > 4. As a debugging aid, would it be easy enough to enhance > fwcontrol so that we can trigger specific ORBs (such > as "query logins", "logout" and "login)? We need some DMA capable buffer to send ORB(it's actually fetched by the drive). We need some kernel support at least for that. By analogy with usual PCI-SCSI, FireWire looks like PCI bus and FireWire-IDE bridge looks like SCSI host bus adaptor which does DMA. /\ 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