WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] PCI devices forwarded but does not work

To: MisterE <MisterE2002@xxxxxxxxx>
Subject: Re: [Xen-users] PCI devices forwarded but does not work
From: Todd Deshane <todd.deshane@xxxxxxx>
Date: Tue, 30 Aug 2011 23:38:14 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 30 Aug 2011 20:39:38 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=N5bEuEVfDn8/FEeKpBnmfikzAihjWu0nQbDOn9tY1EE=; b=QkDe8l2RUTux4j56pqW7B8Gs5y+Yi9xeq6c1hHKZitna49BQVaYSOV6nvYZYNbmL+U 7+4P22A858DXNXCuC6wRCKurIp3k4Coxd/y00Wq+GKNEN4rszZGRmr3A8F3cm4oPifMn yUwhdiXTfCvT7TTYOOBvHfDZh26DQl5XLWp6s=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1058054562.20110830205550@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1058054562.20110830205550@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, Aug 30, 2011 at 2:55 PM, MisterE <MisterE2002@xxxxxxxxx> wrote:
> Hello Xen folks,
>
>
> I use Debian Squeeze
> I seize a soundcard (inc. HDMI) and a network card with the next kernel 
> parameters:
> module  /vmlinuz-2.6.32-5-xen-amd64 placeholder 
> root=/dev/mapper/vg_dom0-lv_root ro  xen-pciback.permissive 
> xen-pciback.hide=(00:14.2)(01:05.1)(03:00.0)
>
> root@dom0:/boot/grub# dmesg | grep seizing
> [    0.147445] pciback 0000:00:14.2: seizing device
> [    0.147934] pciback 0000:01:05.1: seizing device
> [    0.148070] pciback 0000:03:00.0: seizing device
>
>
> root@dom0:/boot/grub# lspci -k
> 00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
>        Subsystem: Giga-byte Technology Device a022
>        Kernel driver in use: pciback
> 01:05.1 Audio device: ATI Technologies Inc RS780 Azalia controller
>        Subsystem: ATI Technologies Inc RS780 Azalia controller
>        Kernel driver in use: pciback
> 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B 
> PCI Express Gigabit Ethernet controller (rev 02)
>        Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express 
> Gigabit Ethernet controller
>        Kernel driver in use: pciback
>
>
> root@dom0:/etc/xen# grep pci /etc/xen/paradeb01.cfg
> pci = [ '00:14.2', '01:05.1', '03:00.0' ]
>
>
> In the DomU:
>
>
> root@paradeb01:~# lspci -k
> 00:00.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
>        Subsystem: Giga-byte Technology Device a022
>        Kernel driver in use: HDA Intel
> 00:01.1 Audio device: ATI Technologies Inc RS780 Azalia controller
>        Subsystem: ATI Technologies Inc RS780 Azalia controller
>        Kernel driver in use: HDA Intel
> 00:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B 
> PCI Express Gigabit Ethernet controller (rev 02)
>        Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express 
> Gigabit Ethernet controller
>        Kernel driver in use: r8169
>
>
> I see the network card with "ifconfig -a". But
> The domu sees connecting/disconnect the device:
>
>        root@paradeb01:~# [ 1059.451908] r8169: eth1: link up
>        root@paradeb01:~# dhclient eth1
>        root@paradeb01:~# echo $?
>        0
>
>
> But it fails to set an IP to the device.
>
>
>
> I see the soundcard with "alsamixer". But playing mp3 does not work. It 
> simply hangs:
>        root@paradeb01:~# mplayer -ao alsa *.mp3
>        MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team
>        mplayer: could not connect to socket
>        mplayer: No such file or directory
>        Failed to open LIRC support. You will not be able to use your remote 
> control.
>       
>  ==========================================================================
>        Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
>        AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
>        Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
>       
>  ==========================================================================
>        AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
>        Video: no video
>        Starting playback...
>        A:   0.0 (00.0) of 381.0 (06:21.0) ??,?%
>
>
> With older Debian version (pre pvops?) i did not have many problems. At first 
> the audio was glitchy, but adding it to
> "xend-pci permissive.sxp" fixed it. But now it failes to play completely.

Some general debugging steps here:
http://wiki.xensource.com/xenwiki/XenPCIpassthrough

You may want to see if you can reproduce this issue on Jeremy's git tree. See:
http://wiki.xensource.com/xenwiki/XenParavirtOps

You may also be interested in the PV audio project that a Google
Summer of Code student worked on:
http://blog.xen.org/index.php/2011/06/08/george-boutsioukis-paravirtualized-audio/

Hope that helps.

Thanks,
Todd

-- 
Todd Deshane
http://www.linkedin.com/in/deshantm
http://www.xen.org/products/cloudxen.html
http://runningxen.com/

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>