linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: akpm@osdl.org, linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH 01/10] fbdev: Clean up of sparc FB options
Date: Thu, 17 May 2007 08:01:58 +0800	[thread overview]
Message-ID: <1179360118.4743.32.camel@daplas> (raw)
In-Reply-To: <20070516.161717.115911096.davem@davemloft.net>

On Wed, 2007-05-16 at 16:17 -0700, David Miller wrote:
> From: "Antonino A. Daplas" <adaplas@gmail.com>
> Date: Thu, 17 May 2007 07:15:05 +0800
> 
> > A flag may be the easiest. But we can also define an arch-specific
> > function (ie, fb_get_primary_device()) in asm/fb.h. With the x86, this
> > can be easily done by checking the IORESOURCE_ROM_SHADOW bit flag.  
> > 
> > I'll add this for the x86, and then perhaps others can follow suit.
> 
> What would this iterate over?  The list of all registered
> fb_info's?

For each driver that calls register_framebuffer(), fbcon will check if
it is the primary device.  If it is, it will revise the
console-to-framebuffer mapping (with set_con2fbmap()).

So something like this can happen:

fb0 registers and becomes the default console for vc0-vc63, for the
moment.

fb1 registers, and it is the primary device.  fbcon now maps fb1 to
vc0-vc63.

fb2 registers, it is not the primary device.  fbcon ignores fb2.

fb3 registers, it drives the same hardware as fb1, and thus is also the
primary device.  fbcon still ignores fb3 since fb1 is already determined
to be as the primary device.

All the above is overridden by using the fbcon=map: option.

Most of the pieces are already in place (ie the console-to-framebuffer
remapping), so there should be minimal work for fbcon.

The question is, will this work for sparc?

Tony



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

  reply	other threads:[~2007-05-17  0:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-16 21:17 [PATCH 01/10] fbdev: Clean up of sparc FB options Antonino A. Daplas
2007-05-16 21:47 ` David Miller
2007-05-16 23:15   ` Antonino A. Daplas
2007-05-16 23:17     ` David Miller
2007-05-17  0:01       ` Antonino A. Daplas [this message]
2007-05-17  0:05         ` David Miller
2007-05-17  0:10           ` Antonino A. Daplas
2007-05-17  0:15             ` David Miller
2007-05-17  0:36               ` Antonino A. Daplas
2007-05-17  0:42                 ` David Miller

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=1179360118.4743.32.camel@daplas \
    --to=adaplas@gmail.com \
    --cc=akpm@osdl.org \
    --cc=davem@davemloft.net \
    --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).