mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [Dri-devel] my X-Kernel question
       [not found] ` <Pine.LNX.4.20.0110220224390.11846-100000@node2.localnet.net>
@ 2001-10-22  8:24   ` Peter Surda
  2001-10-22  8:39     ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Surda @ 2001-10-22  8:24 UTC (permalink / raw)
  To: dri-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2249 bytes --]

On Mon, Oct 22, 2001 at 02:27:23AM -0400, volodya@mindspring.com wrote:
> The biggest reason against this is that X (as it is now) support not only
> Linux but many other OSes: in particular BSD(s) and Solaris. Moving
> stuff into Linux kernel creates a fork of the drivers which is
> undesirable..
That's a lame excuse. I'm using Linux so I won't suffer from Windows, why
should I suffer because of BSD or Solaris?

<Rant>
About the precise vsync thingy we're talking about in xpert: we need kernel
support anyway. So why instead of calling a video driver in kernel "lame" and
"uncool" and adding a strange inflexible function god-knows-where, shouldn't
we move the whole driver structure to kernel? Drivers for every other device
type are in kernel. What would the anti-video-in-kernel-guys think if I
claimed that network cards should have userspace "drivers" in sort of "uber
daemon" and if an app wants to make a TCP connection it should contact this
"uber daemon"? I don't want to have staroffice in kernel, but the DRIVER
STRUCTURE. For a great UI, we need DMA, vsync and devices communicating with
each other directly or with little overhead. Why insist on doing this in
userspace? The reasons to put it into kernel aren't speed, but because it's
much more easier to add/maintain drivers, add functionality, share code and do
fancy stuff. DRI is a very good example of what I mean.
</Rant>

Short explaination of "the precise vsync thingy": For fluent video playback it
is necessary to precisely coordinate number of frames the monitor displays.
It is very visible on a TV. When I have a 25fps video, it should be EXACTLY
"one frame of data == one frame on TV". Currently, I can tell the card (ATI)
to blit on vsync (so it won't tear), but I can't tell it "don't miss a frame",
or "block until vsync". This results in visible "jumps" when suddenly the same
picture is staying on screen for the double duration than the others and it
sucks and I can't do anything about it without SOME kernel support. Telling
Xserver to poll for vsync and eat CPU is lame.

>                    Vladimir Dergachev
Bye,

Peter Surda (Shurdeek) <shurdeek@panorama.sth.ac.at>, ICQ 10236103, +436505122023

--
                   Disc space - The final frontier.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Dri-devel] my X-Kernel question
  2001-10-22  8:24   ` [Dri-devel] my X-Kernel question Peter Surda
@ 2001-10-22  8:39     ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2001-10-22  8:39 UTC (permalink / raw)
  To: Peter Surda; +Cc: dri-devel, linux-kernel

> we move the whole driver structure to kernel? Drivers for every other device

Not really. 

> STRUCTURE. For a great UI, we need DMA, vsync and devices communicating with
> each other directly or with little overhead. Why insist on doing this in

A video driver has to have extremely good latency, syscalls are overhead that
you generally do not want. There are specific things you want kernel help
with - agp management (and thus AGP DMA), context switching on DRI and maybe
some day interrupt handling for video vsync events and wiring them into
the XSync extension.

The rest is a bit questionable as a kernel space candidate, but if you 
want it in kernel go ahead - XFree86 supports both models. 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-22  8:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <004901c15ab4$dbbb8fc0$5cbefea9@moya>
     [not found] ` <Pine.LNX.4.20.0110220224390.11846-100000@node2.localnet.net>
2001-10-22  8:24   ` [Dri-devel] my X-Kernel question Peter Surda
2001-10-22  8:39     ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®