You are not logged in.

#1 Yesterday 09:08:28

kfsorh
Member
Registered: 2021-06-16
Posts: 4

Trying to load VFIO driver via modprobe on boot does not work

I'm trying to bind my second GPU to vfio-pci but first I need to load the VFIO module. I tried to do it via modprobe as instructed in this wiki article (section 3.2.1):

https://wiki.archlinux.org/title/PCI_pa … h_via_OVMF

I created /etc/modprobe.d/vfio.conf with these contents:

softdep drm pre: vfio-pci

However, it seems that this does nothing. After rebooting and doing "dmesg | grep -i vfio" or "lsmod | grep -i vfio" I get no results.

I also tried these alternatives in the vfio.conf file:

softdep amdgpu pre: vfio-pci
softdep drm pre: vfio vfio-pci vfio_iommu_type1
softdep amdgpu pre: vfio vfio-pci vfio_iommu_type1

But none of these seems to work.

Both GPUs are AMD (Vega 56 and R9 Nano). Kernel version is: 7.2.15-hardened1-2-hardened

Is this method even supposed to work anymore? Should I just try the initramfs method instead?

Offline

#2 Yesterday 10:27:29

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,567

Re: Trying to load VFIO driver via modprobe on boot does not work

Modprobe.d is normally processed AFTER the initramfs stage.

If kms is among your mkinicpio hooks, the amdgpu kernel module will have been loaded already in the initramfs stage.
You probably should remove kms from the hooks and add the vfio and amdgpu modules to the modules= array to ensure they're loaded in the correct order.

Please post your /etc/mkinitcpio.conf file in code tags, see https://bbs.archlinux.org/help.php#bbcode

Last edited by Lone_Wolf (Yesterday 10:28:18)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB