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 ...
随机推荐
- docker 第一课 —— 从容器到 docker
1. 容器的概念 一种虚拟化的解决方案 与虚拟机所不同的是,虚拟机通过中间层,将一台或多台独立的机器虚拟运行于物理硬件之上: 而容器是直接运行于操作系统内核之上的用户空间: 基于上述,容器虚拟化也被称 ...
- POJ 3628 Bookshelf 2 0-1背包
传送门:http://poj.org/problem?id=3628 题目看了老半天,牛来叠罗汉- -|||和书架什么关系啊.. 大意是:一群牛来叠罗汉,求超过书架的最小高度. 0-1背包的问题,对于 ...
- 谈谈我对P2P网络借贷的一些看法
北漂期间,只知道互联网金融非常火,相关创业公司和项目也非常多.2013年,最火的是余额宝等宝宝类产品.当时的收益率达到了7%,流动性如此高的情况下,竟达到这么高的收益率,我简直不敢相信.另外,当时考虑 ...
- bootstrap+fileinput插件实现可预览上传照片功能
实际项目中运用: 功能:实现上传图片,更改上传图片,移除图片的功能 <!DOCTYPE html> <html> <head> <meta charset=& ...
- Mac OS X Kernel Basic User Credentials
User Credentials In order to understand security in OS X, it is important to understand that there a ...
- 机器学习01-kNN邻近算法
k-近邻算法 概述:k-近邻算法採用測量不同特征值之间的距离方法进行分类 长处:精度高.对于异常值不敏感.无数据输入假定 缺点:计算复杂度高,空间复杂度高,而且它没有办法各处基础数据的一些内部信息数据 ...
- GLPI-开源资产管理软件
https://github.com/glpi-project/glpi/releases/tag/9.2.3 http://glpi-project.org/downloads/ 开源资产管理软件- ...
- [Angular] Pluck value from Observable
export class MailFolderComponent implements OnInit{ title: Observable<string>; messages: Obser ...
- HDU 1243 反恐训练营 (动态规划求最长公共子序列)
反恐训练营 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Subm ...
- Thinking in UML 学习笔记(四)——UML核心视图之活动图
在UML中活动图的本质就是流程图,它描述了为了完成某一个目标需要做的活动以及这些互动的执行顺序.UML中有两个层面的活动图,一种用于描述用例场景,另一种用于描述对象交互. 活动图只是我们用来描述业务目 ...