Hi, verified to be present in linux-2.6.31-rc5, here's some info dumped from RAM, since the machine hangs, sorry if it is not complete but I couldn't get anything better for now, nothing is printed on the screen. The userspace app is capture-example from v4l2-apps/test and the command which should be triggering the bug is: xioctl(fd, VIDIOC_STREAMON, &type) ============================================= [ INFO: possible recursive locking detected ] 2.6.31-rc5-ezxdev #53 --------------------------------------------- capture-example/967 is trying to acquire lock: (&pcdev->lock {......}, at: [<c019e97c>] pxa_videobuf_queue+0x28/0xc4 but task is already holding lock: (&pcdev->lock {......} buf_streamon+0x40/0xc0 other info that might help us debug this: held by capture-example/967: #0: o_lock soc_camera_streamon+0x40/0x70 #1: lock videobuf_streamon+0x14/0xc0 #2: eobuf_streamon+0x40/0xc0 The stack backtrace I managed to get is even worse, something like: ----------------------------------- stack backtrace: [<c002db8c>] 0x0/0xe0) idate_chain+0x5b0/0xd84) 89.995951] [<c0064ac8>] e_chain+0x5b0/0xd84) 5a60>] from [<c00668e8>] 0x5c/0x70) 00668e8>] _irqsave+0x4c/0x60) 6230] [<c023cea4>] rqsave+0x4c/0x60) c>] eamon+0x70/0xc0) 3] [<c0199b4c>] on+0x70/0xc0) (soc_camera_streamon+0x58/0x70) [ 89.996488] [<c019ccc4>] soc_camera_streamon+0x58/0x70) rom [<c0191320>] tl+0x14e0/0x3404) ------------------------------------- With another build with debug enabled I extracted this sequence: [ 104.385424] camera 0-0: PXA Camera driver attached to camera 0 [ 104.385513] pxa27x-camera pxa27x-camera.0: Registered platform device at cc923d60 data c0316fe0 [ 104.385554] pxa27x-camera pxa27x-camera.0: pxa_camera_activate: Init gpios [ 104.447596] camera 0-0: set width: 640 height: 480 [ 104.447642] camera 0-0: camera device open [ 104.502178] camera 0-0: set width: 640 height: 480 [ 104.502663] camera 0-0: soc_camera_reqbufs: 1 [ 104.502725] camera 0-0: count=4, size=0 [ 104.508618] camera 0-0: mmap called, vma=0xcc07fc28 [ 104.508926] camera 0-0: vma start=0x40144000, size=614400, ret=0 [ 104.542879] camera 0-0: mmap called, vma=0xcc05b1d8 [ 104.542990] camera 0-0: vma start=0x401da000, size=614400, ret=0 [ 104.546148] camera 0-0: mmap called, vma=0xcc05b6a8 [ 104.546243] camera 0-0: vma start=0x40270000, size=614400, ret=0 [ 104.549401] camera 0-0: mmap called, vma=0xcc05b4f0 [ 104.549509] camera 0-0: vma start=0x40306000, size=614400, ret=0 [ 104.550380] camera 0-0: pxa_videobuf_prepare (vb=0xcc91e760) 0x40144000 614400 [ 104.714301] pxa27x-camera pxa27x-camera.0: DMA: sg_first=cd83e000, sglen=150, ofs=0, dma.desc=acb94000 [ 104.715766] camera 0-0: pxa_videobuf_prepare (vb=0xcc91e560) 0x401da000 614400 [ 104.782840] pxa27x-camera pxa27x-camera.0: DMA: sg_first=cd852000, sglen=150, ofs=0, dma.desc=acde7000 [ 104.783988] camera 0-0: pxa_videobuf_prepare (vb=0xcc91e660) 0x40270000 614400 [ 104.841132] pxa27x-camera pxa27x-camera.0: DMA: sg_first=cd855000, sglen=150, ofs=0, dma.desc=ac090000 [ 104.863313] camera 0-0: pxa_videobuf_prepare (vb=0xcc91e860) 0x40306000 614400 [ 104.960047] pxa27x-camera pxa27x-camera.0: DMA: sg_first=cd858000, sglen=150, ofs=0, dma.desc=acdd2000 [ 104.960922] camera 0-0: soc_camera_streamon [ 104.961840] camera 0-0: pxa_videobuf_queue (vb=0xcc91e760) 0x40144000 614400 active=(null) maybe some more pxa_videobuf_queue lines are missing, but again I was not able to extract them from RAM. Thanks, Antonio -- Antonio Ospite http://ao2.it PGP public key ID: 0x4553B001 A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
Attachment:
pgppAGjPyJQtJ.pgp
Description: PGP signature