By Date: <-- -->
By Thread: <-- -->

Problem in video-buf.c when suspending to disk



  # echo disk >/sys/power/state

resulted in a kernel bug being logged. Kernel is 2.6.17-rc3, stock DVB
drivers; however, source comparison with current v4l-dvb devel tells me that
the bug will still occur there.

A little patching (writing the result to a module parameter) shows that
videobuf_waiton() is returning -EINTR.


Stopping tasks: ========================================================<0>------------[ cut here ]------------
kernel BUG at drivers/media/video/video-buf-dvb.c:58!
invalid opcode: 0000 [#1]
PREEMPT 
Modules linked in: snd_virmidi snd_seq_virmidi snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_seq_device eeprom usbhid cx88_blackbird cx88_dvb cx8802 cx8800 cx88xx ir_common snd_intel8x0 snd_ac97_codec snd_ac97_bus cx88_vp3054_i2c snd_pcm_oss snd_mixer_oss ehci_hcd tveeprom v4l2_common compat_ioctl32 v4l1_compat btcx_risc videodev video_buf_dvb video_buf ohci_hcd snd_pcm usbcore snd_timer snd_page_alloc
CPU:    0
EIP:    0060:[<d0821546>]    Not tainted VLI
EFLAGS: 00210286   (2.6.17-rc3 #1) 
EIP is at videobuf_dvb_thread+0x196/0x1b0 [video_buf_dvb]
eax: fffffffc   ebx: caf03978   ecx: c74ddf74   edx: 00000001
esi: caf03930   edi: cf5ff230   ebp: c74ddfb4   esp: c74ddf90
ds: 007b   es: 007b   ss: 0068
Process cx88[1] dvb (pid: 2381, threadinfo=c74dc000 task=c813e630)
Stack: <0>caf03930 00000000 00000001 c74dc000 cf5ff238 cf5ff36c fffffffc c74dc000 
       c74f9d80 c74ddfe4 c0131c59 cf5ff230 c74ddfd0 00000000 d08213b0 cf5ff230 
       ffffffff ffffffff c0131b80 00000000 00000000 00000000 c0101005 c74f9d80 
Call Trace:
 [<c0104205>] show_stack_log_lvl+0xa5/0xf0
 [<c010447b>] show_registers+0x1bb/0x250
 [<c010476d>] die+0x11d/0x2e0
 [<c0104b9f>] do_trap+0x8f/0xd0
 [<c0104eb0>] do_invalid_op+0xa0/0xb0
 [<c0103b6b>] error_code+0x4f/0x54
 [<c0131c59>] kthread+0xd9/0xe0
 [<c0101005>] kernel_thread_helper+0x5/0x10
---------------------------
| preempt count: 00000001 ]
| 1 level deep critical section nesting:
----------------------------------------
.. [<c0104695>] .... die+0x45/0x2e0
.....[<c0104b9f>] ..   ( <= do_trap+0x8f/0xd0)

Code: 8b 07 c7 04 24 e8 17 82 d0 89 44 24 04 e8 03 ca 8f ef e9 98 fe ff ff 8b 07 c7 04 24 2c 18 82 d0 89 44 24 04 e8 ec c9 8f ef eb c2 <0f> 0b 3a 00 08 18 82 d0 e9 36 ff ff ff e8 58 f7 b6 ef e9 ec fe 
EIP: [<d0821546>] videobuf_dvb_thread+0x196/0x1b0 [video_buf_dvb] SS:ESP 0068:c74ddf90

-- 
| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
|   <URL:http://www.youmustbejoking.demon.co.uk/progs.packages.html>

Arguments are to be avoided; they are always vulgar and often convincing.

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list