[pvrusb2] pvrusb2 got stuck - 0 byte file, kernel panic

Bernhard Geier geierb at geierb.de
Mon Feb 2 14:18:19 CST 2009


Hello,

I'm running a pvrusb2 Hauppauge device which sporadicly gets stuck -
without any kernel messages. A "cat /dev/video0 > test" results in a 0
byte file. The PVRUSB is a 24019 Rev C389, Debian stable with kernel
2.6.27.13 (self compiled, only patched with netfilter layer 7), pvrusb2
module from kernel tree.

A few weeks ago I had kernel 2.6.19 with the pvrusb2-mci-20081019
module, also getting stuck every few days. But there I was able to
unload and reload the module without a kernel panic which was sufficient
to bring the pvrusb2 back to life. No unplug and replug was required,
just reloading the module.

In 2.6.27.13 unloading the module failed. When I tried to unplug and
replug the device's usb cable, I got a kernel panic. After rebooting the
computer the pvrusb2 worked again.

See below for the initialization at system boot with the 2.6.27.13
kernel (hope I got the right lines), the messages when I tried to rmmod
the module and the kernel panic. Is there anything I could try, at least
to get some more useful debug messages? I'm pretty sure it will again
get stuck within the next two weeks...


dmesg:
------
firmware: requesting v4l-pvrusb2-24xxx-01.fw
pvrusb2: Device microcontroller firmware (re)loaded; it should now reset
and reconnect.
usb 1-2: USB disconnect, address 2
pvrusb2: Device being rendered inoperable
usbcore: registered new interface driver pvrusb2
pvrusb2: Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner : V4L in-tree version
pvrusb2: Debug mask is 31 (0x1f)
cx25840' 4-0044: cx25843-24 found @ 0x88 (pvrusb2_a)
tuner' 4-0043: chip found @ 0x86 (pvrusb2_a)
tda9887 4-0043: creating new instance
tda9887 4-0043: tda988[5/6/7] found
tuner' 4-0061: chip found @ 0xc2 (pvrusb2_a)
wm8775' 4-001b: chip found @ 0x36 (pvrusb2_a)
tveeprom 4-00a2: Hauppauge model 24019, rev C389, serial# 8567469
tveeprom 4-00a2: tuner model is TCL MFPE05 2 (idx 89, type 38)
tveeprom 4-00a2: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K)
(eeprom 0x74)
tveeprom 4-00a2: audio processor is CX25843 (idx 37)
tveeprom 4-00a2: decoder processor is CX25843 (idx 30)
tveeprom 4-00a2: has radio, has IR receiver, has no IR transmitter
pvrusb2: Supported video standard(s) reported available in hardware:
PAL-B/B1/D/D1/G/H/I/K;SECAM-B/D/G/H/K/K
pvrusb2: Mapping standards mask=0xff00ff
(PAL-B/B1/D/D1/G/H/I/K;SECAM-B/D/G/H/K/K1/L/LC)
pvrusb2: Setting up 20 unique standard(s)
pvrusb2: Set up standard idx=0 name=PAL-B/G
pvrusb2: Set up standard idx=1 name=PAL-D/K
pvrusb2: Set up standard idx=2 name=SECAM-B/G
pvrusb2: Set up standard idx=3 name=SECAM-D/K
pvrusb2: Set up standard idx=4 name=PAL-B
pvrusb2: Set up standard idx=5 name=PAL-B1
pvrusb2: Set up standard idx=6 name=PAL-G
pvrusb2: Set up standard idx=7 name=PAL-H
pvrusb2: Set up standard idx=8 name=PAL-I
pvrusb2: Set up standard idx=9 name=PAL-D
pvrusb2: Set up standard idx=10 name=PAL-D1
pvrusb2: Set up standard idx=11 name=PAL-K
pvrusb2: Set up standard idx=12 name=SECAM-B
pvrusb2: Set up standard idx=13 name=SECAM-D
pvrusb2: Set up standard idx=14 name=SECAM-G
pvrusb2: Set up standard idx=15 name=SECAM-H
pvrusb2: Set up standard idx=16 name=SECAM-K
pvrusb2: Set up standard idx=17 name=SECAM-K1
pvrusb2: Set up standard idx=18 name=SECAM-L
pvrusb2: Set up standard idx=19 name=SECAM-LC
pvrusb2: Initial video standard auto-selected to PAL-B/G
pvrusb2: Device initialization completed successfully.
pvrusb2: registered device video1 [mpeg]
pvrusb2: registered device radio0 [mpeg]
firmware: requesting v4l-cx25840.fw
cx25840' 4-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
tuner-simple 4-0061: creating new instance
tuner-simple 4-0061: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
cx25840' 4-0044: Video signal:              not present
cx25840' 4-0044: Detected format:           NTSC-M
cx25840' 4-0044: Specified standard:        PAL-BDGHI
cx25840' 4-0044: Specified video input:     Composite 7
cx25840' 4-0044: Specified audioclock freq: 48000 Hz
cx25840' 4-0044: Detected audio mode:       forced mode
cx25840' 4-0044: Detected audio standard:   no detected audio standard
cx25840' 4-0044: Audio muted:               no
cx25840' 4-0044: Audio microcontroller:     detecting
cx25840' 4-0044: Configured audio standard: automatic detection
cx25840' 4-0044: Configured audio system:   automatic standard and mode
detection
cx25840' 4-0044: Specified audio input:     Tuner (In8)
cx25840' 4-0044: Preferred audio mode:      stereo
cx25840' 4-0044: Selected 65 MHz format:    autodetect
cx25840' 4-0044: Selected 45 MHz format:    chroma
tda9887 4-0043: Data bytes: b=0x14 c=0x6e e=0x49
tuner' 4-0061: Tuner mode:      analog TV
tuner' 4-0061: Frequency:       175.25 MHz
tuner' 4-0061: Standard:        0x00000005
wm8775' 4-001b: Input: 2
firmware: requesting v4l-cx2341x-enc.fw

rmmod pvrusb2:
--------------
 router kernel: Oops: 0000 [#1]
 router kernel: Process pvrusb2-context (pid: 1102, ti=ee88c000
task=ef88f1a0 task.ti=ee88c000)
 router kernel: Stack: f116b5b6 c04b22da 00000292 00000000 ef88f1a0
c0129020 ee88dfc4 ee88dfc4
 router kernel: fffffffc 00000000 c0128cb2 c0128c70 00000000 00000000
c0103137 ef31ded0
 router kernel: 00000000 00000000 00000000 00000000 00000000
 router kernel: Call Trace:
 router kernel: [<f116b5b6>] pvr2_context_thread_func+0xa6/0x2d0 [pvrusb2]
 router kernel: [<c04b22da>] schedule+0x14a/0x280
 router kernel: [<c0129020>] autoremove_wake_function+0x0/0x50
 router kernel: [<c0128cb2>] kthread+0x42/0x70
 router kernel: [<c0128c70>] kthread+0x0/0x70
 router kernel: [<c0103137>] kernel_thread_helper+0x7/0x10
 router kernel: =======================
 router kernel: Code:  Bad EIP value.
 router kernel: EIP: [<20383134>] 0x20383134 SS:ESP 0068:ee88dfac


unplug/replug:
--------------
 router kernel: ------------[ cut here ]------------
 router kernel: invalid opcode: 0000 [#2]
 router kernel: Process udevd (pid: 650, ti=ef1f2000 task=ef88eae0
task.ti=ef1f2000)
 router kernel: Stack: 00000000 00d58ee9 00000010 000000d0 000000d0
ef808560 00000000 ef803ee0
 router kernel: 00000000 011c8aa7 00000008 ef88e09c ef88eae0 000000d0
00000246 ef808560
 router kernel: c0157811 ef88eae0 ef1f3fb8 01200011 bf96c4b8 c0116f63
ef201bf8 c0149517
 router kernel: Call Trace:
 router kernel: [<c0157811>] kmem_cache_alloc+0x91/0xa0
 router kernel: [<c0116f63>] copy_process+0x73/0xd10
 router kernel: [<c0149517>] handle_mm_fault+0x327/0x4f0
 router kernel: [<c016c900>] destroy_inode+0x20/0x40
 router kernel: [<c0117cbc>] do_fork+0x6c/0x260
 router kernel: [<c016f973>] mntput_no_expire+0x13/0x90
 router kernel: [<c0101692>] sys_clone+0x32/0x40
 router kernel: [<c0102e79>] sysenter_do_call+0x12/0x25
 router kernel: =======================
 router kernel: Code: 83 c4 30 5b 5e 5f 5d c3 8b 79 10 89 c8 83 c0 10 c7
41 30 01 00 00 00 39 c7 74 c1 8b 44 24 14 8b 77 10 3b 70 1c 0f 82 2d ff
ff ff <0f> 0b eb fe 8b 4c 24 1c 8b 54 24 1c 8b 41 08 83 c2 08 89 78 04
 router kernel: EIP: [<c01579a4>] cache_alloc_refill+0x184/0x480 SS:ESP
0068:ef1f3ed4


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://www.isely.net/pipermail/pvrusb2/attachments/20090202/8fa3ffbd/attachment.pgp 


More information about the pvrusb2 mailing list