All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michel Dänzer" <michel@daenzer.net>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm: Initial KMS driver for AST (ASpeed Technologies) 2000 series
Date: Tue, 24 Apr 2012 16:28:30 +0200	[thread overview]
Message-ID: <1335277710.3383.27.camel@thor.local> (raw)
In-Reply-To: <20120423143033.64b3ee9d@pyramind.ukuu.org.uk>

On Mon, 2012-04-23 at 14:30 +0100, Alan Cox wrote:
> 
> > fbdev objects once exposed to userspace or to fbcon, thanks to some wonderful
> > API design way back, the mmaps on the fbdev device are direct to the VRAM
> > physical pages. Can't tear them down and move them into system RAM pages
> > at all easily.
> 
> Thats not strictly true. They can move mapping if the locking is right
> and the helpers handle it because you can invalidate the pages in the
> userspace mappings and they will get faulted back with the new ones.

fbdev userspace mappings is the easy part, TTM has supported that for
years. The problem is fbcon, which can access the framebuffer from
basically any context for printk. 


> > Because I'm not 100% sure nothing will get written to it, and if
> 
> Fair point.
> 
> > something gets written
> > to it I'd rather not have to complicate the oops printing to have to
> > page in memory
> > from disk, when it might be the disk that caused the oops.
> 
> If the box was horked that way then you are going to fail to migrate the
> graphical frame buffer out in order to go into text mode to print the
> oops. Probably safest any oops hits the current visible object ?

It's not always that simple either, e.g. this wouldn't work when
scanning out a tiled buffer on Radeon HDs.


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2012-04-24 14:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-17 12:18 [PATCH] drm: Initial KMS driver for AST (ASpeed Technologies) 2000 series Dave Airlie
2012-04-23 12:44 ` Alan Cox
2012-04-23 12:55   ` Dave Airlie
2012-04-23 13:30     ` Alan Cox
2012-04-24 14:28       ` Michel Dänzer [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=1335277710.3383.27.camel@thor.local \
    --to=michel@daenzer.net \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=dri-devel@lists.freedesktop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.