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 ...
随机推荐
- angular 引入material-ui
第一步:安装material和cdk和animations,一个也不能缺,否则会报错. npm install --save @angular/material @angular/cdk @angul ...
- 通过 Microsoft iSCSI Software Target 提供存储服务
软件下载地址: Microsoft iSCSI Software Target 3.3 下载完后成解压软件包如下: 安装官方的描述Target 端也就是服务端 只支持Windows Server 20 ...
- 【例题 6-2 UVA - 514】Rails
[链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] 栈模拟一下就好. 每个输出段后面都有一个空行. 包括最后一个. [代码] #include <bits/stdc++.h> ...
- tensorflow:图(Graph)的核心数据结构与通用函数(Utility function)
Tensorflow一些常用基本概念与函数(2) 1. 图(Graph)的核心数据结构 tf.Graph.__init__:建立一个空图: tf.Graph.as_default():一个将某图设置为 ...
- Elasticsearch 2.3.2 从oracle中同步数据
Elasticsearch 2.3.2 从oracle中同步数据 1 数据批量导入-oracle 采用 elasticsearch-jdbc 插件 安装.版本需要ES版本一致 最新 ...
- Spring Cloud项目
如何使用windows版Docker并在IntelliJ IDEA使用Docker运行Spring Cloud项目 如何使用windows版Docker并在IntelliJ IDEA使用Docke ...
- java 返回图片到页面
@RequestMapping(value = "/image/get") public void getImage(HttpServletRequest request, ...
- C++中的虚析构函数、纯虚析构函数具体解释
C++中析构函数能够为纯虚函数吗? 众所周知.在实现多态的过程中,一般将基类的析构函数设为virtual.以便在delete的时候能够多态的链式调用.那么析构函数能否够设为纯虚呢? class CBa ...
- spring 输出mvc
http://flysnowxf.iteye.com/blog/1187580 http://viralpatel.net/blogs/spring-requestheader-example/ 基于 ...
- 【54.38%】【BZOJ 4300】绝世好题
Time Limit: 1 Sec Memory Limit: 128 MB Submit: 1120 Solved: 609 [Submit][Status][Discuss] Descript ...