linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: linux-kernel mailing list <linux-kernel@vger.kernel.org>
Cc: Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>,
	James Simmons <jsimmons@infradead.org>
Subject: Re: Console & FBDev vs. locking
Date: 28 May 2003 15:02:58 +0200	[thread overview]
Message-ID: <1054126978.541.3.camel@gaston> (raw)
In-Reply-To: <1054122360.602.197.camel@gaston>

On Wed, 2003-05-28 at 13:46, Benjamin Herrenschmidt wrote:

> All printk originated console call should done with the console
> semaphore held. The console-sem is the de-facto locking mecanism for the
> console today, while not fine-grained, it's probably plenty enough for
> what we need in 2.5 and unless previous implementations which ran with
> irqs off, the console drivers can actually block and rely on HW
> interrupts.

Hrm... Of course, this is only true for things like resize/mode change,
etc... (and soon blanking once I'm done with it). The way the console
sem is used is so that normal output originating from printk can
still happen at interrupt time.

BTW. I know some people would prefer not doing so, but I'd like to
eventually disable that 'feature', or at least add a flag to the the
consw driver telling if it supports beeing called at interrupt/spinlock
time or not, and if not, defer operations to process context. ..

Ben.

      reply	other threads:[~2003-05-28 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 11:46 Console & FBDev vs. locking Benjamin Herrenschmidt
2003-05-28 13:02 ` Benjamin Herrenschmidt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1054126978.541.3.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=jsimmons@infradead.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).