Linux Gets Kernel-Based Modesetting 81
An anonymous reader writes "Next month when Fedora 9 is released it will be the first Linux distribution with support for kernel mode-setting, which is (surprisingly) a feature end-users should take note over. Kernel-based modesetting provides a flicker-free boot process, faster and more reliable VT switching, a Linux BSOD, and of most interest is much-improved suspend/resume support! The process of moving the modesetting code from the X.Org video driver into the Linux kernel isn't easy, but it should become official with the Linux 2.6.27 kernel, and the Intel video driver can already use this technology. Phoronix has a preview of kernel-based modesetting covering more of this new Linux feature accompanied by videos showing the dramatic improvements in virtual terminal switching."
Re: (Score:1, Funny)
BSD is dead. Netcraft has confirmed it. Therefore, OS X is dead.
Re: (Score:1)
Is this the least commented on story ever ? (Score:1, Insightful)
Re: (Score:1, Offtopic)
Re: (Score:3, Insightful)
Oh boy! (Score:5, Funny)
Re: (Score:3, Interesting)
Re: (Score:1)
iKonqueror == Safari (Score:5, Funny)
Re: (Score:2)
Re: (Score:1)
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
Waitasec... (Score:5, Funny)
Re: (Score:2)
KGI, only much later and missing some features. (Score:5, Informative)
As usual the old guard says something like "Graphics isn't relevant" and holds back progress for years on end.
Re:KGI, only much later and missing some features. (Score:5, Insightful)
As I recall, there was also the arument that grahics in the kernel risked instability that would impact the system and be hard to trace. I can sympathize with this argument a bit more, but in the end it is true of all hardware drivers - hence the efforts of microkernel and exokernel developers to move such stuff into isolatable containers. It's a good idea, not terribly efficient because of all the message passing, but I can understand the reasoning.
Re:KGI, only much later and missing some features. (Score:4, Insightful)
How true that is! I once worked at a shop where everybody was on NT4, and my box kept blue-screening because of a bug in the graphics driver. Putting drivers like that in kernel space just to get a little more speed is downright stupid, especially when you consider that NT 4 was largely marketed as a server OS where graphics weren't exactly important. I can't help but feel, given my experience, that this isn't exactly the best of ideas.
Re:KGI, only much later and missing some features. (Score:5, Informative)
Re: (Score:2)
Re: (Score:2)
Re:KGI, only much later and missing some features. (Score:4, Insightful)
There is a point to that. On the other hand, it is questionable whether, in Linux, userspace _should_ be able to do all the things needed to drive the graphics card. Userspace directly accessing hardware and reading and writing arbitrary memory locations?
On the gripping hand, the reason this is unsafe is only that the languages we use are unsafe. They don't gurantee that processes don't access things that aren't theirs. Essentially, we solve this by imposing a sort of dynamic type checking: we run these unsafe processes in a restricted mode, where the hardware limits their access to memory and I/O ports. Of course, sometimes, you _do_ need more than this restricted access, and that's what the kernel does. We trust the kernel to do it right. But now we've used indirection into the process: to access the hardware, a process needs to go through the kernel, which (hopefully) restricts the process to only doing benign things to the hardware. This is, of course, slower than it could be. Especially on x86, where switching from user mode to kernel mode is quite an expensive operation. This is the real reason why microkernels are slow.
An alternative would be to have the compiler perform or insert the checks that, in current systems, are performed by the kernel and the hardware at run-time. This way, processes don't have to run in restricted mode and go through the kernel anymore, because they aren't going to do any of the things the kernel would prevent them from doing anyway. Of course, this requires a rather safer type system than C's, and it shifts trust from the kernel to the compiler - which raises issues about how you can know that the code you want to run was indeed compiled by a trustworthy compiler. However, these issues can be solved, and you end up with a system that can be more modular _and_ more efficient.
Re: (Score:2)
Re: (Score:2)
Userspace directly accessing hardware and reading and writing arbitrary memory locations?
They're not so arbitrary. The kernel lets a display server process mmap two specific parts of memory, namely VRAM and the I/O registers. How is it any different from implementing a file system in user space [sourceforge.net]?
Of course, this requires a rather safer type system than C's, and it shifts trust from the kernel to the compiler - which raises issues about how you can know that the code you want to run was indeed compiled by a trustworthy compiler.
Unfortunately, the common way to do this is to require that all code executing on a system be signed by the system's manufacturer. This is the case for TiVo, iPhone, and all video game consoles other than the HTPC, and such manufacturers tend to require contractual terms that shut out hobbyist develope
Re: (Score:3, Insightful)
Yeeees. Right. Absolutely.
This has nothing to do with sloppy programming and bunch of incompetent monkeys who managed to get to keyboard because it is cool.
The difference between good developer and bad developer is that good developer always listens to user feed back. To system developers that's application developers are users. To application developers that's end-users are users. To hardware developers that's system de
Re: (Score:2)
Re: (Score:2)
Re:KGI, only much later and missing some features. (Score:4, Insightful)
Re: (Score:3, Informative)
Unfortunately "They" (a larger group of kernel devs who only switched out of EGA mode for multiple terminals on one screen, a group that seems to have included Linus Torvalds) thought that companies who were paid to provide realtime 3d rendered displays of data/media for whatever reasons (eg medical visualisation, pi
Re: (Score:3, Funny)
Re: (Score:2)
Couldn't resist.
Re:Thanks but no thanks (Score:4, Informative)
I hear ya...I've better luck with the Debian Hurd project, give them a shot:
http://www.debian.org/ports/hurd/ [debian.org]
If it's been a while, you might be pleasantly surprised: you can get a decent GNU/Hurd install going without too much trouble, there are things happening, development-wise (including possible "summer of code" participation) and so on.
Good luck.
Re: (Score:3, Funny)
Re: (Score:2)
I hear ya...I've better luck with the Debian Hurd project, give them a shot:
Translation: "We're desperate enough"? Seriously, I know of people using Linux. I know certain niches (but noone personally) that use *BSD. But I've never heard of anyone using the HURD as anything but their pet hacking project. An OS really is a thing that rots, just keeping up with changing hardware is a big job.
I'm sure Linux has several more layers of beureucracy and are far more critical to what code goes in there, but I think it comes with the territory. If you got code in the main kernel, it's not j
Re: (Score:1)
Re: (Score:1, Informative)
The justification is, if the X server crashes, the kernel can restore the display to a usable state. It also ensures that the display is reinitialized properly after suspend/resume.
Re: (Score:3, Interesting)
Every time I've had X crash, it's brought me right back to the console, with no issues or problems.
But then, I don't use [xgk]dm, nor do I use DRI. This seems like a really Microsoft-like Bad Idea to me...
Re: (Score:3, Insightful)
Re: (Score:1)
Re: (Score:1)
Re:What for? (Score:5, Interesting)
DRM? (Score:2, Funny)
Re: (Score:2)
Confirmed, works and is very promising (Score:5, Interesting)
Re: (Score:3, Funny)
Being a Linux user, I never thought I'd say that.
Re: (Score:2)
This is all no thanks to NVidia, who haven't released any sort of specs (not even for modesetting, which they can't easily argue would help their competitors or reveal any big secrets).
Cross platform X compatibility? (Score:5, Interesting)
Are the *BSDs and commercial Unices planning on similar work? Will support for modesetting eventually be dropped from X drivers?
Re: (Score:2, Informative)
Does anybody have some insights on how this will affect those not using Linux kernels with this patch?
Are the *BSDs and commercial Unices planning on similar work? Will support for modesetting eventually be dropped from X drivers?
I was under the impression that Solaris already did this, to name one.
solaris has its own x11 implementation -- http://en.wikipedia.org/wiki/Xsun [wikipedia.org] -- although x.org is an option for the i386 platform
better? (Score:1)
Left hand: Better Suspend/Resume Support
Right hand: Microsoft-style reliability, blue screens, and wierd crash codes.
Did someone seriously think about this and decide it was a good idea? Rarely have I had a desire to criticize what Red Hat is doing, but between SELinux and BSOD's, they really have me wondering what is going on over there.
Here's to hoping this is one of those weekend articles that's just plain wrong.
BSOD explanation (Score:2, Informative)
Currently, if the kernel panic, and X is shown, the machine just locks up.
With kernel mode-setting, the kernel will be able to switch out of X and print panic to the screen. This is very helpful to developers, and for bug reports.
The downside is not decreased reliability, but that the normal user will panic too (and not just the kernel).
Of course, the more code we have in the kernel, the more reasons to oops, but that hardly happens on distribution kerne
Spam (Score:2)
Finally - Linux BSOD (Score:4, Funny)
Great, but... (Score:2)
Suppose X is locked up. Today I can perform a VT switch and get a pretty responsive console, if the keyboard still responds. From there the offending program, or X, can be killed and the system recovered. Can I still do that?
Re: (Score:2)
Why do you worry? Why don't you simply find out whether what you want can still be done and, if the answer is no, then worry?...
Re: (Score:2)
Linked Videos (Score:1)
Compile Your Own Kernel (Score:2)
I still compile my own kernels and it's quite time consuming, but it'll be worth it to turn these features off. I'm sure all the major distros will offer kernel packages with these misfeatures disabled.
Re: (Score:1)
Re: (Score:2)
there's this cool thing called modules. you should read about them.
Yes, I've written a couple. Some parts of the kernel are enabled/disabled by a compile-time option. They are bigger than modules. Part of the infrastructure.
No more rogue mode-setting apps (Score:1)