[Trac #425] cafe_ccic sporadic oops when running gstreamer

Zarro Boogs per Child bugtracker at laptop.org
Mon Nov 13 17:05:11 EST 2006


#425: cafe_ccic sporadic oops when running gstreamer
---------------------+------------------------------------------------------
 Reporter:  cjb      |        Owner:  corbet  
     Type:  defect   |       Status:  assigned
 Priority:  blocker  |    Milestone:  BTest-2 
Component:  kernel   |   Resolution:          
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by dilinger):

 Here's what gst says:

 {{{
 [olpc at localhost ~]$ export DISPLAY=:0; gst-launch-0.10 v4l2src !
 xvimagesink
 Setting pipeline to PAUSED ...
 Pipeline is live and does not need PREROLL ...
 ERROR: from element /pipeline0/v4l2src0: Failed setting the video format
 for device '/dev/video0'
 Additional debug info:
 v4l2src_calls.c(349): gst_v4l2src_set_capture (): /pipeline0/v4l2src0:
 Failed to set pixelformat to YUYV 4:2:2 @ 640x480 for device /dev/video0.
 (12 - Cannot allocate memory)
 ERROR: pipeline doesn't want to preroll.
 Setting pipeline to PAUSED ...
 Setting pipeline to READY ...
 Setting pipeline to NULL ...
 FREEING pipeline ...
 [olpc at localhost ~]$
 }}}

 And here's what the kernel says:
 {{{
 Marvell M88ALP01 'CAFE' Camera Controller version 1
 PM: Adding info for No Bus:i2c-1
 i2c_adapter i2c-1: SMBus Quick command not supported, can't probe for
 chips
 ov7670 attach, id = 262162
 ov7670 accepting
 detect result is 0
 PM: Adding info for i2c:1-0042
 cafe1000-ccic 0000:00:0c.2: smbus_attach id = 1048
 gst-launch-0.10: page allocation failure. order:8, mode:0xd0
  [<c0437078>] __alloc_pages+0x281/0x292
  [<c04370a3>] __get_free_pages+0x1a/0x33
  [<c04061bf>] dma_alloc_coherent+0xaa/0xde
  [<c88f8b1e>] cafe_alloc_dma_bufs+0xa4/0x18c [cafe_ccic]
  [<c88f9b00>] cafe_vidioc_s_fmt_cap+0x79/0xad [cafe_ccic]
  [<c88f9a87>] cafe_vidioc_s_fmt_cap+0x0/0xad [cafe_ccic]
  [<c88f11d0>] __video_do_ioctl+0x99d/0x29f4 [videodev]
  [<c041aa51>] __mod_timer+0x84/0x8e
  [<c05cd31c>] schedule_timeout+0x8c/0xa2
  [<c806d29f>] ov7670_command+0x0/0x2d1 [ov7670]
  [<c041ac03>] msleep+0x25/0x2b
  [<c88f33b5>] video_ioctl2+0x170/0x237 [videodev]
  [<c04351f6>] filemap_nopage+0x168/0x2f5
  [<c043d71f>] __handle_mm_fault+0x76e/0x790
  [<c88f3245>] video_ioctl2+0x0/0x237 [videodev]
  [<c04568c5>] do_ioctl+0x3d/0x4c
  [<c0456ace>] vfs_ioctl+0x1fa/0x211
  [<c0456b31>] sys_ioctl+0x4c/0x67
  [<c0402c57>] syscall_call+0x7/0xb
  =======================
 Mem-info:
 DMA per-cpu:
 CPU    0: Hot: hi:    0, btch:   1 usd:   0   Cold: hi:    0, btch:   1
 usd:   0Normal per-cpu:
 CPU    0: Hot: hi:   42, btch:   7 usd:   3   Cold: hi:   14, btch:   3
 usd:  13Active:21677 inactive:4563 dirty:0 writeback:0 unstable:0 free:711
 slab:1598 mapped:7018 pagetables:228
 DMA free:892kB min:184kB low:228kB high:276kB active:7872kB
 inactive:3572kB present:16256kB pages_scanned:32 all_unreclaimable? no
 lowmem_reserve[]: 0 102
 Normal free:1952kB min:1200kB low:1500kB high:1800kB active:78836kB
 inactive:14680kB present:104648kB pages_scanned:90 all_unreclaimable? no
 lowmem_reserve[]: 0 0
 DMA: 19*4kB 22*8kB 2*16kB 1*32kB 1*64kB 0*128kB 0*256kB 1*512kB 0*1024kB
 0*2048kB 0*4096kB = 892kB
 Normal: 94*4kB 11*8kB 19*16kB 1*32kB 0*64kB 1*128kB 0*256kB 0*512kB
 1*1024kB 0*2048kB 0*4096kB = 1952kB
 Swap cache: add 0, delete 0, find 0/0, race 0+0
 Free swap  = 0kB
 Total swap = 0kB
 Free swap:            0kB
 30464 pages of RAM
 0 pages of HIGHMEM
 1153 reserved pages
 30653 pages shared
 0 pages swap cached
 0 pages dirty
 0 pages writeback
 7018 pages mapped
 1598 pages slab
 228 pages pagetables
 cafe1000-ccic 0000:00:0c.2: Failed to allocate DMA buffer
 cafe1000-ccic 0000:00:0c.2: Insufficient DMA buffers, cannot operate
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/425#comment:2>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list