<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 8pt; color: #000000'>Hi,<br><br>I have 2 DomU's running, both with PVR-150's.&nbsp; One is the Master Backend, and the other is the slave.&nbsp; When the HDPVR becomes stable, I'll have 3 DomU's.<br><br>This is what I had to do on my Dom0 boot grub:<br><br>pciback.permissive pciback.hide=(06:01.0)(06:02.0) dom0_mem=-256M <br><br>Then on my DomU boot, I did:<br>extra = '2 console=xvc0 swiotlb=256,force'<br>#extra = '2 console=xvc0 iommu=soft swiotlb=512,force'<br>#extra = '2 console=xvc0'<br><br>pci=['06:01.0']<br><br><br>The important things are the dom0_mem is dom0's grub, and the swiotlb in the DomU's configs.<br><br>I hope that helps.<br><br>Gerald<br><br>ps: if anyone gets pci passthrough working with Xen HVM, I'd be happy to hear about it.<br><br><br><br>----- "Alex Pearson" &lt;alex@apics.co.uk&gt; wrote:
<br>&gt; Hi All,<br>&gt; &nbsp;&nbsp; &nbsp;I've done some searching and come up with nothing, so I hope I'm not <br>&gt; walking well trodden ground here!<br>&gt; <br>&gt; &nbsp;&nbsp; &nbsp;I wish to run my mythbackend in a Xen DomU, using pci forwarding. &nbsp;<br>&gt; I've two different types of card, but I've only had chance to try one of <br>&gt; them (If I pulled both out of my Production system the other half would <br>&gt; kill me! ;-)).<br>&gt; <br>&gt; &nbsp;&nbsp; &nbsp;The card I'm using is a Hauppauge Nova-T PCI (a dvb-t card)<br>&gt; lspci on Dom0:<br>&gt; 01:08.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video <br>&gt; and Audio Decoder (rev 05)<br>&gt; 01:08.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and <br>&gt; Audio Decoder [MPEG Port] (rev 05)<br>&gt; 01:08.4 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and <br>&gt; Audio Decoder [IR Port] (rev 05)<br>&gt; <br>&gt; &nbsp;&nbsp; &nbsp;I've got the card passed to my domU fine (using 'pciback.permissive <br>&gt; pciback.hide=(0000:01:08.0)(0000:01:08.2)(0000:01:08.4)' as a kernel <br>&gt; option on the Dom0). &nbsp;I can scan for channels without any issues, but as <br>&gt; soon as the card tries to actually record anything I get a kernel oops <br>&gt; (pasted at the bottom of email). &nbsp;Is this because the card has tried to <br>&gt; use DMA to pass the video and can't? &nbsp;Should this even work? &nbsp;The other <br>&gt; card I have is a Hauppauge Nova-T 500, which I believe other people have <br>&gt; got working (I believe this may be because the card basically a usb hub <br>&gt; and tuners, and so wouldn't move data in the same way, but just a guess <br>&gt; as I've not tested it yet).<br>&gt; <br>&gt; lspci on DomU:<br>&gt; 00:00.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video <br>&gt; and Audio Decoder (rev 05)<br>&gt; 00:00.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and <br>&gt; Audio Decoder [MPEG Port] (rev 05)<br>&gt; 00:00.4 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and <br>&gt; Audio Decoder [IR Port] (rev 05)<br>&gt; <br>&gt; &nbsp;&nbsp; &nbsp;After the garbled chat above, I guess basically I'm asking:<br>&gt; <br>&gt; &nbsp;&nbsp; &nbsp;Have people got mythbackend running in DomU's successfully?<br>&gt; &nbsp;&nbsp; &nbsp;Have you used either Hauppauge Nova-T PCI or Hauppauge Nova-T 500?<br>&gt; <br>&gt; <br>&gt; &nbsp;&nbsp; &nbsp;Thanks in advance to everyone.<br>&gt; <br>&gt; &nbsp;&nbsp; &nbsp;Alex<br>&gt; <br>&gt; Oops output:<br>&gt; [14285.301630] Fatal DMA error! Please use 'swiotlb=force'<br>&gt; [14285.302780] ----------- [cut here ] --------- [please bite here ] <br>&gt; ---------<br>&gt; [14285.304031] Kernel BUG at <br>&gt; arch/x86_64/kernel/../../i386/kernel/pci-dma-xen.c:132<br>&gt; [14285.305327] invalid opcode: 0000 [1] SMP<br>&gt; [14285.306611] CPU 0<br>&gt; [14285.307821] Modules linked in: ipv6 cx88_dvb cx8802 cx8800 <br>&gt; cx88_vp3054_i2c cx88xx ir_common mt352 i2c_algo_bit <br>&gt; d &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vb_pll or51132 tveeprom <br>&gt; video_buf_dvb compat_ioctl32 video_buf btcx_risc nxt200x videodev <br>&gt; isl6421 v4l1_compat zl103 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;53 <br>&gt; v4l2_common cx24123 lgdt330x cx22702 i2c_core evdev joydev<br>&gt; [14285.311737] Pid: 1014, comm: cx88[0] dvb Not tainted 2.6.18.8 #1<br>&gt; [14285.313109] RIP: e030:[&lt;ffffffff80211367&gt;] &nbsp;[&lt;ffffffff80211367&gt;] <br>&gt; dma_map_sg+0x141/0x1ae<br>&gt; [14285.314457] RSP: e02b:ffff88001bfb3e00 &nbsp;EFLAGS: 00010282<br>&gt; [14285.315781] RAX: 000000000000003e RBX: ffff88000161ebe0 RCX: <br>&gt; 0000000100000000<br>&gt; [14285.317103] RDX: ffffffffff5fd000 RSI: 0000000000000001 RDI: <br>&gt; ffffffff805322e0<br>&gt; [14285.318440] RBP: ffff88001ee0b2c0 R08: ffff880001827508 R09: <br>&gt; 000000000000003c<br>&gt; [14285.319812] R10: 0000000000001e62 R11: 0000000000001e27 R12: <br>&gt; 0000000000000000<br>&gt; [14285.321166] R13: 0000000000000006 R14: ffff880001a54070 R15: <br>&gt; 6db6db6db6db6db7<br>&gt; [14285.322510] FS: &nbsp;00002b07b8f1d350(0000) GS:ffffffff805b4000(0000) <br>&gt; knlGS:0000000000000000<br>&gt; [14285.323875] CS: &nbsp;e033 DS: 0000 ES: 0000<br>&gt; [14285.325223] Process cx88[0] dvb (pid: 1014, threadinfo <br>&gt; ffff88001bfb2000, task ffff880001a1f100)<br>&gt; [14285.326645] Stack: &nbsp;0000000000000002 ffff88001f1f0230 <br>&gt; ffff88001eefe8e0 ffff880001a54000<br>&gt; [14285.328099] &nbsp;ffff88001eefe800 ffff88001eefe8e0 0000000000000002 <br>&gt; ffffffff8804a1c2<br>&gt; [14285.329592] &nbsp;ffff88001f1f0200 ffff88001eefe8e8 0000000000005e00 <br>&gt; ffffffff880a2f30<br>&gt; [14285.329657] Call Trace:<br>&gt; [14285.332451] &nbsp;[&lt;ffffffff8804a1c2&gt;] :video_buf:videobuf_dma_map+0x116/0x15a<br>&gt; [14285.334086] &nbsp;[&lt;ffffffff880a2f30&gt;] :cx8802:cx8802_buf_prepare+0x9e/0xe6<br>&gt; [14285.335944] &nbsp;[&lt;ffffffff88049385&gt;] <br>&gt; :video_buf:videobuf_read_start+0xd9/0x167<br>&gt; [14285.337587] &nbsp;[&lt;ffffffff880563d2&gt;] <br>&gt; :video_buf_dvb:videobuf_dvb_thread+0x0/0x162<br>&gt; [14285.339394] &nbsp;[&lt;ffffffff8805641a&gt;] <br>&gt; :video_buf_dvb:videobuf_dvb_thread+0x48/0x162<br>&gt; [14285.340942] &nbsp;[&lt;ffffffff880563d2&gt;] <br>&gt; :video_buf_dvb:videobuf_dvb_thread+0x0/0x162<br>&gt; [14285.342413] &nbsp;[&lt;ffffffff8023dfa6&gt;] keventd_create_kthread+0x0/0x62<br>&gt; [14285.343885] &nbsp;[&lt;ffffffff8023e0dc&gt;] kthread+0xd4/0x108<br>&gt; [14285.345364] &nbsp;[&lt;ffffffff8020aac8&gt;] child_rip+0xa/0x12<br>&gt; [14285.346834] &nbsp;[&lt;ffffffff8023dfa6&gt;] keventd_create_kthread+0x0/0x62<br>&gt; [14285.348328] &nbsp;[&lt;ffffffff803f7885&gt;] dmx_ts_feed_set+0x0/0x121<br>&gt; [14285.349864] &nbsp;[&lt;ffffffff8023e008&gt;] kthread+0x0/0x108<br>&gt; [14285.351362] &nbsp;[&lt;ffffffff8020aabe&gt;] child_rip+0x0/0x12<br>&gt; [14285.352840]<br>&gt; [14285.354268]<br>&gt; [14285.354269] Code: 0f 0b 68 2b ac 4d 80 c2 84 00 48 8b 7d 00 48 2b 3d <br>&gt; ec e7 40<br>&gt; [14285.357142] RIP &nbsp;[&lt;ffffffff80211367&gt;] dma_map_sg+0x141/0x1ae<br>&gt; [14285.358551] &nbsp;RSP &lt;ffff88001bfb3e00&gt;<br>&gt; [14285.359917]<br>&gt; focus:~#<br>&gt; <br>&gt; xm dmesg:<br>&gt; (XEN) Xen version 3.3-unstable (Debian 3.3-unstable+hg17961-1) <br>&gt; (waldi@debian.org) (gcc version 4.3.1 (Debian 4.3.1-4) ) Fri Jul &nbsp;4 <br>&gt; 18:44:42 UTC 2008<br>&gt; <br>&gt; _______________________________________________<br>&gt; mythtv-users mailing list<br>&gt; mythtv-users@mythtv.org<br>&gt; http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users<br>&gt; </div></body></html>