Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937637AbWLFU66 (ORCPT ); Wed, 6 Dec 2006 15:58:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S937634AbWLFU66 (ORCPT ); Wed, 6 Dec 2006 15:58:58 -0500 Received: from ns2.suse.de ([195.135.220.15]:56104 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937637AbWLFU65 (ORCPT ); Wed, 6 Dec 2006 15:58:57 -0500 From: Andi Kleen To: "Lu, Yinghai" Subject: Re: [linux-usb-devel] [RFC][PATCH 0/2] x86_64 Early usb debug port support. Date: Wed, 6 Dec 2006 21:58:39 +0100 User-Agent: KMail/1.9.5 Cc: "Eric W. Biederman" , "David Brownell" , linux-usb-devel@lists.sourceforge.net, "Peter Stuge" , "Stefan Reinauer" , "Greg KH" , linux-kernel@vger.kernel.org, linuxbios@linuxbios.org References: <5986589C150B2F49A46483AC44C7BCA4907290@ssvlexmb2.amd.com> In-Reply-To: <5986589C150B2F49A46483AC44C7BCA4907290@ssvlexmb2.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612062158.39250.ak@suse.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1873 Lines: 51 On Wednesday 06 December 2006 21:43, Lu, Yinghai wrote: > -----Original Message----- > From: Andi Kleen [mailto:ak@suse.de] > Sent: Wednesday, December 06, 2006 9:31 AM > > >Also for usb console keep should be made default because the output > won't > >be duplicated. > > Still need to tx_read to make console can take command? > > Or transfer to generic usb_serial I think the protocols are incompatible? > or usb_debug that Greg just added Ah I didn't notice that. If there is a usb_debug that works later then yes it would need to be disabled. However I see a certain advantage to keep using the early usb console because it doesn't need any interrupts. So when the kernel is very confused after an oops it might have a higher chance to still get the oops out. I haven't looked how the other usb_debug works -- if it's polled too then it wouldn't have much advantage. Ok one advantage of a non early usb_debug is that it will properly use pci config space locking. The early implementation just ignores the port cf8 lock which might lead to corruption later. That's ok after an oops, but during normal output it can actually lead to data corruption if it interferes with somebody else's config write. Also on some systems cf8 is broken and doesn't work. Disadvantage of using the locks of course is that it can deadlock if an oops happen inside the critical region. So they might need to be added to bust_spinlocks() And it would be good if the late usb_debug still wouldn't rely on interrupts. But I agree it's probably better to transition to another usb_debug console and not do keep by default. -Andi - 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/