On 01/05/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am trying to run in domU, I got a sparkly new machine to move the
> back end away from the living room... but alas, it doesn't work :(
>
> Unfortunately swiotlb=256 is not working for me in domU.
I have run into the exact same problem described in this thread. Has
anyone found a solution since this thread was active in May? Is
anyone successfully using ivtv in a domU either in xen 3.x or 2.x?
Many thanks,
- Ben
(My own specifics follow)
In my case ivtv loads and works fine in dom0 but not domU (I have 3GB
RAM so dom0 uses 64M for swiotlb by default). Without setting an
swiotlb setting in the domU config ivtv fails to load with a DMA
error:
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.8.2 (tagged release) loading
ivtv: Linux version: 2.6.18-5-xen-686 SMP mod_unload 686 REGPARM gcc-4.1
ivtv: In case of problems please include the debug info between
ivtv: the START INIT IVTV and END INIT IVTV lines, along with
ivtv: any module options, when mailing the ivtv-users mailinglist.
ivtv0: Autodetected Hauppauge card (cx23416 based)
PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
tveeprom 0-0050: Hauppauge model 32062, rev B185, serial# 2850531
tveeprom 0-0050: tuner model is TCL 2002N 6A (idx 85, type 50)
tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 0-0050: audio processor is MSP3445 (idx 12)
tveeprom 0-0050: decoder processor is SAA7115 (idx 19)
tveeprom 0-0050: has no radio, has IR remote
ivtv0: Autodetected Hauppauge WinTV PVR-250
tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
saa7115 0-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
msp3400 0-0040: MSP3445G-B8 found @ 0x80 (ivtv i2c driver #0)
msp3400 0-0040: MSP3445G-B8 supports radio, mode is autodetect and autoselect
ivtv0: Encoder revision: 0x02060039
ivtv0 warning: Encoder Firmware can be buggy, use version 0x02040011,
0x02040024 or 0x02050032.
ivtv0: Registered device video0 for encoder MPEG
Fatal DMA error! Please use 'swiotlb=force'
------------[ cut here ]------------
kernel BUG at arch/i386/kernel/pci-dma-xen.c:343!
invalid opcode: 0000 [#1]
SMP
Modules linked in: msp3400 saa7115 tuner ivtv firmware_class
i2c_algo_bit cx2341x tveeprom i2c_core videodev v4l1_compat
v4l2_common evdev pcspkr 8250 serial_core ext3 jbd mbcache dm_mirror
dm_snapshot dm_mod processor
CPU: 0
EIP: 0061:[<c0108c38>] Not tainted VLI
EFLAGS: 00010282 (2.6.18-5-xen-686 #1)
EIP is at dma_map_single+0xe4/0x144
eax: 0000002f ebx: 00000000 ecx: f55f6000 edx: c090e000
esi: bd91e000 edi: 00000000 ebp: 00000960 esp: c090fd90
ds: 007b es: 007b ss: 0069
Process modprobe (pid: 1042, ti=c090e000 task=c1a73000 task.ti=c090e000)
Stack: c029ac26 00008100 00000000 c0e90448 c1a924a0 c0960000 c1a924a0 c0e90448
ee0de455 00000002 ed5d7000 00000000 00400000 00000000 ee0df803 00000000
c0950000 00000000 00000600 ed5d7000 ed5d705c c0950000 00000008 00000000
Call Trace:
[<ee0de455>] ivtv_init_buffer+0x15c/0x16e [ivtv]
[<ee0df803>] ivtv_stream_alloc+0x2a6/0x3df [ivtv]
[<ee0e612c>] ivtv_streams_setup+0x321/0x34d [ivtv]
[<ee0e18e3>] ivtv_probe+0x10cd/0x13ea [ivtv]
[<c0244ba4>] netlink_broadcast+0x244/0x285
[<c0208448>] __driver_attach+0x0/0x5d
[<c01c31dc>] pci_device_probe+0x36/0x57
[<c02083a9>] driver_probe_device+0x42/0x8b
[<c0208480>] __driver_attach+0x38/0x5d
[<c0207eca>] bus_for_each_dev+0x33/0x55
[<c0208313>] driver_attach+0x11/0x13
[<c0208448>] __driver_attach+0x0/0x5d
[<c0207be3>] bus_add_driver+0x64/0xfd
[<c01c3318>] __pci_register_driver+0x47/0x63
[<ee0e04f8>] module_start+0xb6/0xda [ivtv]
[<c01337a1>] sys_init_module+0x16c3/0x1846
[<c0160d88>] cp_new_stat64+0xfd/0x10f
[<ee0ae000>] saa7115_odd_parity+0x0/0x18 [saa7115]
[<c0104883>] syscall_call+0x7/0xb
Code: 03 04 24 89 d7 09 ce 09 df 3d 00 10 00 00 76 24 c1 ed 0c a1 80
57 35 c0 0f a3 28 19 c0 85 c0 75 13 68 26 ac 29 c0 e8 5e 28 01 00 <0f>
0b 57 01 eb ab 29 c0 5a 83 7c 24 08 00 74 15 8b 54 24 08 8b
EIP: [<c0108c38>] dma_map_single+0xe4/0x144 SS:ESP 0069:c090fd90
udevd-event[1041]: run_program: '/sbin/modprobe' abnormal exit
done.
If I set 'extra="swiotlb=64,force" in the domU config (I've tried
sizes from 32-512) I get a kernel panic:
Started domain mythtv
Linux version 2.6.18-5-xen-686 (Debian 2.6.18.dfsg.1-13etch2)
([EMAIL PROTECTED]) (gcc version 4.1.2 20061115 (prerelease) (Debian
4.1.1-21)) #1 SMP Thu Aug 30 06:00:04 UTC 2007
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000040800000 (usable)
304MB HIGHMEM available.
727MB LOWMEM available.
ACPI in unprivileged domain disabled
Built 1 zonelists. Total pages: 264192
Kernel command line: root=/dev/sda4 ro swiotlb=64,force
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Xen reported: 1913.182 MHz processor.
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
------------[ cut here ]------------
kernel BUG at lib/../arch/i386/kernel/swiotlb.c:162!
invalid opcode: 0000 [#1]
SMP
Modules linked in:
CPU: 0
EIP: e019:[<c01bec75>] Not tainted VLI
EFLAGS: 00010282 (2.6.18-5-xen-686 #1)
EIP is at swiotlb_init_with_default_size+0x88/0x14e
eax: fffffff4 ebx: 00000180 ecx: f55f6000 edx: c031e000
esi: c0347404 edi: 04000000 ebp: c031ffc0 esp: c031ffb4
ds: e021 es: e021 ss: e021
Process swapper (pid: 0, ti=c031e000 task=c02cf660 task.ti=c031e000)
Stack: c197a000 c0347404 c0ee7b07 00000020 c032d57c 0000000e 00000002 c197a000
c0347404 c1974364 00000020 c032357f 00008000 c034b280 00000000 c0fe0000
00000000 00000000 c010006f
Call Trace:
[<c032d57c>] mem_init+0x58/0x392
[<c032357f>] start_kernel+0x1fb/0x37f
Code: 44 be f5 ff 83 c8 ff 40 83 f8 06 75 fa 89 d8 b9 1f 00 00 00 c1
e0 0b ba 06 00 00 00 03 05 14 45 37 c0 e8 c2 4d f5 ff 85 c0 74 08 <0f>
0b a2 00 fc 76 2a c0 83 eb 80 a1 18 45 37 c0 39 c3 72 c5 b9
EIP: [<c01bec75>] swiotlb_init_with_default_size+0x88/0x14e SS:ESP e021:c031ffb4
<0>Kernel panic - not syncing: Attempted to kill the idle task!
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users