留言板
路过的蜗牛们,在这里留个脚印吧~
蜗窝欢迎各种言论,谈天说地、技术交流、问题求救、跳槽招聘、牢骚抱怨……哈哈。
评论:
~零~
2014-11-26 10:56
2014-11-26 10:56
请教一个问题,我想跟一下suspend跟resume,但是console被先睡眠了,LOG打不出来,在uboot中传no_console_supend参数也没有用,不知道还有没有什么方法能打出LOG。
wowo
2014-11-26 11:28
2014-11-26 11:28
@~零~:不知道您用的哪个版本的kernel?以我现在使用的3.10版本的,默认状态,console suspend是没有enable的的,如下:
bool console_suspend_enabled = 0;
EXPORT_SYMBOL(console_suspend_enabled);
static int __init console_suspend_disable(char *str)
{
console_suspend_enabled = 0;
return 1;
}
__setup("no_console_suspend", console_suspend_disable);
您可以先确认一下console是否真的suspended了(查看suspend_console中的打印)。
还是你的console设备先suspend了,导致后续的打印无法输出。
bool console_suspend_enabled = 0;
EXPORT_SYMBOL(console_suspend_enabled);
static int __init console_suspend_disable(char *str)
{
console_suspend_enabled = 0;
return 1;
}
__setup("no_console_suspend", console_suspend_disable);
您可以先确认一下console是否真的suspended了(查看suspend_console中的打印)。
还是你的console设备先suspend了,导致后续的打印无法输出。
ounie
2014-11-21 15:41
2014-11-21 15:41
请教一个问题:
内核打印如下:
[ 330.913897] Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa1d0000
这个是什么原因引起的呀?问题困扰我好多天了。
多谢!
内核打印如下:
[ 330.913897] Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa1d0000
这个是什么原因引起的呀?问题困扰我好多天了。
多谢!
ounie
2014-11-23 08:11
2014-11-23 08:11
@wowo:谢谢wowo的及时关注,问题后来解决了。我把大致情况说下吧:
我在编写一个can控制器模块的内核驱动程序,内核版本是3.8.13。在驱动程序完成probe后,我在打开这个设备、想读写寄存器时,内核打印出上述错误提示。当然,oops信息很多,我只摘取了最关键部分。
后来分析发现,是该模块的电源没有使能。于是调用了相关内核接口使能了设备的电源。之后,问题得到了解决。
开始内核驱动开发才几个月,不过蜗窝科技的文章大多通俗易懂,我很喜欢:)
我在编写一个can控制器模块的内核驱动程序,内核版本是3.8.13。在驱动程序完成probe后,我在打开这个设备、想读写寄存器时,内核打印出上述错误提示。当然,oops信息很多,我只摘取了最关键部分。
后来分析发现,是该模块的电源没有使能。于是调用了相关内核接口使能了设备的电源。之后,问题得到了解决。
开始内核驱动开发才几个月,不过蜗窝科技的文章大多通俗易懂,我很喜欢:)
741342765
2014-11-11 17:01
2014-11-11 17:01
对于WARN_ON(1)这个用法,不知道是怎么用的,我随便在一个函数加了一句WARN_ON(1),能从串口出来堆栈的信息,,假如通过这种方式跟踪一个模块,比如要跟踪一个外设的睡眠与唤醒流程,能不能做到只输出这一个外设的堆栈信息
wowo
2014-11-11 17:10
2014-11-11 17:10
@非常响亮:您是指QQ群吗?我一直觉得使用QQ讨论技术不够严肃,所以没有建,估计也不准备建。
有什么问题我们在网站上讨论挺好的,这样可以记录下来,对其他人也有帮助。
有什么问题我们在网站上讨论挺好的,这样可以记录下来,对其他人也有帮助。
wowo
2014-11-04 22:21
2014-11-04 22:21
@linuxer, AMD出的ARM64开发板,不过太贵了,它是按开发套件卖,两三千美金啊。还是等以后有便宜的再玩好了。
http://www.amd.com/en-us/press-releases/Pages/64-bit-developer-kit-2014jul30.aspx
http://www.amd.com/en-us/press-releases/Pages/64-bit-developer-kit-2014jul30.aspx
wowo
2014-10-05 10:58
2014-10-05 10:58
@forion:Linuxer估计除去潇洒去了啊,forion上班了啊?
参考kernel的注释,我觉得应该是可以的(may be called from any context ):
/**
* up - release the semaphore
* @sem: the semaphore to release
*
* Release the semaphore. Unlike mutexes, up() may be called from any
* context and even by tasks which have never called down().
*/
void up(struct semaphore *sem)
参考kernel的注释,我觉得应该是可以的(may be called from any context ):
/**
* up - release the semaphore
* @sem: the semaphore to release
*
* Release the semaphore. Unlike mutexes, up() may be called from any
* context and even by tasks which have never called down().
*/
void up(struct semaphore *sem)
linuxer
2014-10-05 23:28
2014-10-05 23:28
@forion:^_^,还没有装修完,目前还在装修启动阶段。没有外出潇洒,那太奢侈了,大部分时间都是在看孩子,真不是什么好活,目前在崩溃中~~~~就盼着放假结束,我就可以解脱了
你的问题应该是中断上下文(在引入中断线程化之后,中断处理函数也有可能是threaded handler)中是否可以调用up函数。其实,无论什么内核函数,只要把握一个原则就OK了(我的理解):调用该函数不会导致当前进程被挂起就可以在中断上下文中调用。
你的问题应该是中断上下文(在引入中断线程化之后,中断处理函数也有可能是threaded handler)中是否可以调用up函数。其实,无论什么内核函数,只要把握一个原则就OK了(我的理解):调用该函数不会导致当前进程被挂起就可以在中断上下文中调用。
功能
最新评论
文章分类
随机文章
文章存档
- 2024年2月(1)
- 2023年5月(1)
- 2022年10月(1)
- 2022年8月(1)
- 2022年6月(1)
- 2022年5月(1)
- 2022年4月(2)
- 2022年2月(2)
- 2021年12月(1)
- 2021年11月(5)
- 2021年7月(1)
- 2021年6月(1)
- 2021年5月(3)
- 2020年3月(3)
- 2020年2月(2)
- 2020年1月(3)
- 2019年12月(3)
- 2019年5月(4)
- 2019年3月(1)
- 2019年1月(3)
- 2018年12月(2)
- 2018年11月(1)
- 2018年10月(2)
- 2018年8月(1)
- 2018年6月(1)
- 2018年5月(1)
- 2018年4月(7)
- 2018年2月(4)
- 2018年1月(5)
- 2017年12月(2)
- 2017年11月(2)
- 2017年10月(1)
- 2017年9月(5)
- 2017年8月(4)
- 2017年7月(4)
- 2017年6月(3)
- 2017年5月(3)
- 2017年4月(1)
- 2017年3月(8)
- 2017年2月(6)
- 2017年1月(5)
- 2016年12月(6)
- 2016年11月(11)
- 2016年10月(9)
- 2016年9月(6)
- 2016年8月(9)
- 2016年7月(5)
- 2016年6月(8)
- 2016年5月(8)
- 2016年4月(7)
- 2016年3月(5)
- 2016年2月(5)
- 2016年1月(6)
- 2015年12月(6)
- 2015年11月(9)
- 2015年10月(9)
- 2015年9月(4)
- 2015年8月(3)
- 2015年7月(7)
- 2015年6月(3)
- 2015年5月(6)
- 2015年4月(9)
- 2015年3月(9)
- 2015年2月(6)
- 2015年1月(6)
- 2014年12月(17)
- 2014年11月(8)
- 2014年10月(9)
- 2014年9月(7)
- 2014年8月(12)
- 2014年7月(6)
- 2014年6月(6)
- 2014年5月(9)
- 2014年4月(9)
- 2014年3月(7)
- 2014年2月(3)
- 2014年1月(4)
2014-12-02 20:22