yeah didn't have it in the right place, now it allocates dma in IVTV INIT but not after that. Have gone 24hrs without a lockup.

Larry Symms wrote:

sounds like my module option isn't in the right place. I'll try /etc/mythtv/modules/ivtv next

Bryan Mayland wrote:

:/ you'd think that you'd have enough memory to do the allocation. From a fresh boot, try:
echo 16384 > /proc/vm/min_free_kbytes
Then load the ivtv module. Also, are you getting this error on module load or when you start watching? If dynbuf is 0, you should be getting it when the module loads. Getting it later means that the option isn't taking effect.

Larry Symms wrote:

Here's my memory usage from top at the time of an error:

Mem: 514276k total, 416936k used, 97340k free, 2200k buffers
Swap:   795208k total,        0k used,   795208k free,   292952k cached

Larry Symms wrote:

Added the module option to the ivtv line in /etc/modules. When I first turned on my mythbox tonight to watch a recording I got the error again. Nothing out of the ordinary before that.

ivtv: Allocate DMA decoder MPEG stream: 16 x 65536 buffers (1024KB total)
mythfrontend: page allocation failure. order:4, mode:0xd0
[__alloc_pages+440/848] __alloc_pages+0x1b8/0x350
[__get_free_pages+31/64] __get_free_pages+0x1f/0x40
[kmem_getpages+42/224] kmem_getpages+0x2a/0xe0
[cache_grow+169/320] cache_grow+0xa9/0x140
[cache_alloc_refill+362/544] cache_alloc_refill+0x16a/0x220
[__kmalloc+103/128] __kmalloc+0x67/0x80
[pg0+547375937/1068311552] ivtv_init_buffer+0x31/0x170 [ivtv]
[pg0+547376303/1068311552] ivtv_init_queue_nolock+0x2f/0x80 [ivtv]
[pg0+547376443/1068311552] ivtv_init_queues_nolock+0x3b/0x60 [ivtv]
[pg0+547382127/1068311552] ivtv_stream_alloc+0xef/0x210 [ivtv]
[pg0+547392157/1068311552] ivtv_claim_stream+0x4d/0x1c0 [ivtv]
[pg0+547399270/1068311552] ivtv_v4l2_write+0x86/0x160 [ivtv]
[vfs_write+170/240] vfs_write+0xaa/0xf0
[sys_write+61/112] sys_write+0x3d/0x70
[syscall_call+7/11] syscall_call+0x7/0xb
ivtv: No memory on buffer alloc!
ivtv: Buffer alloc failed!
ivtv: Allocate DMA decoder MPEG stream: 16 x 65536 buffers (1024KB total)
mythfrontend: page allocation failure. order:4, mode:0xd0
[__alloc_pages+440/848] __alloc_pages+0x1b8/0x350
[__get_free_pages+31/64] __get_free_pages+0x1f/0x40
[kmem_getpages+42/224] kmem_getpages+0x2a/0xe0
[cache_grow+169/320] cache_grow+0xa9/0x140
[cache_alloc_refill+362/544] cache_alloc_refill+0x16a/0x220
[__kmalloc+103/128] __kmalloc+0x67/0x80
[pg0+547375937/1068311552] ivtv_init_buffer+0x31/0x170 [ivtv]
[pg0+547376303/1068311552] ivtv_init_queue_nolock+0x2f/0x80 [ivtv]
[pg0+547376443/1068311552] ivtv_init_queues_nolock+0x3b/0x60 [ivtv]
[pg0+547382127/1068311552] ivtv_stream_alloc+0xef/0x210 [ivtv]
[pg0+547392157/1068311552] ivtv_claim_stream+0x4d/0x1c0 [ivtv]
[pg0+547399270/1068311552] ivtv_v4l2_write+0x86/0x160 [ivtv]
[vfs_write+170/240] vfs_write+0xaa/0xf0
[sys_write+61/112] sys_write+0x3d/0x70
[syscall_call+7/11] syscall_call+0x7/0xb
ivtv: No memory on buffer alloc!


Chris Kennedy wrote:

Try adding ivtv_dynbuf=0 to your ivtv module options.

Thanks,
Chris

Larry Symms wrote:

I just got this error when trying to watch live tv. I could back out and watch a recording but when ever I tried to watch live tv I got the error. Reboot fixed it.

saa7115: decoder enable output
ivtv: Allocate DMA decoder MPEG stream: 16 x 65536 buffers (1024KB total)
mythfrontend: page allocation failure. order:4, mode:0xd0
[<c013c208>] __alloc_pages+0x1b8/0x350
[<c013c3bf>] __get_free_pages+0x1f/0x40
[<c013f62a>] kmem_getpages+0x2a/0xe0
[<c0140309>] cache_grow+0xa9/0x140
[<c014050a>] cache_alloc_refill+0x16a/0x220
[<c0140947>] __kmalloc+0x67/0x80
[<e0f33b41>] ivtv_init_buffer+0x31/0x170 [ivtv]
[<e0f33caf>] ivtv_init_queue_nolock+0x2f/0x80 [ivtv]
[<e0f33d3b>] ivtv_init_queues_nolock+0x3b/0x60 [ivtv]
[<e0f3536f>] ivtv_stream_alloc+0xef/0x210 [ivtv]
[<e0f37a9d>] ivtv_claim_stream+0x4d/0x1c0 [ivtv]
[<e0f39666>] ivtv_v4l2_write+0x86/0x160 [ivtv]
[<c015481a>] vfs_write+0xaa/0xf0
[<c015490d>] sys_write+0x3d/0x70
[<c0105fc7>] syscall_call+0x7/0xb
ivtv: No memory on buffer alloc!
ivtv: Buffer alloc failed!
ivtv: Couldn't allocate buffers for decoder MPEG stream

Here's my ivtv INIT stuff:

ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.3.6 (p) loading
ivtv: Linux version: 2.6.9-chw-4 SMP preempt 586 gcc-3.3
ivtv: In case of problems please include the debug info
ivtv: between the START INIT IVTV and END INIT IVTV lines when
ivtv: mailing the ivtv-devel mailinglist.
ivtv: Autodetected WinTV PVR 350 card
ivtv: Found an iTVC15 based chip
ACPI: PCI interrupt 0000:01:08.0[A] -> GSI 18 (level, high) -> IRQ 18
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
ivtv: XXX PCI device: 0x01e0 vendor: 0x10de
lirc_i2c: chip found @ 0x18 (Hauppauge IR)
ivtv: i2c attach [client=Hauppauge IR,ok]
lirc_dev: lirc_register_plugin:sample_rate: 10
cx25840: starting probe for adapter ivtv i2c driver #0 (0x10005)
cx25840: detecting cx25840 client on address 0x88
cx25840: client id: cx25840_i2c_id 0, skipped
tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
ivtv: i2c attach [client=(tuner unset),ok]
tuner: type set to 47 (LG NTSC (TAPE series)) by insmod option
tuner: The type=<n> insmod option will go away soon.
tuner: Please use the tuner=<n> option provided by
tuner: tv aard core driver (bttv, saa7134, ...) instead.
msp34xx: ivtv version
msp34xx: init: chip=MSP3448W-A2, has NICAM support, simple (D) mode, simpler (G) no-thread mode
msp34xx: $Id$ compiled on: Jun 21 2005 00:07:07
ivtv: i2c attach [client=MSP3448W-A2,ok]
saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
saa7115: detecting saa7115 client on address 0x42
saa7115: writing init values
ivtv: i2c attach [client=saa7115[50],ok]
saa7115: status: (1E) 0x01, (1F) 0xc0
tveeprom: Hauppauge: model = 48132, rev = K168, serial# = 7378609
tveeprom: tuner = LG TAPE H001F MK3 (idx = 68, type = 47)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3440 (type = 11)
ivtv: i2c attach [client=tveeprom[50],ok]
ivtv: Tuner Type 47, Tuner formats 0x00001000, Radio: yes, Model 0x00ad1598, Revision 0x00000001
ivtv: NTSC tuner detected
ivtv: Radio detected
saa7127: Ignoring new-style parameters in presence of obsolete ones
saa7127: video encoder driver version V 0.3 loaded
saa7127: detecting saa7127 client on address 0x88
saa7127: Selecting NTSC video Standard
saa7127: Selecting S-Video+Composite
saa7127: Turn WSS off
saa7127: Widescreen Mode 4:3 Full Format
saa7127: Selecting Normal Encoder Input
saa7127: Enable Video Output
ivtv: i2c attach [client=saa7127[50],ok]
ivtv: Encoder revision: 0x02040011
ivtv: Decoder revision: 0x02020023
ivtv: Configuring WinTV PVR 350 card with 10 streams
ivtv: Registered v4l2 device for encoder MPEG minor 0
ivtv: Create DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv: Registered v4l2 device for encoder YUV minor 32
ivtv: Create DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv: Registered v4l2 device for encoder VBI minor 224
ivtv: Create DMA encoder VBI stream: 240 x 8736 buffers (2048KB total)
ivtv: Registered v4l2 device for encoder PCM audio minor 24
ivtv: Create DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
ivtv: Registered v4l2 device for encoder radio minor 64
ivtv: Create encoder radio stream
ivtv: Registered v4l2 device for decoder MPEG minor 16
ivtv: Create DMA decoder MPEG stream: 16 x 65536 buffers (1024KB total)
ivtv: Registered v4l2 device for decoder VBI minor 228
ivtv: Create DMA decoder VBI stream: 1024 x 2048 buffers (2048KB total)
ivtv: Registered v4l2 device for decoder VOUT minor 232
ivtv: Create decoder VOUT stream
ivtv: Registered v4l2 device for decoder YUV minor 48
ivtv: Create DMA decoder YUV stream: 24 x 43200 buffers (1024KB total) ivtv: Create DMA decoder OSD stream: 32 x 65536 buffers (2048KB total)
ivtv: Setting Tuner 47
ivtv: ivtv_enc_thread: pid = 1336, itv = 0xe0f5cda0
ivtv: ivtv_enc_vbi_thread: pid = 1337, itv = 0xe0f5cda0
ivtv: ivtv_dec_thread: pid = 1338, itv = 0xe0f5cda0
ivtv: ivtv_dec_vbi_thread: pid = 1339, itv = 0xe0f5cda0
saa7115: decoder set norm NTSC
saa7115: set audio: 0x01
saa7115: decoder set input (4)
saa7115: now setting Composite input
ivtv: Setting audio matrix to input 3, output 1
ivtv: Switching standard to NTSC.
saa7115: decoder set norm NTSC
saa7115: set audio: 0x01
saa7127: Setting Encoder Video Standard
saa7127: Set NTSC Video Mode
saa7127: Selecting NTSC video Standard
ivtv: Initialized WinTV PVR 350, card #0
ivtv: Autodetected WinTV PVR 150 card
ivtv: Found an iTVC16 based chip
ACPI: PCI interrupt 0000:01:0a.0[A] -> GSI 16 (level, high) -> IRQ 16
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
ivtv: XXX PCI device: 0x01e0 vendor: 0x10de
cx25840: starting probe for adapter ivtv i2c driver #1 (0x10005)
cx25840: detecting cx25840 client on address 0x88
cx25840: cx25843-23 found. Initializing...
cx25840: requesting /lib/modules/HcwMakoA.ROM
cx25840: firmware loaded
ivtv: i2c attach [client=cx25840[50],ok]
tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #1
ivtv: i2c attach [client=(tuner unset),ok]
tuner: type set to 47 (LG NTSC (TAPE series)) by insmod option
tuner: The type=<n> insmod option will go away soon.
tuner: Please use the tuner=<n> option provided by
tuner: tv aard core driver (bttv, saa7134, ...) instead.
saa7115: starting probe for adapter ivtv i2c driver #1 (0x10005)
tveeprom: Hauppauge: model = 26552, rev = B268, serial# = 7864903
tveeprom: tuner = LG TAPE H001F MK3 (idx = 68, type = 47)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3410D (type = 5)
ivtv: i2c attach [client=tveeprom[50],ok]
ivtv: Tuner Type 47, Tuner formats 0x00001000, Radio: yes, Model 0x00892598, Revision 0x00000001
ivtv: Radio detected
ivtv: i2c attach [client=wm8775[50],ok]
ivtv: Encoder revision: 0x02040011
ivtv: Configuring WinTV PVR 150 card with 5 streams
ivtv: Registered v4l2 device for encoder MPEG minor 1
ivtv: Create DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv: Registered v4l2 device for encoder YUV minor 33
ivtv: Create DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv: Registered v4l2 device for encoder VBI minor 225
ivtv: Create DMA encoder VBI stream: 240 x 8736 buffers (2048KB total)
ivtv: Registered v4l2 device for encoder PCM audio minor 25
ivtv: Create DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
ivtv: Registered v4l2 device for encoder radio minor 65
ivtv: Create encoder radio stream
ivtv: Setting Tuner 47
cx25840: decoder set norm NTSC
cx25840: decoder set input (6)
cx25840: now setting Tuner input
cx25840: set audio input (0)
ivtv: ivtv_enc_thread: pid = 1400, itv = 0xe0f800fc
ivtv: ivtv_enc_vbi_thread: pid = 1401, itv = 0xe0f800fc
ivtv: Switching standard to NTSC.
cx25840: decoder set norm NTSC
ivtv: Initialized WinTV PVR 150, card #1
ivtv: ====================  END INIT IVTV  ====================
ivtv-osd: Framebuffer module loaded (attached to ivtv card id 0)
ivtv-osd: Framebuffer is at decoder-relative address 0x00510000 and has 1704960 bytes.
ivtv-osd: screen coords: [0 0] -> [720 480]
ivtv-osd: original global alpha = 208
ivtv-osd: current OSD state = 39
ivtv-osd: new global alpha = 208 (1 255 0)
ivtv-osd: framebuffer at 0xd5510000, mapped to 0xe1e10000, size 1350k
ivtv-osd: mode is 720x480x32, linelength=2880
ivtv-osd: fb1: iTVC15 TV out frame buffer device
ivtv: Allocate DMA decoder OSD stream: 32 x 65536 buffers (2048KB total)


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ivtv-devel mailing list
ivtv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-devel





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ivtv-devel mailing list
ivtv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-devel



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ivtv-devel mailing list
ivtv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-devel




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ivtv-devel mailing list
ivtv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-devel



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ivtv-devel mailing list
ivtv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-devel



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ivtv-devel mailing list
ivtv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to