* Current discussion about the future of free software graphics
@ 2004-05-10 16:15 Michel Dänzer
0 siblings, 0 replies; 28+ messages in thread
From: Michel Dänzer @ 2004-05-10 16:15 UTC (permalink / raw)
To: xserver, mesa3d-dev, dri-devel, linux-fbdev-devel
[ Apologies for the broad cross-post; I'd like to reach anyone
potentially interested ]
First of all, it should be fairly obvious to anyone that ideally only a
single kernel driver should muck with the hardware directly. However,
I'd like to point out again that it doesn't follow that the DRM and the
framebuffer device must merge to a single entity (which 'has to be' the
DRM if you ask some people, the framebuffer device if you ask
others...). E.g., they could both use the same mini-driver which deals
with the hardware. Let's try and keep our minds open to all possible
solutions.
I'd also like to comment on some points I noticed in the
ksummit-2004-discuss archives:
In http://thunk.org/pipermail/ksummit-2004-discuss/2004-May/000388.html,
Jim Gettys wrote:
> In short, the X server would put a sequence of commands into a piece
> of memory also visible by the graphics card, set up the DMA
> transfer, tell it to go, and then continue setting up a second buffer,
> and call into the UNIX kernel with the transfer address of the
> second buffer, that transfer to be initiated at interrupt time
> when the first buffer's commands had been processed; this then blocked
> the X server, so it had good "interactive" behavior under many
> circumstances.
>
> It may be that system calls are now cheap enough to do this rather than
> having to do it in user space [...]
Yes, that's basically what the r128 and radeon X drivers do when the DRI
is enabled, and it's considerably faster than direct register banging.
In http://thunk.org/pipermail/ksummit-2004-discuss/2004-May/000391.html,
Jon Smirl wrote:
> The modelines would be passed into the plug-in libs which would turn them into
> register values. Finally the plug-in lib would use a private IOCTL to set the
> state into the video hardware.
>
> There are numerous pros and cons for both a both schemes. The user space code is
> swappable, easier to debug, and does not need to be run as root.
It does, or the ioctl must verify the register data, which could require
about the same amount of code as computing it in the kernel in the first
place (possibly even more; the problem changes from computing a valid
combination of register values for a specific requested mode to limiting
the huge number of register value combinations to those that don't lock
up the chip or worse). I've pointed this out several times before, but
nobody has presented a solution yet. Will the userspace code live in a
daemon that runs as root? Or will only privileged processes be allowed
to change display properties?
--
Earthling Michel Dänzer | Debian (powerpc), X and DRI developer
Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
[not found] <1084205711.804.43.camel@thor.asgaard.local>
@ 2004-05-10 23:45 ` James Simmons
0 siblings, 0 replies; 28+ messages in thread
From: James Simmons @ 2004-05-10 23:45 UTC (permalink / raw)
To: Michel Dänzer; +Cc: xserver, mesa3d-dev, dri-devel, linux-fbdev-devel
> single kernel driver should muck with the hardware directly. However,
> I'd like to point out again that it doesn't follow that the DRM and the
> framebuffer device must merge to a single entity (which 'has to be' the
> DRM if you ask some people, the framebuffer device if you ask
> others...). E.g., they could both use the same mini-driver which deals
> with the hardware. Let's try and keep our minds open to all possible
> solutions.
I agree. The disagreement is about where to put mode setting.
> > register values. Finally the plug-in lib would use a private IOCTL to set the
> > state into the video hardware.
> >
> > There are numerous pros and cons for both a both schemes. The user space code is
> > swappable, easier to debug, and does not need to be run as root.
>
> It does, or the ioctl must verify the register data, which could require
> about the same amount of code as computing it in the kernel in the first
> place (possibly even more; the problem changes from computing a valid
> combination of register values for a specific requested mode to limiting
> the huge number of register value combinations to those that don't lock
> up the chip or worse). I've pointed this out several times before, but
> nobody has presented a solution yet. Will the userspace code live in a
> daemon that runs as root? Or will only privileged processes be allowed
> to change display properties?
So in reality having mode switching would be just as expensive in
userspace as having it in the kernel?
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
[not found] ` <200405102120.48640.ajax-TAsg7VrFCGc@public.gmane.org>
@ 2004-05-11 13:24 ` Michel Dänzer
0 siblings, 0 replies; 28+ messages in thread
From: Michel Dänzer @ 2004-05-11 13:24 UTC (permalink / raw)
To: Adam Jackson
Cc: xserver-CC+yJ3UmIYqDUpFQwHEjaQ, Sottek, Matthew J,
dri-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-fbdev-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
mesa3d-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[ Please remove any subject tags when following up ]
On Tue, 2004-05-11 at 04:20, Adam Jackson wrote:
>
> You only need to trust the user if the operation could have security
> implications.
[...]
> mode setting isn't sensitive because changing the display mode isn't going
> to stomp on kernel data structures or on the address space of other running
> processes.
You're assuming that the user programs a valid mode, but the proposed
interface allows to program any combination of mode register values, of
which valid modes are probably just a small subset, depending on the
hardware. Combinations outside that set might cause unwanted effects
such as lockups or even hardware damage, which is bad enough IMHO.
System RAM access via DMA probably isn't an issue here with the hardware
I'm familiar with, but it might be with others.
> The mechanism _should_ be masked behind a library that abstracts away
> the device and implementation details as much as possible so the user
> (where here "user" equals X11 Classic, Y-Windows, Mesa Solo, whatever)
> doesn't have to care, and also so each new user doesn't have to write
> the same code again.
Yes, an ALSA-style model is probably the way to go. I'm just pointing
out that the interface between the library and the kernel probably can't
be simply an unrestricted ioctl to dump a bunch of register values.
--
Earthling Michel Dänzer | Debian (powerpc), X and DRI developer
Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer
^ permalink raw reply [flat|nested] 28+ messages in thread
* Current discussion about the future of free software graphics
@ 2004-05-11 18:09 sottek
2004-05-11 19:55 ` James Simmons
` (4 more replies)
0 siblings, 5 replies; 28+ messages in thread
From: sottek @ 2004-05-11 18:09 UTC (permalink / raw)
To: eich, agd5f, michel, keithp, jonsmirl, jsimmons
Cc: linux-fbdev-devel, dri-devel
Can we wrap this up the discussion and try to get to a consensus on
design requirements? I think most of the opinions are starting to
solidify enough to start hashing out the requirements and actual
design.
Also, we probably want to drop the communication down to just one
list? I think dri-devel seems to have the widest group of subscribers.
To start the ball rolling here is a few requirements that I have. We
can build up the list and veto as needed to try and get to a working
set.
1: Design must provide a mechanism for basic mode setting in a
device independent manner from an application with user level
permissions. ("Basic" to be defined)
2: Design must provide a mechanism for any number of driver dependent
extensions.
3: Design must provide a mechanism to allow the kernel to draw oops
or console messages to the screen in any mode.
4: Design must insure that user applications may not set the hardware
into an unstable state that could lead to lockup or damage display
devices.
5: Design must incorporate a bi-direction API versioning system. The
application must indicate the API version it is expecting first,
followed by the driver's reply.
And some that may require some discussion:
6: Design must provide a mechnism by which the driver can inform a
user application of acceptable modes that may later be applied to
hardware.
7: Design must provide a mechnism for user level applications to
use rendering features of hardware in a secure manner.
8: Design must provide a mechanism for multi-framebuffer and
multi-display per framebuffer devices to be controlled.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
2004-05-11 18:09 Current discussion about the future of free software graphics sottek
@ 2004-05-11 19:55 ` James Simmons
2004-05-11 20:46 ` Ian Romanick
2004-05-12 14:14 ` Alan Cox
2004-05-11 20:07 ` Geert Uytterhoeven
` (3 subsequent siblings)
4 siblings, 2 replies; 28+ messages in thread
From: James Simmons @ 2004-05-11 19:55 UTC (permalink / raw)
To: sottek; +Cc: eich, agd5f, michel, keithp, jonsmirl, linux-fbdev-devel,
dri-devel
> 1: Design must provide a mechanism for basic mode setting in a
> device independent manner from an application with user level
> permissions. ("Basic" to be defined)
Ug. I see I'm fighting a losing battle but it doesn't matter. I couldn't
never win this fight. There is MONEY involved here. This is a sure way
to make sure Tungstengraphics has a income coming in. They want a monoply
on the linux graphics arena then fine they can have it.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
2004-05-11 18:09 Current discussion about the future of free software graphics sottek
2004-05-11 19:55 ` James Simmons
@ 2004-05-11 20:07 ` Geert Uytterhoeven
2004-05-11 23:10 ` James Simmons
2004-05-11 23:15 ` Nicolas Souchu
` (2 subsequent siblings)
4 siblings, 1 reply; 28+ messages in thread
From: Geert Uytterhoeven @ 2004-05-11 20:07 UTC (permalink / raw)
To: sottek
Cc: eich, agd5f, michel, keithp, jonsmirl, James Simmons,
Linux Frame Buffer Device Development, dri-devel
On Tue, 11 May 2004, sottek wrote:
> Also, we probably want to drop the communication down to just one
> list? I think dri-devel seems to have the widest group of subscribers.
I don't think that's a good idea: dri-devel is limited to the platforms that
have a working DRI implementation, while linux-fbdev-devel is also frequented
by people from platforms without DRI.
And there we see a communication problem again: the DRI was started without
talking to fbdev people, IIRC...
Please unite our forces!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-11 19:55 ` James Simmons
@ 2004-05-11 20:46 ` Ian Romanick
2004-05-12 3:30 ` Jon Smirl
2004-05-12 8:48 ` [Dri-devel] Re: " Keith Whitwell
2004-05-12 14:14 ` Alan Cox
1 sibling, 2 replies; 28+ messages in thread
From: Ian Romanick @ 2004-05-11 20:46 UTC (permalink / raw)
To: James Simmons; +Cc: linux-fbdev-devel, dri-devel
James Simmons wrote:
>>1: Design must provide a mechanism for basic mode setting in a
>>device independent manner from an application with user level
>>permissions. ("Basic" to be defined)
>
> Ug. I see I'm fighting a losing battle but it doesn't matter. I couldn't
> never win this fight. There is MONEY involved here. This is a sure way
> to make sure Tungstengraphics has a income coming in. They want a monoply
> on the linux graphics arena then fine they can have it.
Are you completely without a clue? Nobody from TG is even participating
in this discussion (except a couple messages from Jens a week or so
ago). Why would you even say such a thing?
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
2004-05-11 20:07 ` Geert Uytterhoeven
@ 2004-05-11 23:10 ` James Simmons
0 siblings, 0 replies; 28+ messages in thread
From: James Simmons @ 2004-05-11 23:10 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: sottek, eich, agd5f, michel, keithp, jonsmirl,
Linux Frame Buffer Device Development, dri-devel
> I don't think that's a good idea: dri-devel is limited to the platforms that
> have a working DRI implementation, while linux-fbdev-devel is also frequented
> by people from platforms without DRI.
>
> And there we see a communication problem again: the DRI was started without
> talking to fbdev people, IIRC...
>
> Please unite our forces!
I agree here. I apologize for my behavior.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
2004-05-11 18:09 Current discussion about the future of free software graphics sottek
2004-05-11 19:55 ` James Simmons
2004-05-11 20:07 ` Geert Uytterhoeven
@ 2004-05-11 23:15 ` Nicolas Souchu
2004-05-12 13:34 ` Michel Dänzer
2004-05-12 13:54 ` Egbert Eich
4 siblings, 0 replies; 28+ messages in thread
From: Nicolas Souchu @ 2004-05-11 23:15 UTC (permalink / raw)
To: sottek
Cc: eich, agd5f, michel, keithp, jonsmirl, jsimmons,
linux-fbdev-devel, dri-devel
On Tue, May 11, 2004 at 01:09:48PM -0500, sottek wrote:
[...]
Well said! We are all behind you.
--
Nicholas Souchu - nsouch@free.fr - nsouch@FreeBSD.org
http://www.freebsd.org/~nsouch/kgi4BSD
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-11 20:46 ` Ian Romanick
@ 2004-05-12 3:30 ` Jon Smirl
2004-05-12 14:41 ` Richard Smith
` (3 more replies)
2004-05-12 8:48 ` [Dri-devel] Re: " Keith Whitwell
1 sibling, 4 replies; 28+ messages in thread
From: Jon Smirl @ 2004-05-12 3:30 UTC (permalink / raw)
To: Ian Romanick, James Simmons; +Cc: linux-fbdev-devel, dri-devel
If everyone will please read Benh's original post describing this... Ben and I
had been emailing on this topic before he wrote this.
--- Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> I agree with the idea of moving the EDID decoding & mode selection to
> userland. In this regard, though, I beleive we should aim toward some
> simple library that sits with the kernel, eventually distributed with
> the kernel tree, to live in initramfs optionally since it may be
> required to even get a console at boot (which is fine, initramfs is
> available early). The video cards themselves have PCI drivers that can
> "trigger" detection by the library via hotplug, the library could manage
> things like persistent configuration, either separate desktops or
> geometry of a complex desktop, etc... and eventually notification of
> userland clients of mode changes.
>
> One reason for that is lots of monitors lie about their capabilities in
> their EDID block, so we want "override" files.
>
> The kernel driver in this case doesn't need to be that much different
> than the current fbdev's though, except that we want to move the HW
> access for graphics commands to the kernel too, which basically turns
> into merging the DRI driver and the fbdev. There is no need, I think, to
> re-invent the wheel from scratch here, it would be a lot more realistic
> to build on top of those existing pieces.
What this is saying is that very early in the boot process the graphics driver
will be initialized. At this point it will generate a hotplug event. This event
will be handled by an app and lib that live in initramfs. This is not saying
that mode-setting will be delayed until normal user space starts. The initial
hotplug event occurs very early in the boot process, almost as early as the
current device driver based code runs.
This is very similar to the way udev works. Udev is a user space replacement for
devfs. Instead of having a /dev with 40,000 devices in it, udev builds one on
the fly at each boot with exactly your devices in it. Now that I have used udev
instead of devfs I have to agree that it is a much better solution. In fact the
udev app will run before the mode-setting app since it's the udev app that
creates the devices in /dev now by detecting additions to sysfs. udev FAQ:
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-FAQ
We all know Linux is non-functional without a /dev directory, and now /dev is
being build in user space.
Andrew, akpm, has also explained to me that even the current fbdev is not really
active at boot. Instead those initial printk's are queued until the fbdev driver
initialized and prints them.
So moving mode setting to user space is not the end of the world. Everything
will still work. This is more like a monolithic vs microkernel type of decision.
All of the existing code is going to be reused (if we can figure out the
licenses). I've already built a very messy prototype by moving the existing
fbdev code to user space and it works just fine. I also called another little
app which executed the VBIOS and reset secondary cards at boot via hotplug.
I've convinced myself of the advantages of moving mode setting to user space,
but maybe I've missed something that someone else will point out. But let's look
at this as an engineering problem and try to come up with a robust, efficient solution.
=====
Jon Smirl
jonsmirl@yahoo.com
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Dri-devel] Re: Re: Current discussion about the future of free software graphics
2004-05-11 20:46 ` Ian Romanick
2004-05-12 3:30 ` Jon Smirl
@ 2004-05-12 8:48 ` Keith Whitwell
2004-05-12 17:09 ` James Simmons
2004-05-13 3:32 ` Keith Packard
1 sibling, 2 replies; 28+ messages in thread
From: Keith Whitwell @ 2004-05-12 8:48 UTC (permalink / raw)
To: Ian Romanick; +Cc: James Simmons, linux-fbdev-devel, dri-devel
Ian Romanick wrote:
> James Simmons wrote:
>
>>> 1: Design must provide a mechanism for basic mode setting in a
>>> device independent manner from an application with user level
>>> permissions. ("Basic" to be defined)
>>
>>
>> Ug. I see I'm fighting a losing battle but it doesn't matter. I
>> couldn't never win this fight. There is MONEY involved here. This is a
>> sure way
>> to make sure Tungstengraphics has a income coming in. They want a
>> monoply on the linux graphics arena then fine they can have it.
>
>
> Are you completely without a clue? Nobody from TG is even participating
> in this discussion (except a couple messages from Jens a week or so
> ago). Why would you even say such a thing?
I do feel remiss that I'm not engaged more fully in this, but really much of
the ground covered is way outside the areas in which I feel qualified to
comment, or perhaps it's just that I don't have an opinion either way about
mode-setting, etc, based on long years of just having the X server take care
of it for me...
Anyway. I've got a lot of respect for the people involved in the discussion,
even when they hold quite conflicting views, so I'm hopeful that some sort of
direction can be reached for moving forward.
My one worry about the discussion is that because of confusion over where the
X developers are hanging out nowadays, they are missing out on having their
say on this - and they probably care deeply about modesetting. Though, given
the mad flamewar it's turned into, maybe smaller is better...
Keith
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
2004-05-11 18:09 Current discussion about the future of free software graphics sottek
` (2 preceding siblings ...)
2004-05-11 23:15 ` Nicolas Souchu
@ 2004-05-12 13:34 ` Michel Dänzer
2004-05-12 13:54 ` Egbert Eich
4 siblings, 0 replies; 28+ messages in thread
From: Michel Dänzer @ 2004-05-12 13:34 UTC (permalink / raw)
To: sottek; +Cc: eich, keithp, linux-fbdev-devel, dri-devel
On Tue, 2004-05-11 at 20:09, sottek wrote:
> Can we wrap this up the discussion and try to get to a consensus on
> design requirements? I think most of the opinions are starting to
> solidify enough to start hashing out the requirements and actual
> design.
I agree, and I like your initial list of requirements.
> Also, we probably want to drop the communication down to just one
> list? I think dri-devel seems to have the widest group of subscribers.
I agree with Geert, that probably doesn't cut it. Maybe start a new list
and widely send out invitations to discuss the design there?
--
Earthling Michel Dänzer | Debian (powerpc), X and DRI developer
Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
2004-05-11 18:09 Current discussion about the future of free software graphics sottek
` (3 preceding siblings ...)
2004-05-12 13:34 ` Michel Dänzer
@ 2004-05-12 13:54 ` Egbert Eich
4 siblings, 0 replies; 28+ messages in thread
From: Egbert Eich @ 2004-05-12 13:54 UTC (permalink / raw)
To: sottek
Cc: eich, agd5f, michel, keithp, jonsmirl, jsimmons,
linux-fbdev-devel, dri-devel
sottek writes:
> Can we wrap this up the discussion and try to get to a consensus on
> design requirements? I think most of the opinions are starting to
> solidify enough to start hashing out the requirements and actual
> design.
>
> Also, we probably want to drop the communication down to just one
> list? I think dri-devel seems to have the widest group of subscribers.
Well, I would think there are a lot more people who are interested
in this subject than are subscribed on dri-devel. dri-devel really
has a different scope.
> 4: Design must insure that user applications may not set the hardware
> into an unstable state that could lead to lockup or damage display
> devices.
The 'driver' must do mode validation using data supplied by either the
display itself or the application (you need the second as some display
devices may not support sending this data or the data sent is bogus).
Broken video modes usually result from:
1. broken drivers
2. bogus user level configuration/override
Egbert.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
2004-05-11 19:55 ` James Simmons
2004-05-11 20:46 ` Ian Romanick
@ 2004-05-12 14:14 ` Alan Cox
1 sibling, 0 replies; 28+ messages in thread
From: Alan Cox @ 2004-05-12 14:14 UTC (permalink / raw)
To: DRI Devel
Cc: sottek, eich, agd5f, michel, keithp, jonsmirl, linux-fbdev-devel
On Maw, 2004-05-11 at 20:55, James Simmons wrote:
> Ug. I see I'm fighting a losing battle but it doesn't matter. I couldn't
> never win this fight. There is MONEY involved here. This is a sure way
> to make sure Tungstengraphics has a income coming in. They want a monoply
> on the linux graphics arena then fine they can have it.
Current DRI is certainly a PITA unless you know it well but the kernel
side is quite trivial underneath the macrotrastrophe and preprocessor
abuse.
Its mappable buffers, queue, interrupt handler, X<->kernel auth mapping,
and thats it
Also I'd note several folks are doing DRI nowday without Tungsten - VIA
did the Savage and VIA drivers, sis6326 is a WIP but its also not
tungsten stuff.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
--
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 3:30 ` Jon Smirl
@ 2004-05-12 14:41 ` Richard Smith
2004-05-12 17:56 ` James Simmons
2004-05-12 16:45 ` James Simmons
` (2 subsequent siblings)
3 siblings, 1 reply; 28+ messages in thread
From: Richard Smith @ 2004-05-12 14:41 UTC (permalink / raw)
To: jonsmirl; +Cc: Ian Romanick, James Simmons, linux-fbdev-devel, dri-devel
Jon Smirl wrote:
> licenses). I've already built a very messy prototype by moving the existing
> fbdev code to user space and it works just fine. I also called another little
> app which executed the VBIOS and reset secondary cards at boot via hotplug.
Is that app available somewhere? I'm trying to get an ATI Rage Mobility
M1 chip up under LinuxBIOS and such and app would be useful for me.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 3:30 ` Jon Smirl
2004-05-12 14:41 ` Richard Smith
@ 2004-05-12 16:45 ` James Simmons
2004-05-12 19:00 ` Geert Uytterhoeven
2004-05-12 22:45 ` Nicolas Souchu
2004-05-13 10:39 ` Michel Dänzer
3 siblings, 1 reply; 28+ messages in thread
From: James Simmons @ 2004-05-12 16:45 UTC (permalink / raw)
To: Jon Smirl; +Cc: Ian Romanick, linux-fbdev-devel, dri-devel
> What this is saying is that very early in the boot process the graphics driver
> will be initialized. At this point it will generate a hotplug event. This event
> will be handled by an app and lib that live in initramfs. This is not saying
> that mode-setting will be delayed until normal user space starts. The initial
> hotplug event occurs very early in the boot process, almost as early as the
> current device driver based code runs.
Right now alot of application including commerical depend on setting the
video mode via /dev/fb. I like to have /sys do that in the future. If that
goes away it will break alot of software. Hurt alot of companies.
Now consider these apps in the future and how with the above will work.
app -> /dev/fb to change mode
-> context switch to kernel
-> send hot plug event
-> userland app grabs event
-> loads library to execute the code if it hasn't done so already
-> set mode in userland library
-> via a ioctl creates a event packet to send back to kernel to let
them know it worked. Also we need to send back detail data on the
new mode for the app. We might of not got the exact mode we wanted
so we send back the closes thing we wanted.
-> context switch to kernel
-> store new data kernel side.
-> call library to grab new resolution data for a app.
Now you could say we could remove the fbdev interface completely and move
to the library. But then you have the below case.
Now consider the case of a VC switch where two VC's are at different
resolutions. Say one is at 80x30 and the other is 128x48
You press Alt-Fx -> VT code call console_callback
-> send a hotplug event to userland
-> a userland app gets the event
-> loads the userland library
-> executes the code to set the video mode
-> send back a ok from userland. Again we need to send
a packet back to kernel to let them know if it was
successful. Also we need to let them know the exact
details of the mode we actually got.
-> context switch to kernel
-> write new data to struct vc_data.
This is a really expensive solution.
I understand you point of the mode switching code being huge. The embedded
guys require really lean kernels. I have no problem making the mode switching
code modular. I just want to avoid the above overhead.
> This is very similar to the way udev works. Udev is a user space replacement for
> devfs. Instead of having a /dev with 40,000 devices in it, udev builds one on
> the fly at each boot with exactly your devices in it. Now that I have used udev
> instead of devfs I have to agree that it is a much better solution. In fact the
> udev app will run before the mode-setting app since it's the udev app that
> creates the devices in /dev now by detecting additions to sysfs. udev FAQ:
> http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-FAQ
> We all know Linux is non-functional without a /dev directory, and now /dev is
> being build in user space.
I also like udev much more than devfs. The difference is that userland
doesn't modify device nodes. You create them and you remove them. Very
basic. Fbdev is a bit more complex than that. You can see that in the
above arguments.
> Andrew, akpm, has also explained to me that even the current fbdev is not
> really active at boot. Instead those initial printk's are queued until
> the fbdev driver initialized and prints them.
That is true and I consider it a bug. The true is that the fbdev layer
could be started right away for most of the drivers. Most fbdev devices
are embedded devices which don't need a bus initialized first. Even on
intel you could have the vga16 driver started at the exact same time as
vgacon. The limitation is only for devices like pci. Personally I like to
see fbcon start at the same time as vgacon and the rest and if the
graphics card is pci then when it initializes then start drawing the data.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Dri-devel] Re: Re: Current discussion about the future of free software graphics
2004-05-12 8:48 ` [Dri-devel] Re: " Keith Whitwell
@ 2004-05-12 17:09 ` James Simmons
2004-05-13 3:32 ` Keith Packard
1 sibling, 0 replies; 28+ messages in thread
From: James Simmons @ 2004-05-12 17:09 UTC (permalink / raw)
To: Keith Whitwell; +Cc: Ian Romanick, linux-fbdev-devel, dri-devel
> Anyway. I've got a lot of respect for the people involved in the discussion,
> even when they hold quite conflicting views, so I'm hopeful that some sort of
> direction can be reached for moving forward.
I apologize for getting over heated. I'm very protective of the companies
that work in the embedded space. I don't want to see them go away. They
are vitial to linux.
I know this might get some people upset but IMNSHO the linux community
is going after the wrong goal. Everyone keeps thinking desktop PC. We don't
have the resources to win that war and second the PC is NOT the future. I work
for a asian company and when you go to the asian rim you see that the
latest technology is in the embedded space. Look all around you. Embedded
devices are everywhere. In stoplights, cars, supermarkets, tv, dvd
players. Next time you use your printer look at the little display. Guess
what? That printer is most likely a linux box and that little display is a
framebuffer devices. How do I know? Because I wrote that code for the last
company I worked at.
For the embedded space we do have the resources to win that area of the
market if we provide the tools they need to succeed. What do most people
use there laptops for. Mostly playing movies. I also see embedded devices
coming to this market soon that do the same thing for alot less money.
Even the 3D graphics market is moving away from the PC to game consoles.
> My one worry about the discussion is that because of confusion over where the
> X developers are hanging out nowadays, they are missing out on having their
> say on this - and they probably care deeply about modesetting. Though, given
> the mad flamewar it's turned into, maybe smaller is better...
Sorry about the flamewar.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 14:41 ` Richard Smith
@ 2004-05-12 17:56 ` James Simmons
2004-05-12 18:56 ` Geert Uytterhoeven
` (2 more replies)
0 siblings, 3 replies; 28+ messages in thread
From: James Simmons @ 2004-05-12 17:56 UTC (permalink / raw)
To: Richard Smith; +Cc: jonsmirl, Ian Romanick, linux-fbdev-devel, dri-devel
That app must be pretty big if it runs on non intel platforms. You nedd to
translate the x86 BIOS code to native assembly before you run it.
On Wed, 12 May 2004, Richard Smith wrote:
> Jon Smirl wrote:
>
> > licenses). I've already built a very messy prototype by moving the existing
> > fbdev code to user space and it works just fine. I also called another little
> > app which executed the VBIOS and reset secondary cards at boot via hotplug.
>
> Is that app available somewhere? I'm trying to get an ATI Rage Mobility
> M1 chip up under LinuxBIOS and such and app would be useful for me.
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
> deliver higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> _______________________________________________
> Linux-fbdev-devel mailing list
> Linux-fbdev-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
>
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 17:56 ` James Simmons
@ 2004-05-12 18:56 ` Geert Uytterhoeven
2004-05-12 19:11 ` James Simmons
2004-05-12 19:23 ` Richard Smith
2004-05-12 20:45 ` Richard Smith
2 siblings, 1 reply; 28+ messages in thread
From: Geert Uytterhoeven @ 2004-05-12 18:56 UTC (permalink / raw)
To: James Simmons
Cc: Richard Smith, jonsmirl, Ian Romanick,
Linux Frame Buffer Device Development, dri-devel
On Wed, 12 May 2004, James Simmons wrote:
> That app must be pretty big if it runs on non intel platforms. You nedd to
> translate the x86 BIOS code to native assembly before you run it.
Or interprete it.
> On Wed, 12 May 2004, Richard Smith wrote:
> > Jon Smirl wrote:
> > > licenses). I've already built a very messy prototype by moving the existing
> > > fbdev code to user space and it works just fine. I also called another little
> > > app which executed the VBIOS and reset secondary cards at boot via hotplug.
> >
> > Is that app available somewhere? I'm trying to get an ATI Rage Mobility
> > M1 chip up under LinuxBIOS and such and app would be useful for me.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 16:45 ` James Simmons
@ 2004-05-12 19:00 ` Geert Uytterhoeven
0 siblings, 0 replies; 28+ messages in thread
From: Geert Uytterhoeven @ 2004-05-12 19:00 UTC (permalink / raw)
To: James Simmons
Cc: Jon Smirl, Ian Romanick, Linux Frame Buffer Device Development,
dri-devel
On Wed, 12 May 2004, James Simmons wrote:
> I understand you point of the mode switching code being huge. The embedded
> guys require really lean kernels. I have no problem making the mode switching
> code modular. I just want to avoid the above overhead.
And for an embedded device with a fixed LCD screen you can easily make the mode
setting code __init, and disallow mode changes after boot up. One device
driver, just one more kernel config option. Some code has to do the mode
setting anyway, so better keep it in one place.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 18:56 ` Geert Uytterhoeven
@ 2004-05-12 19:11 ` James Simmons
2004-05-12 19:40 ` Geert Uytterhoeven
0 siblings, 1 reply; 28+ messages in thread
From: James Simmons @ 2004-05-12 19:11 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Richard Smith, jonsmirl, Ian Romanick,
Linux Frame Buffer Device Development, dri-devel
> > That app must be pretty big if it runs on non intel platforms. You nedd to
> > translate the x86 BIOS code to native assembly before you run it.
>
> Or interprete it.
Only if we could use Java for the video BIOS.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 17:56 ` James Simmons
2004-05-12 18:56 ` Geert Uytterhoeven
@ 2004-05-12 19:23 ` Richard Smith
2004-05-12 20:45 ` Richard Smith
2 siblings, 0 replies; 28+ messages in thread
From: Richard Smith @ 2004-05-12 19:23 UTC (permalink / raw)
To: jsimmons; +Cc: jonsmirl, Ian Romanick, linux-fbdev-devel, dri-devel
James Simmons wrote:
> That app must be pretty big if it runs on non intel platforms. You nedd to
> translate the x86 BIOS code to native assembly before you run it.
Or you emulate thier functionality.. but perhaps thats what you are
saying. Thats what X does. LinuxBIOS has pulled the x86emu out into a
standalone userspace app that we use to try and get video cards up
across a serial console. Currently that app is 400k (dynamic linked)
The plan though is to include that emulation ability into LinuxBIOS and
400k is way to large. The authors feel though that it can be done. I
think the core pieces aren't really that big.
It dosen't seem to work with my ATI bios though which is why I was
interested in another implementation. Word is that the current
LinuxBIOS implementation has issues with int10 replacement and then
calling back into itself.
>>Jon Smirl wrote:
>>
>>
>>>licenses). I've already built a very messy prototype by moving the existing
>>>fbdev code to user space and it works just fine. I also called another little
>>>app which executed the VBIOS and reset secondary cards at boot via hotplug.
>>
>>Is that app available somewhere? I'm trying to get an ATI Rage Mobility
>> M1 chip up under LinuxBIOS and such and app would be useful for me.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 19:11 ` James Simmons
@ 2004-05-12 19:40 ` Geert Uytterhoeven
2004-05-12 21:09 ` James Simmons
0 siblings, 1 reply; 28+ messages in thread
From: Geert Uytterhoeven @ 2004-05-12 19:40 UTC (permalink / raw)
To: James Simmons
Cc: Richard Smith, jonsmirl, Ian Romanick,
Linux Frame Buffer Device Development, dri-devel
On Wed, 12 May 2004, James Simmons wrote:
> > > That app must be pretty big if it runs on non intel platforms. You nedd to
> > > translate the x86 BIOS code to native assembly before you run it.
> >
> > Or interprete it.
>
> Only if we could use Java for the video BIOS.
Java? em86 (written by Gabriel Paubert) has been working fine on my PPC box
since 1998.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 17:56 ` James Simmons
2004-05-12 18:56 ` Geert Uytterhoeven
2004-05-12 19:23 ` Richard Smith
@ 2004-05-12 20:45 ` Richard Smith
2 siblings, 0 replies; 28+ messages in thread
From: Richard Smith @ 2004-05-12 20:45 UTC (permalink / raw)
To: linux-fbdev-devel
Somehow this dosen't appear to have made it the first time. Apologies
if 2 of these show up.
James Simmons wrote:
> That app must be pretty big if it runs on non intel platforms. You nedd to
> translate the x86 BIOS code to native assembly before you run it.
Or you emulate thier functionality.. but perhaps thats what you are
saying. Thats what X does. LinuxBIOS has pulled the x86emu out into a
standalone userspace app that we use to try and get video cards up
across a serial console. Currently that app is 400k (dynamic linked)
The plan though is to include that emulation ability into LinuxBIOS and
400k is way to large. The authors feel though that it can be done. I
think the core pieces aren't really that big.
It dosen't seem to work with my ATI bios though which is why I was
interested in another implementation. Word is that the current
LinuxBIOS implementation has issues with int10 replacement and then
calling back into itself.
>>Jon Smirl wrote:
>>
>>
>>>licenses). I've already built a very messy prototype by moving the existing
>>>fbdev code to user space and it works just fine. I also called another little
>>>app which executed the VBIOS and reset secondary cards at boot via hotplug.
>>
>>Is that app available somewhere? I'm trying to get an ATI Rage Mobility
>> M1 chip up under LinuxBIOS and such and app would be useful for me.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 19:40 ` Geert Uytterhoeven
@ 2004-05-12 21:09 ` James Simmons
0 siblings, 0 replies; 28+ messages in thread
From: James Simmons @ 2004-05-12 21:09 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Richard Smith, jonsmirl, Ian Romanick,
Linux Frame Buffer Device Development, dri-devel
> > > > That app must be pretty big if it runs on non intel platforms. You nedd to
> > > > translate the x86 BIOS code to native assembly before you run it.
> > >
> > > Or interprete it.
> >
> > Only if we could use Java for the video BIOS.
>
> Java? em86 (written by Gabriel Paubert) has been working fine on my PPC box
> since 1998.
It was a joke.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Re: Current discussion about the future of free software graphics
2004-05-12 3:30 ` Jon Smirl
2004-05-12 14:41 ` Richard Smith
2004-05-12 16:45 ` James Simmons
@ 2004-05-12 22:45 ` Nicolas Souchu
2004-05-13 10:39 ` Michel Dänzer
3 siblings, 0 replies; 28+ messages in thread
From: Nicolas Souchu @ 2004-05-12 22:45 UTC (permalink / raw)
To: Jon Smirl; +Cc: linux-fbdev-devel, dri-devel
On Tue, May 11, 2004 at 08:30:45PM -0700, Jon Smirl wrote:
[...]
> So moving mode setting to user space is not the end of the world. Everything
> will still work. This is more like a monolithic vs microkernel type of decision.
Which is why Linux is a monolithic kernel, it's by design. The net is plenty of
linus' threads about this.
--
Nicholas Souchu - nsouch@free.fr - nsouch@FreeBSD.org
http://www.freebsd.org/~nsouch/kgi4BSD
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Dri-devel] Re: Re: Current discussion about the future of free software graphics
2004-05-12 8:48 ` [Dri-devel] Re: " Keith Whitwell
2004-05-12 17:09 ` James Simmons
@ 2004-05-13 3:32 ` Keith Packard
1 sibling, 0 replies; 28+ messages in thread
From: Keith Packard @ 2004-05-13 3:32 UTC (permalink / raw)
To: dri-devel; +Cc: Ian Romanick, James Simmons, linux-fbdev-devel, Keith Packard
[-- Attachment #1: Type: text/plain, Size: 479 bytes --]
Around 9 o'clock on May 12, Keith Whitwell wrote:
> My one worry about the discussion is that because of confusion over where the
> X developers are hanging out nowadays, they are missing out on having their
> say on this - and they probably care deeply about modesetting.
Egbert and I are here; I'm not sure who else wants to be involved at this
point. I know I'm hoping that a great deal of the mode setting logic
disappears from my piece of the system soon.
-keith
[-- Attachment #2: Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Current discussion about the future of free software graphics
2004-05-12 3:30 ` Jon Smirl
` (2 preceding siblings ...)
2004-05-12 22:45 ` Nicolas Souchu
@ 2004-05-13 10:39 ` Michel Dänzer
3 siblings, 0 replies; 28+ messages in thread
From: Michel Dänzer @ 2004-05-13 10:39 UTC (permalink / raw)
To: Jon Smirl; +Cc: linux-fbdev-devel, dri-devel
On Wed, 2004-05-12 at 05:30, Jon Smirl wrote:
> If everyone will please read Benh's original post describing this... Ben and I
> had been emailing on this topic before he wrote this.
>
> --- Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> > I agree with the idea of moving the EDID decoding & mode selection to
> > userland. In this regard, though, I beleive we should aim toward some
> > simple library that sits with the kernel, eventually distributed with
> > the kernel tree, to live in initramfs optionally since it may be
> > required to even get a console at boot (which is fine, initramfs is
> > available early). The video cards themselves have PCI drivers that can
> > "trigger" detection by the library via hotplug, the library could manage
> > things like persistent configuration, either separate desktops or
> > geometry of a complex desktop, etc... and eventually notification of
> > userland clients of mode changes.
> >
> > One reason for that is lots of monitors lie about their capabilities in
> > their EDID block, so we want "override" files.
> >
> > The kernel driver in this case doesn't need to be that much different
> > than the current fbdev's though, except that we want to move the HW
> > access for graphics commands to the kernel too, which basically turns
> > into merging the DRI driver and the fbdev. There is no need, I think, to
> > re-invent the wheel from scratch here, it would be a lot more realistic
> > to build on top of those existing pieces.
>
> What this is saying is that very early in the boot process the graphics driver
> will be initialized. At this point it will generate a hotplug event. This event
> will be handled by an app and lib that live in initramfs. This is not saying
> that mode-setting will be delayed until normal user space starts.
Sure, because Ben doesn't talk about moving mode-setting to userland at
all AFAICT. :)
> I've already built a very messy prototype by moving the existing fbdev
> code to user space and it works just fine.
Maybe if others could play with this prototype...
--
Earthling Michel Dänzer | Debian (powerpc), X and DRI developer
Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
--
^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2004-05-13 10:39 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-11 18:09 Current discussion about the future of free software graphics sottek
2004-05-11 19:55 ` James Simmons
2004-05-11 20:46 ` Ian Romanick
2004-05-12 3:30 ` Jon Smirl
2004-05-12 14:41 ` Richard Smith
2004-05-12 17:56 ` James Simmons
2004-05-12 18:56 ` Geert Uytterhoeven
2004-05-12 19:11 ` James Simmons
2004-05-12 19:40 ` Geert Uytterhoeven
2004-05-12 21:09 ` James Simmons
2004-05-12 19:23 ` Richard Smith
2004-05-12 20:45 ` Richard Smith
2004-05-12 16:45 ` James Simmons
2004-05-12 19:00 ` Geert Uytterhoeven
2004-05-12 22:45 ` Nicolas Souchu
2004-05-13 10:39 ` Michel Dänzer
2004-05-12 8:48 ` [Dri-devel] Re: " Keith Whitwell
2004-05-12 17:09 ` James Simmons
2004-05-13 3:32 ` Keith Packard
2004-05-12 14:14 ` Alan Cox
2004-05-11 20:07 ` Geert Uytterhoeven
2004-05-11 23:10 ` James Simmons
2004-05-11 23:15 ` Nicolas Souchu
2004-05-12 13:34 ` Michel Dänzer
2004-05-12 13:54 ` Egbert Eich
-- strict thread matches above, loose matches on Subject: below --
2004-05-11 0:11 [Linux-fbdev-devel] " Sottek, Matthew J
2004-05-11 2:20 ` Adam Jackson
[not found] ` <200405102120.48640.ajax-TAsg7VrFCGc@public.gmane.org>
2004-05-11 13:24 ` Michel Dänzer
[not found] <1084205711.804.43.camel@thor.asgaard.local>
2004-05-10 23:45 ` James Simmons
2004-05-10 16:15 Michel Dänzer
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).