From: Jon Smirl <jonsmirl@yahoo.com>
To: adaplas@pol.net,
Linux Fbdev development list
<linux-fbdev-devel@lists.sourceforge.net>
Cc: Andrew Morton <akpm@osdl.org>
Subject: Re: [RFC] Video Mode Handling
Date: Mon, 9 Aug 2004 07:56:49 -0700 (PDT) [thread overview]
Message-ID: <20040809145649.7829.qmail@web14925.mail.yahoo.com> (raw)
In-Reply-To: <200408091559.18436.adaplas@hotpop.com>
--- "Antonino A. Daplas" <adaplas@hotpop.com> wrote:
> I guess most people will agree that writing to the hardware belongs
> in the kernel, while choosing the correct values to write belongs to
> userspace. The unanswered question is the middle part, who does the
> verification?
At OLS we talk about a system like this:
1) user owns graphics devices
2) user sets mode with string (or similar) format using ioctl common to
all drivers.
3) driver is locked to prevent multiple mode sets
4) common code takes this string and does a hotplug event with it.
5) hotplug event runs root context in user space
6) mode is decoded and verified, this may involve a little process that
maintains the DDC database and reads a file of legal modes. Other
schemes are possible.
7a) mode is set using VBIOS and vm86, signal driver mode is set
7b) the register values needed to set the mode are passed into a root
priv ioctl.
8) driver is unlocked.
In this model all of the verification happens in user space. If you
want to set modes other than the ones from DDC you have to add them to
the config file. There is no need for DDC support and mode verification
in the kernel.
To give credit this is Alan Cox's design.
=====
Jon Smirl
jonsmirl@yahoo.com
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
next prev parent reply other threads:[~2004-08-09 14:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-09 1:43 [RFC] Video Mode Handling Antonino A. Daplas
2004-08-09 3:50 ` Jon Smirl
2004-08-09 7:59 ` Antonino A. Daplas
2004-08-09 14:56 ` Jon Smirl [this message]
2004-08-09 6:04 ` Andrew Morton
2004-08-09 7:23 ` Geert Uytterhoeven
2004-08-09 8:03 ` Andrew Morton
2004-08-09 8:10 ` Geert Uytterhoeven
2004-08-09 8:41 ` Antonino A. Daplas
2004-08-09 8:26 ` Antonino A. Daplas
2004-08-09 7:59 ` Antonino A. Daplas
2004-08-09 8:08 ` Geert Uytterhoeven
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=20040809145649.7829.qmail@web14925.mail.yahoo.com \
--to=jonsmirl@yahoo.com \
--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).