From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tech Writer" Subject: Re: Can't unbind PCI sound card Date: Thu, 27 Sep 2007 09:36:20 -0400 Message-ID: <00e901c8010b$63868f10$6501a8c0@warbler> References: <009001c800ff$61018850$6501a8c0@warbler> <1190897735.4381.51.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0095170174==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: TechWtr@handspun.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0095170174== Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E6_01C800E9.DC3E27A0" This is a multi-part message in MIME format. ------=_NextPart_000_00E6_01C800E9.DC3E27A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am definitely trying to unbind the PCI sound card. The "example" I = included was one that I pulled off the web. I just re-read my initial = note, and realized i just edited the web example. My exact command is = this: =20 echo -n 0000:00:0b.0 > /sys/bus/pci/drivers/ENS1371/unbind ... and this command just hangs. As I mentioned in my original post, I can find a way to use the sound = card by editing /etc/modprobe.conf.local with: options pciback hide=3D(0000:00:0b.0)=20 However, my goal is to get the documented example to work. If a new = user of Xen tries to follow the documentation or the web examples, they = will be given the steps listed in my original post, which are: # # Unbind a PCI network card from its network driver=20 # echo -n > /sys/bus/pci/drivers//unbind=20 # # And now bind it to the PCI Backend=20 # echo -n > /sys/bus/pci/drivers/pciback/new_slot=20 # echo -n > /sys/bus/pci/drivers/pciback/bind I haven't found any indication in any of the web examples, or in the = documentation, following this sequence of commands, which indicates what = to do if the unbind hangs. So, I'm trying to figure out why it is = hanging, and if there is a workaround that can be included in the = training materials.=20 Peg ----- Original Message -----=20 From: "Ian Campbell" To: "Tech Writer" Cc: Sent: Thursday, September 27, 2007 8:55 AM Subject: Re: [Xen-devel] Can't unbind PCI sound card > On Thu, 2007-09-27 at 08:10 -0400, Tech Writer wrote: >> echo -n 0000:00:0b.0 > /sys/bus/pci/drivers/e100/unbind >=20 > 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. >=20 > Below is the script I use to attach a device to pciback, it takes a = list > of pci devices as its parameter. >=20 > Ian. >=20 >=20 > #!/bin/sh >=20 > if [ $# -eq 0 ] ; then > echo "Require a PCI device as parameter" > exit 1 > fi >=20 > for pcidev in $@ ; do > if [ -h /sys/bus/pci/devices/"$pcidev"/driver ] ; then >=20 > 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 >=20 >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel ------=_NextPart_000_00E6_01C800E9.DC3E27A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I am definitely trying to unbind the = PCI sound=20 card.  The "example" I included was one that I pulled off the = web.  I=20 just re-read my initial note, and realized i just edited the web = example.=20 My exact command is this:
   
       echo=20 -n 0000:00:0b.0 > /sys/bus/pci/drivers/ENS1371/unbind
 
... and this command just = hangs.
 
As I mentioned in my original post, I = can find a=20 way to use the sound card by editing /etc/modprobe.conf.local=20 with:
    options pciback=20 hide=3D(0000:00:0b.0)
 
However, my goal is to get the = documented example=20 to work.  If a new user of Xen tries to follow the documentation or = the web=20 examples, they will be given the steps listed in my original post, which = are:
 
# # Unbind a PCI network card = from its=20 network driver
# echo -n <pci-slot-nbr> = >=20 /sys/bus/pci/drivers/<device>/unbind
# # And now bind it to the PCI = Backend=20
# echo -n <pci-slot-nbr> = >=20 /sys/bus/pci/drivers/pciback/new_slot
# echo -n <pci-slot-nbr> = >=20 /sys/bus/pci/drivers/pciback/bind
 
I haven't found any indication in any = of the web=20 examples, or in the documentation, following this sequence of commands, = which=20 indicates what to do if the unbind hangs.  So, I'm trying to figure = out why=20 it is hanging, and if there is a workaround that can be included in the = training=20 materials.
 
Peg
 
----- Original Message -----
From: "Ian Campbell" <Ian.Campbell@XenSource.com>
To: "Tech Writer" <TechWtr@handspun.com>
Cc: <xen-devel@lists.xensource.com>
Sent: Thursday, September 27, 2007 8:55 = AM
Subject: Re: [Xen-devel] Can't unbind = PCI sound=20 card

> On Thu, 2007-09-27 at 08:10 -0400, Tech Writer=20 wrote:
>>     echo -n 0000:00:0b.0 = > =20 /sys/bus/pci/drivers/e100/unbind
>
> e100 is a network = driver not a=20 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=20 symlink
> at /sys/bus/pci/devices/0000:00:0b.0/driver instead of=20 going
> vi /sys/bus/pci/drivers to be sure of getting the right=20 device.
>
> Below is the script I use to attach a device to = pciback, it takes a list
> of pci devices as its = parameter.
>=20
> Ian.
>
>
> #!/bin/sh
>
> if [ = $# -eq 0=20 ] ; then
>   echo "Require a PCI device as=20 parameter"
>   exit 1
> fi
>
> for = pcidev in=20 $@ ; do
>    if [ -h = /sys/bus/pci/devices/"$pcidev"/driver=20 ] ; then
>
>        echo = "Unbinding $pcidev from" $(basename $(readlink=20 /sys/bus/pci/devices/"$pcidev"/driver))
>    &n= bsp;  =20 echo -n "$pcidev" >=20 /sys/bus/pci/devices/"$pcidev"/driver/unbind
>   =20 fi
>    echo "Binding $pcidev to=20 pciback"
>    echo -n "$pcidev" >=20 /sys/bus/pci/drivers/pciback/new_slot
>    echo -n=20 "$pcidev" > /sys/bus/pci/drivers/pciback/bind
> done
> =
>=20
>
> = _______________________________________________
>=20 Xen-devel mailing list
>
Xen-devel@lists.xensource.com
>=20 http://lists.xensource.com/xen-devel ------=_NextPart_000_00E6_01C800E9.DC3E27A0-- --===============0095170174== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0095170174==--