linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Cc: Jon Smirl <jonsmirl@yahoo.com>
Subject: Re: [patch] radeonfb: FB_WAITFORVSYNC implementation
Date: Sun, 13 Mar 2005 10:21:05 +1100	[thread overview]
Message-ID: <1110669665.5787.44.camel@gaston> (raw)
In-Reply-To: <9e47339105031209566791e3b9@mail.gmail.com>

On Sat, 2005-03-12 at 12:56 -0500, Jon Smirl wrote:

> 
> 1) where is the list of valid modes computed? in-kernel or user space.
> Technically either will work but each has plus and minuses. Right now
> radeonfb can do both.
> 
> 1a) #1 is computing the mode list, not setting the mode. The mode is
> always set in the kernel.

At first, I would keep the current mecanism. After all, parsing the EDID
and building the modelist is quite simple. Let the kernel driver do it,
pick a default mode, and let userland optionally change that. That gives
us at least a working boot mode for splash/console before userland is
available. fbdev now has an API for userland to add/remove entries to
modelists, we can extend on that.

> 2) multiheads implies buffer management, this needs to be coordinated with DRM

Yes. That's the main issue with the merge imho. My initial version will
do like MacOS, and cut the framebuffer in 2 apertures split in the
middle. That's the simplest way to get 2 independant access swappers.
This is necessary if we want completely independant framebuffer accesses
to /dev/fbN and /dev/fbN+1 with different bit depth. It may not stay
necessary in the long run if we have some lock for fb access, like X
has, in which case we can just switch the swapper settings before each
access.
 
> 3) fbdev needs to implement hardware cursors

That isn't terribly difficult.

> 4) The fb_info struct doesn't work too well for multiple heads. It
> really should be split up into fb_device/fb_head.

Well, when I look at other OSes, they don't do that neither. They
basically behave like if there was one device per head. All we need, I
think, is the necessary infos to let userland know which heads are
"linked" to a given device, but I don't think the fbdev layer has to
care about the concept of "device". All it cares about is a "head" which
is what fb_info represents.

> 5) driver initiated secondary card reset needs to be implement via a
> user space helper.
> 
> 6) fbcon is tied way too closely to fb_info. There should be an
> interface instead of just letting it muck around in fbdev data
> structures.

It's been very significantly split already, but yes, it could probably
be separated a bit more, though there again, we can go step by step,
there is no need to rewrite the whole world at once.

Ben.




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

  reply	other threads:[~2005-03-12 23:21 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-12 14:06 [patch] radeonfb: FB_WAITFORVSYNC implementation Torgeir Veimo
2005-03-12 15:13 ` Ville Syrjälä
2005-03-12 16:59   ` Torgeir Veimo
2005-03-12 17:10   ` Michel Dänzer
2005-03-12 17:12     ` Torgeir Veimo
2005-03-12 19:20       ` Michel Dänzer
2005-03-12 19:35         ` Jon Smirl
2005-03-12 23:33           ` Benjamin Herrenschmidt
2005-03-12 17:33     ` Ville Syrjälä
2005-03-16  1:28   ` Torgeir Veimo
2005-03-16  1:59     ` Ville Syrjälä
2005-03-16  6:19     ` Michel Dänzer
2005-03-12 15:33 ` Jon Smirl
2005-03-12 15:51   ` Ville Syrjälä
2005-03-12 16:00     ` Jon Smirl
2005-03-12 16:10       ` Ville Syrjälä
2005-03-12 16:21         ` Jon Smirl
2005-03-12 23:23           ` Benjamin Herrenschmidt
2005-03-12 17:03   ` Torgeir Veimo
2005-03-12 17:21     ` Torgeir Veimo
2005-03-12 17:56       ` Jon Smirl
2005-03-12 23:21         ` Benjamin Herrenschmidt [this message]
2005-03-12 23:14 ` Benjamin Herrenschmidt
2005-03-13  3:15   ` Torgeir Veimo
2005-03-12 23:30 ` Benjamin Herrenschmidt
2005-03-16  1:28   ` Torgeir Veimo
     [not found] <20050313012923.60373.qmail@web14926.mail.yahoo.com>
2005-03-13  1:37 ` Benjamin Herrenschmidt

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=1110669665.5787.44.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=jonsmirl@yahoo.com \
    --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).