From: David Muench Subject: Re: Oops when modprobing ivtv outside of dom0 Date: Tue, 5 Jul 2005 17:28:36 -0400 Message-ID: References: Reply-To: David Muench Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 7/5/05, Keir Fraser wrote: > Ah, I see the bug. It's in both 2.0 and 3.3 (the unstable version) so > it's worth pointing out to the developers. The following code in > ivtv_setup_pci() is broken: Thanks, that fixed the loading problem, it now detects all the cards properly. However, when I try to read some video from the card (you can just cat /dev/video0 > file.mpg) it crashes the entire domU: neptune ~ # cat /dev/video0 > test.mpg Oops: 0000 [#1] Modules linked in: msp3400 saa7115 tuner tveeprom ivtv i2c_algo_bit videodev ehci_hcd uhci_hcd usbcore CPU: 0 EIP: 0061:[] Not tainted VLI EFLAGS: 00010282 (2.6.11-xenU) EIP is at 0xb6f92126 eax: d08cfbc0 ebx: 00001000 ecx: 0007dfc0 edx: cbbe3fac esi: 00000000 edi: c0792c80 ebp: 0804d080 esp: cbbe3f74 ds: 007b es: 007b ss: 0069 Process cat (pid: 5522, threadinfo=3Dcbbe3000 task=3Dcdf7da00) Stack: c015133e c0792c80 0804d080 00001000 cbbe3fac c0792c80 fffffff7 0804d= 080 cbbe3000 c0151631 c0792c80 0804d080 00001000 cbbe3fac 0007dfc0 00000= 000 00000000 00000003 fbffc000 c0109040 00000003 0804d080 00001000 00001= 000 Call Trace: [] vfs_read+0xae/0x130 [] sys_read+0x51/0x80 [] syscall_call+0x7/0xb Code: Bad EIP value. <1>Unable to handle kernel paging request at virtual address 761853ac printing eip: 761853ac *pde =3D ma 00000000 pa 55555000 [] put_files_struct+0x64/0xd0 [] do_exit+0xaf/0x2b0 [] sys_ptrace+0x89/0x610 [] die+0x16d/0x170 [] syscall_call+0x7/0xb [] do_page_fault+0x318/0x693 [] ext3_file_write+0x44/0xd0 [] do_sync_write+0xb7/0xf0 [] page_fault+0x3b/0x40 [] vfs_read+0xae/0x130 [] sys_read+0x51/0x80 [] syscall_call+0x7/0xb Oops: 0000 [#2] Modules linked in: msp3400 saa7115 tuner tveeprom ivtv i2c_algo_bit videodev ehci_hcd uhci_hcd usbcore CPU: 0 EIP: 0061:[<761853ac>] Not tainted VLI EFLAGS: 00010206 (2.6.11-xenU) EIP is at 0x761853ac eax: d08cfbc0 ebx: c0792c80 ecx: c08e3780 edx: 761853ac esi: 00000000 edi: cfb8a680 ebp: 00000001 esp: cbbe3dd4 ds: 0069 es: 0069 ss: 0069 Process cat (pid: 5522, threadinfo=3Dcbbe3000 task=3Dcdf7da00) Stack: c0150b26 c0792c80 cfb8a680 00000001 00000003 cfb8a680 c011a874 c0792= c80 cfb8a680 cbbe3000 cdf7da00 0000000b 00000001 c011b46f cdf7da00 00000= 069 c0110069 00000012 cbbe3000 00000000 00000000 c078b22c c010999d 00000= 000 Call Trace: [] filp_close+0x76/0x90 [] put_files_struct+0x64/0xd0 [] do_exit+0xaf/0x2b0 [] sys_ptrace+0x89/0x610 [] die+0x16d/0x170 [] syscall_call+0x7/0xb [] do_page_fault+0x318/0x693 [] ext3_file_write+0x44/0xd0 [] do_sync_write+0xb7/0xf0 [] page_fault+0x3b/0x40 [] vfs_read+0xae/0x130 [] sys_read+0x51/0x80 [] syscall_call+0x7/0xb Code: Bad EIP value. Segmentation fault neptune ~ # ************ REMOTE CONSOLE EXITED ***************** Any ideas on that one? :) If we're getting out of the realm of Xen and I should go ask the IVTV guys, please don't hesitate to say so. I just tried a second time, and it took a few tries of capturing video to crash it. But even when it didn't crash, all I got was a zero byte file. I noticed the card was using interrupts (looking at /proc/interrupts), and things looked ok in dmesg, but no mpeg data. That time the domU didn't exit on it's own, but was pretty well hung up (non-responsive other than line feeds on the console). So I tried to xm destroy it, and that rebooted the entire box. Thanks, Dave --=20 David Muench - davemuench@gmail.com Jabber ID: dave@jabber.wasteland.org