Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757824AbZAHMNU (ORCPT ); Thu, 8 Jan 2009 07:13:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752600AbZAHMNM (ORCPT ); Thu, 8 Jan 2009 07:13:12 -0500 Received: from mercury.realtime.net ([205.238.132.86]:37523 "EHLO mercury.realtime.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752315AbZAHMNL (ORCPT ); Thu, 8 Jan 2009 07:13:11 -0500 From: Milton Miller To: Christian Borntraeger , Benjiman Herrenschmidt cc: linuxppc-dev list , lkml , Joe Peterson , Alan Cox Subject: [PATCH 0/5] hvc_console updates was Re: [BUG] hvc_console WARN() on current upstream references: <1231404121.2142.50.camel@pasglop> <20090108111116.3f806d67@lxorguk.ukuu.org.uk> In-Reply-To: <20090108111116.3f806d67@lxorguk.ukuu.org.uk> Message-Id: Date: Thu, 08 Jan 2009 06:12:58 -0600 X-Originating-IP: 205.232.218.56 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1357 Lines: 39 Alan Cox wrote: > Benjamin Herrenschmidt wrote: >> Seems that we are in interrupt, doing hvc_poll, which does >> tty_flip_buffer_push > >Which means that someone has tty->low_latency set and is calling >tty_flip_buffer_push in an IRQ. That has never been allowed or safe, and >now it hurts ;) > >/** > * tty_flip_buffer_push - terminal > * @tty: tty to push > * > * Queue a push of the terminal flip buffers to the line discipline. >This > * function must not be called from IRQ context if tty->low_latency >is set * > * In the event of the queue being busy for flipping the work will be > * held off and retried later. > * > * Locking: tty buffer lock. Driver locks in low latency mode. > */ > > >That comment has been there for some years in varying formats > I actually was preparing a patch for this problem after I had encountered the a deadlock due to this. That is in the first patch. I then found and made a few more cleanups, although I might have reordered the rest. The history for setting low_latency is in the changelog of the first patch.. milton -- 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/