Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel module boot order [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
plasmid
n00b
n00b


Joined: 02 May 2005
Posts: 44

PostPosted: Mon Apr 16, 2018 12:43 am    Post subject: kernel module boot order [SOLVED] Reply with quote

I am trying to set up pci passthrough on my computer which has two identical video cards (a pain in the butt mistake). Currently, at boot, the amdgpu module gets assigned to both video cards. I am trying to figure out a way (by reading the tutorial on Archlinux) to load the vfio_pci driver to the non boot video card. I have a script which marks that card with a driver_overide to vfio_pci, but I either need to somehow unload the amdgpu driver so I can load the vfio driver, or I need to run the script somehow during the boot before either driver loads, then load the vfio_pci driver prior to loading the amdgpu drive. Any clue how to pull this off?

Last edited by plasmid on Sat Apr 21, 2018 9:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Apr 16, 2018 2:21 am    Post subject: Reply with quote

plasmid ...

blacklist both drivers via /etc/modprobe.d/blacklist.conf, then in /etc/local.d/ have a script (ie, amdgpu.start) that does the driver_overide to vfio_pci, and loads amdgpu once that is completed.

HTH & best ... khay
Back to top
View user's profile Send private message
plasmid
n00b
n00b


Joined: 02 May 2005
Posts: 44

PostPosted: Mon Apr 16, 2018 3:24 am    Post subject: Reply with quote

Makes sense, I will give it a try. Thanks!
Back to top
View user's profile Send private message
plasmid
n00b
n00b


Joined: 02 May 2005
Posts: 44

PostPosted: Sat Apr 21, 2018 9:44 pm    Post subject: Reply with quote

worked great!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum