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-devel

Re: [Xen-devel] Can't unbind PCI sound card

To: Tech Writer <TechWtr@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Can't unbind PCI sound card
From: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Date: Thu, 27 Sep 2007 13:55:35 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 27 Sep 2007 05:56:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <009001c800ff$61018850$6501a8c0@warbler>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <009001c800ff$61018850$6501a8c0@warbler>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2007-09-27 at 08:10 -0400, Tech Writer wrote:
>     echo -n 0000:00:0b.0 >  /sys/bus/pci/drivers/e100/unbind

e100 is a network driver not a sound driver, are you sure you aren't
disconnecting the Ethernet interface you are logged in over or
something? You probably want /sys/bus/pci/drivers/snd_ens1371/unbind, I
would actually follow the symlink
at /sys/bus/pci/devices/0000:00:0b.0/driver instead of going
vi /sys/bus/pci/drivers to be sure of getting the right device.

Below is the script I use to attach a device to pciback, it takes a list
of pci devices as its parameter.

Ian.


#!/bin/sh

if [ $# -eq 0 ] ; then
   echo "Require a PCI device as parameter"
   exit 1
fi

for pcidev in $@ ; do
    if [ -h /sys/bus/pci/devices/"$pcidev"/driver ] ; then

        echo "Unbinding $pcidev from" $(basename $(readlink 
/sys/bus/pci/devices/"$pcidev"/driver))
        echo -n "$pcidev" > /sys/bus/pci/devices/"$pcidev"/driver/unbind
    fi
    echo "Binding $pcidev to pciback"
    echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/new_slot
    echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/bind
done



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

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