LWN.net Logo

Back to the kernel

Back to the kernel

Posted Apr 27, 2009 17:57 UTC (Mon) by slougi (subscriber, #58033)
In reply to: Back to the kernel by mikov
Parent article: Packard on the state of Linux graphics

> it is not only the mode setting that goes into the kernel.

If you mean the memory management parts, as some have pointed out above there are reasons for that, like OpenCL for example.

> The kernel and X also never access the hardware at the same time. Designing the whole architecture so that the kernel can display an oops message when it crashes is absurd.

It's not just about displaying oops messages. You get other benefits, like no flickering on boot up when X starts. You finally get frame buffers in the kernel that do not conflict with X. You get safe and flicker free switching between virtual terminals and between multiple sessions when several users are logged in on the same machine.

> The thing about handing monitor hot-plug interrupts is also a red herring. For one, you hardly need extremely low latency for that, so polling once every 200ms in user mode would probably be sufficient. Even if you wanted to do it with an interrupt, there is no need for everything else to be in the kernel - handle the interrupt in the kernel and notify user mode.

Unfortunately, there are many chips that blank screens when you poll for outputs.


(Log in to post comments)

Back to the kernel

Posted Apr 27, 2009 23:59 UTC (Mon) by nix (subscriber, #2304) [Link]

Indeed. I'm frankly scared to switch to virtual terminals when X is
running, because of the number of times it's locked up solid, frozen the
console beyond repair, or 'merely' led to huge numbers of running X apps
deciding to explode on return to X.

Bring on kernel modesetting!

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds