dwc_otg驱动 "BUG: sleeping function called from invalid context at mm/page_alloc.c"
方案商的开发板上otg功能只能做device,硬件看过后说没有5v供电,加上后能够识别U盘了,但是内核报了错
[ 3.264000] usb 2-1: new high-speed USB device number 2 using dwc_otg
[ 3.280000] BUG: sleeping function called from invalid context at mm/page_alloc.c:2444
[ 3.284000] in_atomic(): 1, irqs_disabled(): 128, pid: 29, name: khubd
[ 3.300000] [<c00154dc>] (unwind_backtrace+0x0/0x12c) from [<c00efb34>] (__alloc_pages_nodemask+0x208/0x91c)
[ 3.336000] [<c00efb34>] (__alloc_pages_nodemask+0x208/0x91c) from [<c001892c>] (__dma_alloc+0xa0/0x378)
[ 3.352000] [<c001892c>] (__dma_alloc+0xa0/0x378) from [<c0018f08>] (dma_alloc_coherent+0x68/0x70)
[ 3.376000] [<c0018f08>] (dma_alloc_coherent+0x68/0x70) from [<c038c8d8>] (__DWC_DMA_ALLOC+0x10/0x38)
[ 3.400000] [<c038c8d8>] (__DWC_DMA_ALLOC+0x10/0x38) from [<c0389658>] (dwc_otg_hcd_qh_init_ddma+0x38/0x278)
[ 3.416000] [<c0389658>] (dwc_otg_hcd_qh_init_ddma+0x38/0x278) from [<c03885cc>] (dwc_otg_hcd_qh_create+0x74/0xc8)
[ 3.432000] [<c03885cc>] (dwc_otg_hcd_qh_create+0x74/0xc8) from [<c0389034>] (dwc_otg_hcd_qtd_add+0x88/0xa0)
[ 3.464000] [<c0389034>] (dwc_otg_hcd_qtd_add+0x88/0xa0) from [<c0382d68>] (dwc_otg_hcd_urb_enqueue+0x88/0x1e4)
[ 3.480000] [<c0382d68>] (dwc_otg_hcd_urb_enqueue+0x88/0x1e4) from [<c03845f0>] (dwc_otg_urb_enqueue+0x198/0x2d0)
[ 3.496000] [<c03845f0>] (dwc_otg_urb_enqueue+0x198/0x2d0) from [<c03552bc>] (usb_hcd_submit_urb+0xa4/0x77c)
[ 3.528000] [<c03552bc>] (usb_hcd_submit_urb+0xa4/0x77c) from [<c0356f7c>] (usb_start_wait_urb+0x4c/0x138)
[ 3.544000] [<c0356f7c>] (usb_start_wait_urb+0x4c/0x138) from [<c0357114>] (usb_control_msg+0xac/0xe4)
[ 3.560000] [<c0357114>] (usb_control_msg+0xac/0xe4) from [<c034fbd4>] (hub_port_init+0x4d8/0x86c)
[ 3.596000] [<c034fbd4>] (hub_port_init+0x4d8/0x86c) from [<c035232c>] (hub_thread+0x6b8/0x1454)
[ 3.612000] [<c035232c>] (hub_thread+0x6b8/0x1454) from [<c00649d0>] (kthread+0x90/0x94)
[ 3.628000] [<c00649d0>] (kthread+0x90/0x94) from [<c000f86c>] (kernel_thread_exit+0x0/0x8)
追进去
dwc_otg_set_param_dma_desc_enable函数里有以下代码
#if defined(CONFIG_ARCH_CPU_SLSI)
val = ;
#if defined(CONFIG_USB_VIDEO_CLASS)
val = ;
#endif
#endif
强制打开了dma_desc_enable,看起来host模式时应该不需要打开,果然注释之后错误消失
//val = 1;
不明白这段代码和uvc有什么关系,其实我就是用这个来插usb camera的,这个地方反而导致操作uvc驱动的时候报错;
uvc报错:
Failed to resubmit video URB (-1)
解决,记录一下
dwc_otg驱动 "BUG: sleeping function called from invalid context at mm/page_alloc.c"的更多相关文章
- 解决由于显卡驱动BUG导致桌面右键卡顿的问题:bat文件源码
@ ECHO OFF%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe&q ...
- Implicit declaration of function 'CC_MD5' is invalid in C99
//导入这个就行了#import <CommonCrypto/CommonDigest.h> //没有导包的时候,提示如下: Implicit declaration of functio ...
- warning: control reaches end of non-void function 和 warning: implicit declaration of function 'rsgClearColor' is invalid in C99
用gcc编译一个程序的时候出现这样的警告: warning: control reaches end of non-void function 它的意思是:控制到达非void函数的结尾.就是说你的一些 ...
- 关于"implicit declaration of function 'gettimeofday' is invalid in c99"的解决
http://blog.csdn.net/macmini/article/details/10503799 当我们使用 gettimeofday(&time, NULL);时,会出现这样一个W ...
- RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解决方案(转)
转自:RecyclerView Bug:IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter的解 ...
- implicit declaration of function 'NSFileTypeForHFSTypeCode' is invalid in c99
问题:implicit declaration of function 'NSFileTypeForHFSTypeCode' is invalid in c99 解决办法: 在出现该问题的函数前后加上 ...
- CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
最近在测试的过程中, 发现了SpringBoar的一个问题: SpringBoard[53] <Error>: CGContextTranslateCTM: invalid context ...
- 关于CGContextSetBlendMode: invalid context 0x0的错误
在ios 7的模拟器中,选择一个输入框准备输入时,会触发这个错误,以下是出错详细日志: <Error>: CGContextSetBlendMode: invalid context 0x ...
- iOS关于CGContextSetBlendMode: invalid context 0x0的错误
在ios 7的模拟器中,选择一个输入框准备输入时,会触发这个错误,以下是出错详细日志: <Error>: CGContextSetBlendMode: invalid context 0x ...
随机推荐
- vue-cli 构建vue项目
师父说,咱们还是要用vue-cli 去构建前端项目.然后我就开始了 懵逼之旅. 今天上午主要就是搞懂用webpack和vue-cli怎么搭建 运行项目 首先找到了咱们博客园 园友的博客,提供了大概五个 ...
- 微信浏览器跳转外部浏览器 app下载
这个是摘抄的,具体抄的哪里我忘记了,作为记录 2019年5月14日 现在这个好像也不好用了,微信又提示建议下载qq浏览器什么的,显示一个红色感叹号,让用户产生怀疑,很鄙视tx error_report ...
- 无法顺利删除问题处理一则-ORA-00604和ORA-00942错误
1.以sys/oracle登录 2. -- Create tablecreate table ARGUMENT$( OBJ# NUMBER not null, PROCEDURE ...
- 【HDU】病毒侵袭(AC自己主动机模板题)
AC自己主动机的模板题.因为输入的字符串中的字符不保证全为小写字母.所以范围应该在130之前,而前31位字符是不可能出如今字符串的(不懂得查下ACSII表即可了).所以仅仅须要开的结点数组大小为130 ...
- [HTTP] Understand 2xx HTTP Status Code Responses
The 2xx family of status codes are used in HTTP responses to indicate success. Beyond the generic 20 ...
- Access Violations 访问冲突(AVs)是Windows编程时发生的最麻烦的错误?
Access Violations<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office&qu ...
- 微擎 plugin 时间插件 图片上传插件不显示 报错 影响下面执行
可能是版本更新导致的,之前可能不需要 load()->func('tpl');这个方法 现在加上 load()->func('tpl');应该就可以了
- [Angular] Enable router tracing
To enable router tracing is really simple: RouterModule.forRoot(ROUTES, { enableTracing: true }) Whe ...
- 枚举系统磁盘驱动器(使用GetLogicalDriveStrings API函数,system("pause"); 很实用,还用到wcslen等函数)
代码如下: #include "stdafx.h" #include <vector> #include <string> #include <Win ...
- MySQL慢日志的相关参数
slow-query-log = on #开启MySQL慢查询功能 slow_query_log_file = /data/mysql/testdb-slow.log #设置MySQL慢查询日志路径 ...