All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tech Writer" <TechWtr@handspun.com>
To: xen-devel@lists.xensource.com
Cc: TechWtr@handspun.com
Subject: Re: Can't unbind PCI sound card
Date: Thu, 27 Sep 2007 09:36:20 -0400	[thread overview]
Message-ID: <00e901c8010b$63868f10$6501a8c0@warbler> (raw)
In-Reply-To: 1190897735.4381.51.camel@localhost.localdomain


[-- Attachment #1.1: Type: text/plain, Size: 2923 bytes --]

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:
    
       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=(0000:00:0b.0) 

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 
# echo -n <pci-slot-nbr> > /sys/bus/pci/drivers/<device>/unbind 
# # And now bind it to the PCI Backend 
# echo -n <pci-slot-nbr> > /sys/bus/pci/drivers/pciback/new_slot 
# echo -n <pci-slot-nbr> > /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. 

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 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
> 
> 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@lists.xensource.com
> http://lists.xensource.com/xen-devel

[-- Attachment #1.2: Type: text/html, Size: 5710 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

  reply	other threads:[~2007-09-27 13:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-27 12:10 Can't unbind PCI sound card Tech Writer
2007-09-27 12:55 ` Ian Campbell
2007-09-27 13:36   ` Tech Writer [this message]
2007-09-27 13:44     ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00e901c8010b$63868f10$6501a8c0@warbler' \
    --to=techwtr@handspun.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.