News for hackers. Stuff that matters.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by azahk on Saturday November 17, 2018 @07:54PM (#18478269)
Someone once had the great idea that drivers should be in the same codebase as the kernel. Crazy, I know.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by umanwizard on Saturday November 17, 2018 @09:42PM (#18478607)
It doesn’t seem crazy to me that something that runs in kernel mode and uses kernel APIs should be in the kernel codebase. What are the downsides?
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by quotemstr on Saturday November 17, 2018 @10:29PM (#18478731)
Why should drivers necessarily run in the kernel? With appropriate abstraction for interrupts, DMA, etc. much of the work could be done in userland.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by umanwizard on Saturday November 17, 2018 @10:55PM (#18478798)
That’s true, but it’s AFAICT a separate question.

The question I was responding to was: “accepting that, rightly or wrongly, Linux drivers run in kernel mode, does it make sense for them to be in the source tree?”

Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by gizmo686 on Saturday November 17, 2018 @10:24PM (#18478720)
The main downside is that a bad/buggy driver can take down the entire system.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by black-tea on Sunday November 18, 2018 @05:39AM (#18479724)
That's a problem with the architecture but a reason for having the drivers in the kernel. It means such a case will be handled as a regression and fixed as opposed to the driver just never being available again.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by azahk on Sunday November 18, 2018 @03:56AM (#18479459)
Linux would have beaten Windows if it wasn't for that.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by black-tea on Sunday November 18, 2018 @04:12AM (#18479498)
But at what cost? I don't want to run Linux with non-free drivers. That's not the point.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by azahk on Sunday November 18, 2018 @04:26AM (#18479530)
That's cool. On the other hand, I would love to have a stable API for drivers so manufacturers can release their drivers. That has been taken from me, and now Linux will never be a real choice for me without good GPU drivers, as an example.