2011/7/24 Simon Hobson <span dir="ltr">&lt;<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I&#39;m trying get a new version of MythTV running as a Xen PV guest.<br>
Host is Debian with Xen4.0.1 and kernel 2.6.32-5-xen-amd64, PV guest<br>
is also Debian with kernel 2.6.32-5-xen-amd64. I have a DVB-T tuner<br>
(HVR-1200, PCIe card) I am trying to use in the guest with<br>
pciback.hide etc. The whole thing is running on an HP Proliant<br>
Microserver I bought while HP had a mail-in rebate going.<br>
<br>
I&#39;ve had a similar setup with an HVR 1100 under earlier versions of<br>
Xen, Linux, and MythTV for some time.<br>
<br>
<br>
If I boot the host without Xen, I can access the card with dvbtune<br>
and it lists the channels in a multiplex :<br>
&gt;# dvbtune -f 801833000 -i<br>
&gt;Using DVB card &quot;NXP TDA10048HN DVB-T&quot;<br>
&gt;tuning DVB-T (in United Kingdom) to 801833000 Hz<br>
&gt;polling....<br>
&gt;Getting frontend event<br>
&gt;FE_STATUS:<br>
&gt;polling....<br>
&gt;Getting frontend event<br>
&gt;FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC<br>
&gt;Bit error rate: 35<br>
&gt;Signal strength: 65278<br>
&gt;SNR: 246<br>
&gt;FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC<br>
&gt;&lt;transponder type=&quot;T&quot; freq=&quot;801833000&quot;&gt;<br>
&gt;&lt;service id=&quot;4168&quot; ca=&quot;0&quot;&gt;<br>
&gt;&lt;description tag=&quot;0x48&quot; type=&quot;1&quot; provider_name=&quot;BBC&quot; service_name=&quot;BBC ONE&quot; /&gt;<br>
&gt;&lt;descriptor tag=&quot;0x73&quot; data=&quot;66702e6262632e636f2e756b&quot; text=&quot;<a href="http://fp.bbc.co.uk" target="_blank">fp.bbc.co.uk</a>&quot; /&gt;<br>
&gt;&lt;stream type=&quot;2&quot; pid=&quot;101&quot;&gt;<br>
&gt;&lt;stream_id id=&quot;1&quot; /&gt;<br>
&gt;&lt;/stream&gt;<br>
<br>
And the card shows up in the boot log :<br>
&gt;02:00.0 Multimedia video controller: Conexant Systems, Inc. CX23885<br>
&gt;PCI Video and Audio Decoder (rev 02)<br>
<br>
I&#39;ve hidden the card from Dom0 by adding &quot;xen-pciback.hide=(02:00.0)&quot;<br>
to the grub config.<br>
<br>
<br>
When I boot the guest, I can see it&#39;s tuner card<br>
&gt;eddi kernel: [   25.348011] cx23885[0]/0: found at 0000:00:00.0,<br>
&gt;rev: 2, irq: 16, latency: 0, mmio: 0xfe600000<br>
<br>
But if I try to access it with dvbtune, it can&#39;t detect any channels :<br>
<br>
&gt;# dvbtune -f 801833000 -i<br>
&gt;Using DVB card &quot;NXP TDA10048HN DVB-T&quot;<br>
&gt;tuning DVB-T (in United Kingdom) to 801833000 Hz<br>
&gt;polling....<br>
&gt;Getting frontend event<br>
&gt;FE_STATUS:<br>
&gt;polling....<br>
&gt;Getting frontend event<br>
&gt;FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC<br>
&gt;Bit error rate: 1965<br>
&gt;Signal strength: 61680<br>
&gt;SNR: 131<br>
&gt;FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC<br>
&gt;&lt;transponder type=&quot;T&quot; freq=&quot;801833000&quot;&gt;<br>
&gt;Nothing to read from fd_pat<br>
&gt;Nothing to read from fd_sdt<br>
&gt;&lt;/transponder&gt;<br>
<br>
Now, that looks very much to me like it recognises there is a signal<br>
(HAS_SIGNAL, HAS_LOCK, and so on), but it cannot read any data.<br>
<br>
Does anyone have any suggestions what may be missing here ?<br>
Is the &quot;mmio: 0xfe600000&quot; significant, or does that get handled<br>
automatically with the pciback stuff ?<br>
--<br>
Simon Hobson<br>
<br>
Visit <a href="http://www.magpiesnestpublishing.co.uk/" target="_blank">http://www.magpiesnestpublishing.co.uk/</a> for books by acclaimed<br>
author Gladys Hobson. Novels - poetry - short stories - ideal as<br>
Christmas stocking fillers. Some available as e-books.<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</blockquote></div><br><div><meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; "><div>The PCI Passthrough guide at <a href="http://wiki.xensource.com/xenwiki/XenPCIpassthrough" target="_blank" style="color: rgb(17, 85, 204); ">http://wiki.xensource.com/xenwiki/XenPCIpassthrough</a> states that swiotlb=force and iommu=soft must be set as kernel boot options in the domU.  Have you already tried hat?</div>
<div>Let me know if it works, I&#39;m also interested in virtualizing my backend.</div></span></div>