View previous topic :: View next topic |
Author |
Message |
plasmid n00b
Joined: 02 May 2005 Posts: 48
|
Posted: Mon Apr 16, 2018 12:43 am Post subject: kernel module boot order [SOLVED] |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Apr 16, 2018 2:21 am Post subject: |
|
|
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 |
|
|
plasmid n00b
Joined: 02 May 2005 Posts: 48
|
Posted: Mon Apr 16, 2018 3:24 am Post subject: |
|
|
Makes sense, I will give it a try. Thanks! |
|
Back to top |
|
|
plasmid n00b
Joined: 02 May 2005 Posts: 48
|
Posted: Sat Apr 21, 2018 9:44 pm Post subject: |
|
|
worked great! |
|
Back to top |
|
|
|