2011/7/24 Simon Hobson <span dir="ltr"><<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>></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'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'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>
># dvbtune -f 801833000 -i<br>
>Using DVB card "NXP TDA10048HN DVB-T"<br>
>tuning DVB-T (in United Kingdom) to 801833000 Hz<br>
>polling....<br>
>Getting frontend event<br>
>FE_STATUS:<br>
>polling....<br>
>Getting frontend event<br>
>FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC<br>
>Bit error rate: 35<br>
>Signal strength: 65278<br>
>SNR: 246<br>
>FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC<br>
><transponder type="T" freq="801833000"><br>
><service id="4168" ca="0"><br>
><description tag="0x48" type="1" provider_name="BBC" service_name="BBC ONE" /><br>
><descriptor tag="0x73" data="66702e6262632e636f2e756b" text="<a href="http://fp.bbc.co.uk" target="_blank">fp.bbc.co.uk</a>" /><br>
><stream type="2" pid="101"><br>
><stream_id id="1" /><br>
></stream><br>
<br>
And the card shows up in the boot log :<br>
>02:00.0 Multimedia video controller: Conexant Systems, Inc. CX23885<br>
>PCI Video and Audio Decoder (rev 02)<br>
<br>
I've hidden the card from Dom0 by adding "xen-pciback.hide=(02:00.0)"<br>
to the grub config.<br>
<br>
<br>
When I boot the guest, I can see it's tuner card<br>
>eddi kernel: [ 25.348011] cx23885[0]/0: found at 0000:00:00.0,<br>
>rev: 2, irq: 16, latency: 0, mmio: 0xfe600000<br>
<br>
But if I try to access it with dvbtune, it can't detect any channels :<br>
<br>
># dvbtune -f 801833000 -i<br>
>Using DVB card "NXP TDA10048HN DVB-T"<br>
>tuning DVB-T (in United Kingdom) to 801833000 Hz<br>
>polling....<br>
>Getting frontend event<br>
>FE_STATUS:<br>
>polling....<br>
>Getting frontend event<br>
>FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC<br>
>Bit error rate: 1965<br>
>Signal strength: 61680<br>
>SNR: 131<br>
>FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC<br>
><transponder type="T" freq="801833000"><br>
>Nothing to read from fd_pat<br>
>Nothing to read from fd_sdt<br>
></transponder><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 "mmio: 0xfe600000" 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'm also interested in virtualizing my backend.</div></span></div>