Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756198AbZDURal (ORCPT ); Tue, 21 Apr 2009 13:30:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755077AbZDURaH (ORCPT ); Tue, 21 Apr 2009 13:30:07 -0400 Received: from sj-iport-3.cisco.com ([171.71.176.72]:56352 "EHLO sj-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753393AbZDURaD (ORCPT ); Tue, 21 Apr 2009 13:30:03 -0400 X-IronPort-AV: E=Sophos;i="4.40,225,1238976000"; d="scan'208";a="155393979" Date: Tue, 21 Apr 2009 10:29:29 -0700 From: David VomLehn To: David Woodhouse Cc: David Brownell , alan@lxorguk.ukuu.org.uk, Ingo Molnar , Arjan van de Ven , "H. Peter Anvin" , Thomas Gleixner , Linus Torvalds , Linux Kernel Mailing List , Linux USB Mailing List , Linux Embedded Mailing List , Andrew Morton Subject: Re: Wait for console to become available, v3.2 Message-ID: <20090421172929.GC8251@cuplxvomd02.corp.sa.net> References: <20090420234006.GA1958@cuplxvomd02.corp.sa.net> <20090421064346.GB8020@elte.hu> <200904210013.48551.david-b@pacbell.net> <1240333871.3632.70.camel@macbook.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1240333871.3632.70.camel@macbook.infradead.org> User-Agent: Mutt/1.5.18 (2008-05-17) Authentication-Results: sj-dkim-5; header.From=dvomlehn@cisco.com; dkim=pass ( sig from cisco.com/sjdkim5002 verified; ); Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1689 Lines: 37 On Tue, Apr 21, 2009 at 06:11:11PM +0100, David Woodhouse wrote: ... > The kernel output is going to be spewed when a console registers with > CON_PRINTBUFFER anyway, and if we printk a warning about userspace > console output being lost, that ought to be good enough to notify the > user that something may have been lost. For bonus points, we could even > make that 'dummy' tty driver buffer a limited amount of userspace > output, maybe. What in the world are users going to do when they see a message about output being lost? There is no way to recover the data and no way to prevent it in the future. I don't think this is a good approach. Remember, even though the previous functionality of USB consoles was, in theory, less reliable than it appeared, it actually has been working well for years. Thus, tossing output will count as a regression for most of the world. > If userspace cares, let _it_ wait, by using an ioctl to see what tty > device it's _really_ attached to. I have a notion, perhaps misguided, that userspace *always* cares about seeing all the output they have generated. I have no objection to a userspace solution, in the long run, but such an approach represents a significantly different approach to constructing boot filesystems and we need a transitional period. In the interim, let's get things working as they were. > David Woodhouse Open Source Technology Centre David VomLehn -- 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/