From owner-freebsd-drivers@FreeBSD.ORG Tue Dec 16 05:35:08 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 933D91065672; Tue, 16 Dec 2008 05:35:08 +0000 (UTC) (envelope-from ikob@ni.aist.go.jp) Received: from mail.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id 605B18FC0C; Tue, 16 Dec 2008 05:35:08 +0000 (UTC) (envelope-from ikob@ni.aist.go.jp) Received: from dhcpa11093.tky.aist.go.jp (unknown [150.82.175.93]) by mail.asahi-net.or.jp (Postfix) with ESMTP id C75126806D; Tue, 16 Dec 2008 14:17:11 +0900 (JST) Message-Id: <15EB8FB3-CAA8-4834-9979-912508B619D4@ni.aist.go.jp> From: Katsushi Kobayashi To: Dieter In-Reply-To: <200812150330.DAA27074@sopwith.solgatos.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 16 Dec 2008 14:17:10 +0900 References: <200812150330.DAA27074@sopwith.solgatos.com> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-firewire@freebsd.org, freebsd-drivers@freebsd.org, bug-followup@freebsd.org Subject: Re: kern/118093: firewire bus reset hogs CPU, causing data to be lost X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 05:35:08 -0000 Hi, I believe no side effect is anticipated the message. "side effect" includes locking i/o. ---- Katsushi Kobayashi On 2008/12/15, at 4:30, Dieter wrote: > I found the source of this problem. When a firewire bus resets, > the firewire driver prints a few lines to the console, > using printf(9) and device_printf(9). I suspect that these are > running at splfw aka splimp, locking out other i/o. > > Commenting out the *printf() calls fixes the problem, but that > isn't a good solution. > > Would changing the *printf() calls to log(9) calls be safe? > ("safe" meaning other i/o doesn't get locked out) > > Ah, for the good old days when 19200 baud seemed fast... > _______________________________________________ > freebsd-firewire@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-firewire > To unsubscribe, send any mail to "freebsd-firewire-unsubscribe@freebsd.org"