LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-17-2015, 05:29 PM   #1
Eusaphious
LQ Newbie
 
Registered: Jul 2008
Location: DFW / Texas
Distribution: Gentoo
Posts: 10

Rep: Reputation: 0
Bind only 1 device to vfio driver that have same vendor/device id's


I'm trying to bind a specific USB3.0 controller to the vfio driver and I am not sure how to go about it. I know I can do something like:
Code:
# echo 1b6f 7023 > /sys/bus/pci/drivers/vfio-pci/new_id
and this works just fine however I have 3 of these controllers that have the same vendor/device id's and I want to bind just 1 of them to the vfio driver.

relevant lspci -n output for the 3 USB 3.0 Controllers:
Code:
03:00.0 0c03: 1b6f:7023 (rev 01)  
04:00.0 0c03: 1b6f:7023 (rev 01) 
05:00.0 0c03: 1b6f:7023 (rev 01)
Is there a way to narrow it down to a specific controller? I know I can unbind a specific controller with:
Code:
# echo 0000:04:00.0 > /sys/bus/pci/drivers/xhci_hcd/unbind
And only that specific controller is removed.
But this does not work in reverse to bind (or I dont know what the proper syntax is):
Code:
# echo 04:00.0 > /sys/bus/pci/drivers/vfio-pci/new_id 
-bash: echo: write error: Invalid argument
# echo 0000:04:00.0 > /sys/bus/pci/drivers/vfio-pci/new_id 
-bash: echo: write error: Invalid argument
# echo 0000:04:00.0 > /sys/bus/pci/drivers/vfio-pci/bind 
-bash: echo: write error: No such device
# echo 04:00.0 > /sys/bus/pci/drivers/vfio-pci/bind 
-bash: echo: write error: No such device
Is there anyway to do this?

Thanks
 
Old 05-19-2015, 09:41 PM   #2
aw_
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
I can't post urls in this forum yet, so go to vfio.blogspot.com and look for part 3 of my how-to series. About mid-way down I address this problem using initramfs scripts and driver_override.

---------- Post added 05-19-15 at 07:42 PM ----------

Quote:
Originally Posted by aw_ View Post
I can't post urls in this forum yet, so go to vfio.blogspot.com and look for part 3 of my how-to series. About mid-way down I address this problem using initramfs scripts and driver_override.
And now that I've posted, I should be able to directly link it here
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto Bind USB Device to Driver? im.thatoneguy Linux - Hardware 1 02-19-2015 04:37 AM
[SOLVED] USB device is not claimed by any active driver for every device in Linux 2.4 jacquesdirac Linux - Hardware 3 11-12-2010 08:35 AM
Bind device to compiled-in driver? PlancksCnst Linux - Hardware 1 07-28-2010 01:42 PM
Can't bind my device to a driver, or get a /dev/<devname> created by udev will_berry70 Linux - General 1 12-07-2009 09:32 AM
Specifying device to route traffic through; Or how to bind device to eth0 pgb205 Linux - Networking 1 07-29-2008 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration