linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: adaplas@pol.net
Cc: Andrew Morton <akpm@osdl.org>,
	Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [PATCH 1/8] fbcon: Do not touch hardware if vc_mode != KD_TEXT
Date: Wed, 03 Nov 2004 09:27:01 +1100	[thread overview]
Message-ID: <1099434421.20294.19.camel@gaston> (raw)
In-Reply-To: <200411021946.06302.adaplas@hotpop.com>

On Tue, 2004-11-02 at 19:46 +0800, Antonino A. Daplas wrote:
> The frambuffer console is still writing to the graphics hardware even if the
> hardware is not owned anymore by the console.  This can lead to crashes with
> some hardware.
> 
> A trace of the source indicates that it comes from almost anywhere, anytime.
> 
> The fix is to return immediately if vc_mode != KD_TEXT.  The test is placed in 
> the following functions if not already present.
> 
> fbcon_cursor()
> fbcon_putcs()
> fbcon_clear()
> fbcon_bmove() 
> fbcon_blank() 

Since the exact same thing must be done if the fbdev are "asleep", can't
we just have a kind of inline helper fbcon_useable() that does both test
and make sure every place is properly dealt with ?

Ben.




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

  reply	other threads:[~2004-11-02 22:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-02 11:46 [PATCH 1/8] fbcon: Do not touch hardware if vc_mode != KD_TEXT Antonino A. Daplas
2004-11-02 22:27 ` Benjamin Herrenschmidt [this message]
2004-11-02 23:27   ` Antonino A. Daplas
2004-11-03  2:30   ` Antonino A. Daplas
2004-11-03 23:52     ` Andrew Morton
2004-11-04  0:16       ` Benjamin Herrenschmidt
2004-11-04  0:57         ` Antonino A. Daplas
2004-11-04  0:58       ` Antonino A. Daplas

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=1099434421.20294.19.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=adaplas@pol.net \
    --cc=akpm@osdl.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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).