From owner-freebsd-firewire Fri Feb 21 19:46:54 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 7867137B401 for ; Fri, 21 Feb 2003 19:46:51 -0800 (PST) Received: from happy.koganei.wide.ad.jp (koganei.wide.ad.jp [202.249.37.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7157D43FB1 for ; Fri, 21 Feb 2003 19:46:50 -0800 (PST) (envelope-from ikob@koganei.wide.ad.jp) Received: from koganei.wide.ad.jp (tweedledee.koganei.wide.ad.jp [202.249.37.72]) (authenticated bits=0) by happy.koganei.wide.ad.jp (8.12.6/8.12.6) with ESMTP id h1M3m39E040824; Sat, 22 Feb 2003 12:48:03 +0900 (JST) (envelope-from ikob@koganei.wide.ad.jp) Date: Sat, 22 Feb 2003 12:46:55 +0900 Subject: Re: Bad news: bus resets not fixed yet Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: firewire@FreeBSD.ORG To: Marcel Moolenaar From: Katsushi Kobayashi In-Reply-To: <20030222002547.GA1247@dhcp01.pn.xcllnt.net> Message-Id: <49532804-4618-11D7-8263-0030657D3460@koganei.wide.ad.jp> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) Sender: owner-freebsd-firewire@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, Bus-rest on firewire will be happen, when - Network topology is changed (e.g. new device is attached) - Unstable network topology probably due to cable or connector failure. - A device initiated BUS reset some reason (e.g. the device want to get some "master" feature) - Turn on a device ..... Anyway, Bus-rest could be initiated by any connected device and lower (uncontrollable from OS as PHY chipset). And the node identifier of the firewire is dynamically assigned at every bus reset. OS can ignore the interrupt happen at the Bus-rest. However, any communication action after the bus-rest is ensured, since the node identifier could be already changed. Is the above is answer for your question ? On 2003.Feb.22, at 09:25 AM, Marcel Moolenaar wrote: > Gang, > > I rebooted after Hidetoshi-san's patch has been committed and I > also made sure to include ken's cd(4) fixes, but unfortunately > the bus resets have returned. We may have timing problems that > were hidden by the additional overhead of emitting the debug info. > Unfortunately I don't have much time to experiment with that, but > do want to pitch the following question(s): > o Aren't bus resets expensive operations in general/principle? > o My logs show 6 resets per second (unoptimized :-). Isn't this > high no matter if there's a bug or not? > o Are we not supposed to give devices some time to react upon the > or otherwise build in some safety? > > \begin{/var/log/messages snippet} > Feb 21 12:22:26 dhcp01 kernel: fwohci0: BUS reset > Feb 21 12:22:27 dhcp01 kernel: fwohci0: node_id = 0xc000ffc1, > CYCLEMASTER mode > Feb 21 12:22:27 dhcp01 kernel: firewire0: 2 nodes, maxhop <= 1, cable > IRM = 1 (me) > Feb 21 12:22:27 dhcp01 kernel: fwohci0: BUS reset > Feb 21 12:22:27 dhcp01 kernel: fwohci0: node_id = 0xc000ffc1, > CYCLEMASTER mode > Feb 21 12:22:27 dhcp01 kernel: firewire0: 2 nodes, maxhop <= 1, cable > IRM = 1 (me) > Feb 21 12:22:27 dhcp01 kernel: fwohci0: BUS reset > Feb 21 12:22:27 dhcp01 kernel: fwohci0: node_id = 0xc000ffc1, > CYCLEMASTER mode > Feb 21 12:22:27 dhcp01 kernel: firewire0: 2 nodes, maxhop <= 1, cable > IRM = 1 (me) > Feb 21 12:22:27 dhcp01 kernel: fwohci0: BUS reset > Feb 21 12:22:27 dhcp01 kernel: fwohci0: node_id = 0xc000ffc1, > CYCLEMASTER mode > Feb 21 12:22:27 dhcp01 kernel: firewire0: 2 nodes, maxhop <= 1, cable > IRM = 1 (me) > Feb 21 12:22:27 dhcp01 kernel: fwohci0: BUS reset > Feb 21 12:22:27 dhcp01 kernel: fwohci0: node_id = 0xc000ffc1, > CYCLEMASTER mode > Feb 21 12:22:27 dhcp01 kernel: firewire0: 2 nodes, maxhop <= 1, cable > IRM = 1 (me) > Feb 21 12:22:27 dhcp01 kernel: fwohci0: BUS reset > Feb 21 12:22:27 dhcp01 kernel: fwohci0: node_id = 0xc000ffc1, > CYCLEMASTER mode > Feb 21 12:22:27 dhcp01 kernel: firewire0: 2 nodes, maxhop <= 1, cable > IRM = 1 (me) > Feb 21 12:22:27 dhcp01 kernel: fwohci0: BUS reset > Feb 21 12:22:28 dhcp01 kernel: fwohci0: node_id = 0xc000ffc0, > CYCLEMASTER mode > Feb 21 12:22:28 dhcp01 kernel: firewire0: 1 nodes, maxhop <= 0, cable > IRM = 0 (me) > \end{/var/log/messages snippet} > > -- > Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-firewire" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message