mp1e and kernel panic - more info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi, sorry about the pseudo-cross-post to zapping-misc - I want to get as
many qualified people's attention as possible :) Since I don't know if the
problem is with mp1e or with the saa7134 driver yet, I would rather not
restrict my query to one forum - rap my knuckles if I'm being naughty.

I'm still trying to get mp1e working - I've included the output from the
kernel panic that occurs when I follow the advice given so far (thanks,
btw I'm not ungrateful, just very keen to get this working). If there's
any other info that might be useful, please let me know (and please tell
me how to obtain it - i.e. modprobe flags, file to look in, etc).

Any help appreciated.

Here's the situation:

AMD 1200 MHz
Debian (sid), kernel 2.4.19-pre8 patched with v4l2 etc as per bytesex.org
FlyVideo3000 FM with saa7134 chipset
saa7134 version 20020510 (unofficial 0.1.7) - problem occurs with official
0.1.6 version also.
mp1e source 1.9.2

Installed saa7134 with modprobe saa7134 card=2

(Do I need to specify some buffers here?)

Original error before making the following changes was:

$ mp1e -v -v
Using SSE optimized routines.
Opened ESD socket
Opened /dev/video ('saa7134[0]')
Video standard is 'PAL'
Audio unmuted
Filter 'YUV 4:2:0 fastest'
Image format 'YU12' 352 x 288 granted
24 capture buffers granted
mp1e:v4l2.c:395: Failed to map capture buffer #0 (22, Invalid argument)


Note that xawtv, radio etc, functions fine - its just video capture that
has the problem. NVrec causes the same kernel panic, so I suspect it's a
driver issue (but what do I know?).

I made some changes to v4l2.c, as well as a single change to v4l.c, as
detailed in recent posts to Zapping mailing list:

v4l2.c:
http://sourceforge.net/mailarchive/forum.php?thread_id=687934&forum_id=1024

 -	ASSERT("open video capture device", (fd = open(cap_dev,
 O_RDONLY)) != -1);
 +	ASSERT("open video capture device", (fd = open(cap_dev,
 O_RDWR)) != -1);

 -		p = mmap(NULL, vbuf.length, PROT_READ, MAP_SHARED, fd,
 vbuf.offset);
 +		p = mmap(NULL, vbuf.length, PROT_READ|PROT_WRITE,
MAP_SHARED, fd, vbuf.offset);


v4l.c: Tried with and without this - makes no difference.
http://sourceforge.net/mailarchive/forum.php?thread_id=763436&forum_id=1024

 -				ASSERT("VIDIOCSYNC", errno == EAGAIN);
 +				ASSERT("VIDIOCSYNC", errno == EINVAL);


Here's the kernel panic output (meticulously hand copied - sorry for any
typos)

$ mp1e -v -v
Using SSE optimized routines.
Opened ESD socket
Opened /dev/video ('saa7134[0]')
Video standard is 'PAL'
Audio unmuted
Filter 'YUV 4:2:0 fastest'
Image format 'YU12' 352 x 288 granted
24 capture buffers granted
Audio compression 44.1 kHz mono at 80 kbits/s (8.8 : 1)
Psychoacoustic threshold table #1
Macroblocks 22 x 18
Video compression 352 x 288, 25.0 frames/s at 2.30 Mbits/s (13.2 : 1)
Audio compression thread launched
Video compression thread launched
Unable to handle kernel NULL pointer dereference at virtual address
00000004
 printing eip:
e09443e5
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[<e09443e5>]    Tainted: P
EFLAGS: 00010213
eax: dfcfde3c   ebx: 00000000    ecx: 0001ef00    edx: 00000000
esi: dfcfde34   edi: dfcfd800    edp: 00000000    esp: c027bf18
ds: 0018   es: 0018   ss: 0018
Process swapper (pid: 0, stackpage=c027b000)
Stack: dfcfd800 00000007 dfcfd800 e094c01d dfcfd800 dfcfde34 00101010
e09447bd
       dfcfd800 00101010 dc9fcf80 24000001 0000000b c027bf98 c0109aff
0000000b
       dfcfd800 c027bf98 000002c0 c02b9bc0 0000000b c027bf90 c0109c7e
0000000b
Call Trace: [<e094c01d>] [<e09447bd>] [<c0109aff>] [<c0109c7e>]
[<c0106c20>]
   [<c0106c20>] [<c010bbe8>] [<c0106c20>] [<c0106c20>] [<c0106c43>]
[<c0106cb2>]
   [<c0105000>] [<c0105027>]

Code: 8b 4b 04 8b 03 8d 53 b8 89 48 04 89 01 89 56 04 52 57 8b 82
 <0>Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing


At this point, machine halts and accepts no input from anywhere (including
network). Caps lock and scroll lock lights flash repeatedly at about 1Hz.


Here's the relevant section from /var/log/syslog:

Jun  1 12:14:48 halkuon kernel: Linux video capture interface: v1.00
Jun  1 12:14:48 halkuon kernel: saa7130/34: v4l2 driver version 0.1.7
loaded
Jun  1 12:14:48 halkuon kernel: PCI: Found IRQ 11 for device 00:0a.0
Jun  1 12:14:48 halkuon kernel: saa7134[0]: found at 00:0a.0, rev: 1, irq:
11, latency: 32, mmio: 0xe2000000
Jun  1 12:14:48 halkuon kernel: saa7134[0]: subsystem: 1131:0000, board:
LifeView FlyVIDEO3000
Jun  1 12:14:48 halkuon kernel: saa7134[0]: gpio: mode=0x0000000
in=0x0031000 out=0x0000000 [pre-init]
Jun  1 12:14:48 halkuon kernel: saa7134[0]/video: set tv norm = PAL-BGHI
Jun  1 12:14:48 halkuon kernel: saa7134[0]/video: video input = 0
[Television]
Jun  1 12:14:48 halkuon kernel: saa7134[0]/video: set tv norm = PAL-BGHI
Jun  1 12:14:48 halkuon kernel: i2c-core.o: adapter saa7134[0] registered
as adapter 0.
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: <
a0<7>saa7134[0]/irq[0,1972660]: r=0x40 s=0x00 PWR_ON
Jun  1 12:14:48 halkuon kernel: saa7134[0]/irq[0,1972660]: r=0x100 s=0x00
INTL
Jun  1 12:14:48 halkuon kernel: saa7134[0]/video: DCSDT: no signal
Jun  1 12:14:48 halkuon kernel: saa7134[0]/audio: tvaudio thread scan
start [0]
Jun  1 12:14:48 halkuon kernel:  ERROR: NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: Huh, no eeprom present
(err=-5)?
Jun  1 12:14:48 halkuon kernel: i2c-core.o: driver i2c TV tuner driver
registered.
Jun  1 12:14:48 halkuon kernel: tuner: probing saa7134[0] i2c adapter
[id=0x90000]
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < c0 ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < c2 >
Jun  1 12:14:48 halkuon kernel: tuner: chip found @ 0xc2
Jun  1 12:14:48 halkuon kernel: i2c-core.o: client [Philips PAL]
registered to adapter [saa7134[0]](pos. 0).
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < c4 ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < c6 ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < c8 ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < ca ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < cc ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < ce ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < d0 ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < d2 ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < d4 ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < d6 ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < d8 ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < da ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < dc ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]: i2c xfer: < de ERROR:
NO_DEVICE
Jun  1 12:14:48 halkuon kernel: saa7134[0]/irq[0,1972662]: r=0x100 s=0x00
INTL
Jun  1 12:14:48 halkuon kernel: saa7134[0]/video: DCSDT: no signal
Jun  1 12:14:48 halkuon kernel: saa7134[0]: registered device video0
[v4l2]
Jun  1 12:14:48 halkuon kernel: saa7134[0]: registered device vbi0
Jun  1 12:14:48 halkuon kernel: saa7134[0]: registered device radio0
Jun  1 12:14:48 halkuon kernel: saa7134[0]: registered device dsp2
Jun  1 12:14:48 halkuon kernel: saa7134[0]: registered device mixer1
Jun  1 12:14:49 halkuon kernel: saa7134[0]/audio: scanning 5.500 MHz =>
dc is 14436 [-859/13577]
Jun  1 12:14:50 halkuon kernel: saa7134[0]/audio: scanning 6.000 MHz =>
dc is  8309 [113/8422]
Jun  1 12:14:50 halkuon kernel: saa7134[0]/audio: scanning 6.500 MHz =>
dc is   504 [832/328]
Jun  1 12:14:50 halkuon kernel: saa7134[0]/audio: found PAL-BGHI main
sound carrier @ 5.500 MHz
Jun  1 12:14:50 halkuon kernel: saa7134[0]/audio: tvaudio_setmode: trying
PAL-B/G FM-stereo [5.500/5.742 MHz]
Jun  1 12:14:51 halkuon kernel: saa7134[0]/audio: tvaudio_setmode: trying
PAL-B/G NICAM [5.500/5.850 MHz]
Jun  1 12:14:52 halkuon kernel: saa7134[0]/audio: found audio subchannels:
mono stereo
Jun  1 12:14:52 halkuon kernel: saa7134[0]/audio: tvaudio_setmode: using
PAL-B/G NICAM [5.500/5.850 MHz]
Jun  1 12:14:55 halkuon kernel: saa7134[0]/audio: found audio subchannels:
mono stereo

At this point, the next entry is
Jun  1 12:28:01 halkuon syslogd 1.4.1#10: restart.


Thanks for reading all that :)

Dave.









[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux