> Server 7 error loading ivtv1 and ivtv2:
>
> [EMAIL PROTECTED] finished]# dmesg
> ivtv1: Registered device video1 for encoder MPEG (4 MB)
> modprobe: page allocation failure. order:4, mode:0xd0
>
> Call Trace:
>  [<ffffffff8026929b>] show_trace+0x34/0x47
>  [<ffffffff802692c0>] dump_stack+0x12/0x17
>  [<ffffffff8020f23b>] __alloc_pages+0x2aa/0x2c3
>  [<ffffffff80217130>] cache_grow+0x135/0x391
>  [<ffffffff8025b38f>] cache_alloc_refill+0x140/0x192
>  [<ffffffff802cd3a4>] __kmalloc+0xa7/0xb1
>  [<ffffffff8828293a>] :ivtv:ivtv_stream_alloc+0x206/0x340
>  [<ffffffff88280a9b>] :ivtv:ivtv_streams_setup+0x373/0x3e5
> etc...

The driver takes a fair amount of MBs for each card. By default that is
8MB. If you have many cards, then that can become a problem and the driver
cannot allocate enough kernel space memory.

There are a few ways to fix this:

1) add module options to turn off unused streams:

enc_pcm_buffers=0
enc_yuv_buffers=0

2) reduce the buffer size for the MPEG stream:

enc_mpg_buffers=2

This assumes that the application is fast enough to empty the buffer. A
rough guide is that each MB corresponds to one second of video. The
default buffer size is 4 MB, so with a size of 2 MB the application must
read from the video device at least every 2 seconds, otherwise video is
dropped.

3) Use a kernel option to set aside more memory for the buffers. If I
remember correctly it is this option:

       vmalloc=nn[KMG] [KNL,BOOT] Forces the vmalloc area to have an exact
                        size of <nn>. This can be used to increase the
                        minimum size (128MB on x86). It can also be used to
                        decrease the size and leave more room for directly
                        mapped kernel RAM.

I'd first try 1 and 2. Note that you might have to reboot, especially if
the kernel memory is fragmented and the driver is unable to allocate the
buffers.

Regards,

      Hans


_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to