From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946389AbXD3Q6c (ORCPT ); Mon, 30 Apr 2007 12:58:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1946392AbXD3Q6b (ORCPT ); Mon, 30 Apr 2007 12:58:31 -0400 Received: from ns2.suse.de ([195.135.220.15]:40475 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946389AbXD3Q6a (ORCPT ); Mon, 30 Apr 2007 12:58:30 -0400 Date: Mon, 30 Apr 2007 19:56:08 +0200 From: Andi Kleen To: "Eric W. Biederman" Cc: Andi Kleen , virtualization , linux-kernel@vger.kernel.org, "H. Peter Anvin" , Dave Jones , Andrew Morton , Jeremy Fitzhardinge , Greg Kroah-Hartman Subject: Re: [PATCH 09/12] i386/x86_64: EHCI usb debug port early printk support. Message-ID: <20070430175607.GD25929@bingen.suse.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Thanks for writing that code. It should be an interesting alternative on boxes where firescope doesn't work. I hope I can eventually merge early firewire support code too. On Mon, Apr 30, 2007 at 10:32:02AM -0600, Eric W. Biederman wrote: > > With legacy free systems serial ports have stopped being an option > to get early boot traces and other debug information out of a machine. This needs a CONFIG_* at least. And some documentation on how to set it up on both sides. > > This debug device can be used to replace serial ports for > kgdb, kdb, and console support. And gregkh has a simple usb > serial driver for it so user space applications that control > serial ports should work unmodified. But not merged yet, right? I was hoping it could be done from user space anyways. > For users the hard part looks like it will be finding cables and > finding which is usb debug port 1 and realizing that there is > flow control so the kernel boot will not happen if someone is not > reading the serial console data. That's nasty. Any way to work around that? > index 92213d2..dc097aa 100644 > --- a/arch/x86_64/kernel/early_printk.c > +++ b/arch/x86_64/kernel/early_printk.c > @@ -3,9 +3,19 @@ > #include > #include > #include > +#include > +#include > +#include > +#include Can you put it in a separate file please? Perhaps with a little abstraction in drivers/usb ? > +static void dbgp_breath(void) > +{ > + /* Sleep to give the debug port a chance to breathe */ But you don't? > +static __u32 __init find_dbgp(int ehci_num, unsigned *rbus, unsigned *rslot, unsigned *rfunc) This should be probably merged into the early quirks loop > early_console = &simnow_console; > keep_early = 1; > + } else if (!strncmp(buf, "dbgp", 4)) { usb would seem to be more intuitive -Andi