Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752237AbZG3U5p (ORCPT ); Thu, 30 Jul 2009 16:57:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751508AbZG3U5p (ORCPT ); Thu, 30 Jul 2009 16:57:45 -0400 Received: from mail-fx0-f228.google.com ([209.85.220.228]:38677 "EHLO mail-fx0-f228.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752133AbZG3U5o (ORCPT ); Thu, 30 Jul 2009 16:57:44 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=bSmKZwt3LbgXcDat9xvgftPcHMaajn/kf8JgSS92Q7TkXWD3DqIABoYwUg5cW+MWmx BjyLhm0sf0+vXm3Lvlk2oh02YWKY3+2Jn7NiurDMP8NQEwZUnQGMRQR8KGbM0kwr83Qf l8MH/vjB/FRjKHFUTXz8jKsZMfhFK8tRDZ9Cg= Subject: Re: Firewire debugging tools - firedump & fireproxy? From: Maxim Levitsky To: Jason Wessel Cc: Jun Koi , linux-kernel@vger.kernel.org, Bernhard Kaindl , KGDB Mailing List In-Reply-To: <4A715A7B.3070406@windriver.com> References: <1248932218.27010.8.camel@maxim-laptop> <4A715A7B.3070406@windriver.com> Content-Type: text/plain Date: Thu, 30 Jul 2009 23:57:36 +0300 Message-Id: <1248987456.13069.24.camel@maxim-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3256 Lines: 82 On Thu, 2009-07-30 at 03:31 -0500, Jason Wessel wrote: > Maxim Levitsky wrote: > > On Sun, 2009-07-05 at 14:42 +0900, Jun Koi wrote: > > > >> Hi, > >> > >> I am doing some debugging via firewire. I found some references to > >> some tools named firedump & fireproxy, made by Bernhard Kaindl, > >> supposed put at following addresses: > >> > >> ftp://ftp.suse.de/private/bk/firewire/tools/firedump-0.1.tar.bz2 > >> ftp://ftp.suse.de/private/bk/firewire/tools/fireproxy-0.33.tar.bz2 > >> > >> However, these URLs are nolonger available. I am wondering if they > >> have been moved to somewhere else? Anybody know? > >> > >> > > Me having the same question. I have just bought everything for firewire > > debugging. > > > > Jason Wessel, what the fate of kgdbom ? > > (and kgdboe btw ....) > > > > > > kgdbom ? I had heard of it in regard to fireproxy, but I have never > received any patches specific to a kgdbom implementation. Should you or > anyone else create patches for kgdbom, please cc: > kgdb-bugreport@lists.sourceforge.net. > > As for kgdboe, I do not find it to be extremely reliable. It does exist > however in the kgdb development tree. You can pick a kernel from > 2.6.21-> latest. > > http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=heads > > In order to make kgdboe reliable it must get altered in one of several > ways before it would be robust enough for mainline kernel consideration. > > 1) The key problem is that preemption of irq code causes locks to be > held which prevent operation of the polled ethernet driver. This could > be be solved at the ethernet driver level by creating a polled interface > that has no requirement on any kind of locking. I have yet to see an > ethernet driver with such an implementation. Most if not all the polled > ethernet implementations make use of disable_irq() which is 1/2 the > battle, the other 1/2 being the spin locks or mutexs which can deadlock. > > > 2) A possible (but not practical or desirable) solution would be to > change the kernel mechanism for synchronizing a driver or running a > thread to free a lock so as to safely use the ethernet driver for > another purpose. This solution is not worth the time because the > possibility for deadlock is far too high. > > 3) Develop a low level dedicated ethernet debug interface. If you have > more than one ethernet, or an ethernet device that has multiple hardware > queues, it is plausible to have a dedicated way to talk to a device > which has no restrictions on getting preempted, or used by another part > of the kernel. This lends itself to an ideal medium for kgdb > communications. Or, even better, to make in possible to switch between a normal, and exclusive mode? Maybe this cab be done without (or with slight) modifications to network drivers. Why not to make kgdb own the network device (use it exclusively), but use same interfaces as regular kernel does? Thanks for the info, Best regards, Maxim Levitsky -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/