To view parent comment, click here.
To read all comments associated with this story, please click here.
Brendan,
We're talking over one another. I keep hearing that this wouldn't become widespread and manufacturers wouldn't get involved, etc, but we've established this already and I've been saying it explicitly from the start. Without cooperation from the top corporations, this would not succeed. It would most likely have the same fate as UDI.
I'm just talking about how it should be.
"A driver is a kind of abstraction layer between whatever interface the OS wants and whatever interface the hardware provides. What you're talking about is having drivers that provide an unwanted interface, with a 'driver driver' between the unwanted interface and the OS itself."
I think if you talked to most OS developers you'd find that drivers are by far the most difficult problem to address (Andy McLaughlin said the same thing in the interview). This would be something they want very much. It'd be extremely desirable to support all hardware by implementing one interface.
Linux users might view it as a non-issue because linux is actually big enough to have manufacturers and tons of volunteers working on it's drivers. But even then we'd save a lot of work and reduce tons of kernel bloat by using standardised drivers, which in some cases could even be of better quality and performance than today's drivers.
One the one hand, I can understand your point of what if the interface is not the one you want? But on the other hand it's not a new problem being caused by this model. The USB webcam interface may not be the one we want, but it's the one we get. The video hardware interface might not be the one we want, but it's the one we get. The sound card hardware interface might not be the one we want, but it's the one we get. In all these instances an OS has to deal with not one, but hundreds or thousands of subtly different hardware interfaces doing the exact same thing. So adding an interface for standardised drivers really shouldn't be a big deal. Of course I'd want real experts to work together at creating good interfaces from the get go.
"Trying to get different developers to agree on a common device driver standard will be hard. Trying to get different developers to agree on a common programming language is going be even harder."
Yep, standards are always hard.
"Not just asynchronous, but 'asynchronous with IO priorities'"
Good idea. I don't want us to reinvent the wheel here, but basically we'd want to be able to expose everything the drives are capable of. I think most operating systems use a SCSI interface internally even for representing drives that aren't on a SCSI bus.
"Not just different drivers running at the same time, but the same driver being able to complete multiple requests at the same time (e.g. if there's some sort of sector cache or something) and accepting new requests while existing requests are being performed."
That's usually implied by asynchronous designs, but let's say it explicitly.




Member since:
2005-11-16
Well, presumably the manufacturers would be on board (if they weren't the model would be bound to fail anyways). This means the manufacturers would be providing the drivers and that they would run on linux, visopsys, hurd, etc. as well as windows.
Almost all hardware manufacturers only care about Windows; and like you already said, Microsoft has nothing to gain from adopting this. The rare few manufacturers that do care about anything else (NVidia, ATI/AMD, Intel) only care about Linux. Linux developers (and GNU specifically) are the people that refused to support UDI for religious reasons ( http://www.gnu.org/philosophy/udi.html ).
This is true. In principal I don't object to requiring source code with drivers, but that's not a very realistic sale. Many linux distros already have proprietary blobs, and nobody would be forced to install those. On the one hand, the high availability of shared manufacturer drivers could decrease the incentive of volunteers to write open source drivers for the same hardware. On the other hand, these volunteers could put their time to much better uses instead of reinventing the wheel.
Linux has some binary blobs; but they don't like it and would get rid of them if they could. It'd be extremely hard to convince them to replace existing/working open source drivers with alternative (potentially closed source) drivers.
It's not the hardware manufacturers that would be writing drivers. It's people volunteering their time to slap together something that "works for me(tm)".
This is indeed probably one of the more controversial aspects, but the way I see it the drivers should be as modular as possible to make it easy to hook them into however the OS needs them.
In this case, people/volunteers will only write the modules for the OS they care about and the driver won't work on any OS that needs different modules.
A driver is a kind of abstraction layer between whatever interface the OS wants and whatever interface the hardware provides. What you're talking about is having drivers that provide an unwanted interface, with a "driver driver" between the unwanted interface and the OS itself.
Trying to get different developers to agree on a common device driver standard will be hard. Trying to get different developers to agree on a common programming language is going be even harder.
Great observation. Clearly these would have to be asynchronous. Also, all device drivers should be able to run in parallel on SMP. Which is a reasonable requirement assuming they don't share resources.
Not just asynchronous, but "asynchronous with IO priorities". For example, you should be able to say "pre-fetch these sectors as low priority" and also say "change the priority of my earlier request (I need them sectors ASAP!)" or "cancel that request, I don't need those sectors now".
Not just different drivers running at the same time, but the same driver being able to complete multiple requests at the same time (e.g. if there's some sort of sector cache or something) and accepting new requests while existing requests are being performed.
Of course this is just the tip of the iceberg (e.g. I was only really looking at some aspects of storage device drivers). If you want to look at something like video driver interfaces then the sheet really hits the fan.
A lot of people wish it was viable. Some try to do it (UDI, EDI/Extensible Device Interface). It hasn't worked yet.
I'm not necessarily saying it's impossible though - just very unlikely to become widespread.
- Brendan