w***u 发帖数: 17713 | 1 就看能不能找到好的device driver了,看来HP/Palm的firmware工程师有些问题。
<@dalingrin> we have HP's kernel but unfortunately HP tries to do everything
in userspace
<@dalingrin> many of the drivers were missing
<@dalingrin> and what drivers are there are for the wierd firmwares HP used
<@dalingrin> for example: our touchscreen has a very capable controller..
literally top of the line
<@dalingrin> but HP uses a firmware that pretty much disables the controller
<@dalingrin> and they process in userspace instead
<@dalingrin> (on cpu)
<@dalingrin> many of these funky userspace drivers/libs cause slowdowns as
well |
s******p 发帖数: 4962 | 2 看来CM7值得期待啊
everything
used
controller
【在 w***u 的大作中提到】 : 就看能不能找到好的device driver了,看来HP/Palm的firmware工程师有些问题。 : <@dalingrin> we have HP's kernel but unfortunately HP tries to do everything : in userspace : <@dalingrin> many of the drivers were missing : <@dalingrin> and what drivers are there are for the wierd firmwares HP used : <@dalingrin> for example: our touchscreen has a very capable controller.. : literally top of the line : <@dalingrin> but HP uses a firmware that pretty much disables the controller : <@dalingrin> and they process in userspace instead : <@dalingrin> (on cpu)
|
d*****0 发帖数: 68029 | |
j********r 发帖数: 453 | 4 我也发现这个问题了,不知道WebOS的系统工程师怎么想的,居然让driver运行再
userspace。。。
everything
used
controller
【在 w***u 的大作中提到】 : 就看能不能找到好的device driver了,看来HP/Palm的firmware工程师有些问题。 : <@dalingrin> we have HP's kernel but unfortunately HP tries to do everything : in userspace : <@dalingrin> many of the drivers were missing : <@dalingrin> and what drivers are there are for the wierd firmwares HP used : <@dalingrin> for example: our touchscreen has a very capable controller.. : literally top of the line : <@dalingrin> but HP uses a firmware that pretty much disables the controller : <@dalingrin> and they process in userspace instead : <@dalingrin> (on cpu)
|
h*********r 发帖数: 10182 | 5 在user space有好处,不容易司机,debug方便,更新方便。
【在 j********r 的大作中提到】 : 我也发现这个问题了,不知道WebOS的系统工程师怎么想的,居然让driver运行再 : userspace。。。 : : everything : used : controller
|
w***u 发帖数: 17713 | 6 看CM7 TP的google网页,gyroscope也在user space上。看来不少硬件都通过CPU控制。
开发时候放CPU上,容易debug,但release的时候,应该把drivers上的bug清掉,把应
该是别的硬件完成的任务交还给该硬件,否则一堆每时每刻发生的事件都请求中断CPU
运行,怎么受得了?而且处理这些也不是通用CPU的特长,就像人脑再聪明也不擅长处
理膝跳反射。那些设计硬件的估计恨死了这些软件的。 |
h*******x 发帖数: 12808 | 7 kernel space下面很麻烦哦
everything
used
controller
【在 w***u 的大作中提到】 : 就看能不能找到好的device driver了,看来HP/Palm的firmware工程师有些问题。 : <@dalingrin> we have HP's kernel but unfortunately HP tries to do everything : in userspace : <@dalingrin> many of the drivers were missing : <@dalingrin> and what drivers are there are for the wierd firmwares HP used : <@dalingrin> for example: our touchscreen has a very capable controller.. : literally top of the line : <@dalingrin> but HP uses a firmware that pretty much disables the controller : <@dalingrin> and they process in userspace instead : <@dalingrin> (on cpu)
|
h*******x 发帖数: 12808 | 8 是怎么发现driver在userspace上面运行的啊?有什么工具可以看出来吗?
【在 j********r 的大作中提到】 : 我也发现这个问题了,不知道WebOS的系统工程师怎么想的,居然让driver运行再 : userspace。。。 : : everything : used : controller
|
j********r 发帖数: 453 | 9 你这说的是好处么,是对开发人员的好处把。
【在 h*********r 的大作中提到】 : 在user space有好处,不容易司机,debug方便,更新方便。
|
h*******x 发帖数: 12808 | 10 re,开发人员想偷懒,就在suerspace搞,容易好多。
【在 j********r 的大作中提到】 : 你这说的是好处么,是对开发人员的好处把。
|
|
|
p**o 发帖数: 380 | 11 hp really released a beta quality system as a "product", no wonder
it got cancelled... |
s******n 发帖数: 3946 | 12 kernel和userspace都是在CPU上跑,哪来的一个比另一个慢的问题? fireware是外围设
备的程序,那是能减轻负担。
哎,不怕外行,就怕半瓶子晃荡的 |
l*****u 发帖数: 12114 | 13 USERSPACE肯定多一层处理。我本世纪初给人打工写驱动的时候这个处理得很多了,当
年的LINUX很坑爹,MAP个BUFFER都很困难。
【在 s******n 的大作中提到】 : kernel和userspace都是在CPU上跑,哪来的一个比另一个慢的问题? fireware是外围设 : 备的程序,那是能减轻负担。 : 哎,不怕外行,就怕半瓶子晃荡的
|
w***u 发帖数: 17713 | 14 在user space上对硬件中断的处理要费CPU得多,不能直接register and respond硬件
中断,都是弯弯绕的办法,比如读一个file descriptor,得专门开一个thread去刻苦地
读异步中断造成的file descriptor,再传递message给application.
【在 s******n 的大作中提到】 : kernel和userspace都是在CPU上跑,哪来的一个比另一个慢的问题? fireware是外围设 : 备的程序,那是能减轻负担。 : 哎,不怕外行,就怕半瓶子晃荡的
|
s******n 发帖数: 3946 | 15 即时你在kernel处理,最后也要通过file descriptor把结果传到userspace, 把处理放
在kernel最后传到userspace没有多大区别,除非处理前后数据量相差很大。
把Driver放在Userspace的一个坏处是要增加一个Thread,不过很多Driver也是通过
Kernel thread来实现的。
Webos本身的特性决定了它的javascript app没法直接用硬件,都要通过userspace的一
个daemon转换成javascript世界能理解的文本。
在说,android不也是有很多userspace的service在做driver的事情么? |