So I followed the guide and didn’t seem to get hung up anywhere.
However, after rebooting, the VFIO drivers aren’t bound to the target GPU.
I noticed the “sanity check” command doesn’t return exactly the same output that you showed and I’m wondering if that might be the issue.
sudo lsinitrd | grep vfio
returns the following output…
-rwxr-xr-x 1 root root 171 Oct 13 20:00 usr/bin/vfio-pci-override.sh
drwxr-xr-x 2 root root 0 Oct 13 20:00 usr/lib/modules/6.17.10-300.fc43.x86_64/kernel/drivers/vfio
drwxr-xr-x 2 root root 0 Oct 13 20:00 usr/lib/modules/6.17.10-300.fc43.x86_64/kernel/drivers/vfio/pci
-rw-r–r-- 1 root root 54860 Oct 13 20:00 usr/lib/modules/6.17.10-300.fc43.x86_64/kernel/drivers/vfio/pci/vfio-pci-core.ko.xz
-rw-r–r-- 1 root root 18824 Oct 13 20:00 usr/lib/modules/6.17.10-300.fc43.x86_64/kernel/drivers/vfio/pci/vfio-pci.ko.xz
-rw-r–r-- 1 root root 32736 Oct 13 20:00 usr/lib/modules/6.17.10-300.fc43.x86_64/kernel/drivers/vfio/vfio_iommu_type1.ko.xz
-rw-r–r-- 1 root root 44716 Oct 13 20:00 usr/lib/modules/6.17.10-300.fc43.x86_64/kernel/drivers/vfio/vfio.ko.xz
rd.driver.pre=vfio
rd.driver.pre=vfio_pci
rd.driver.pre=vfio_iommu_type1
I’m missing etc/modprobe.d/vfio.conf but I don’t know what belongs in that .conf file to make it myself and I don’t see it listed as a step in the guide. I’ll go through the steps I followed and my results for each one below.
Made and ran the IOMMU bash script. Appeared successful but no specific output after completion.
sudo mesg | grep -i -e IOMMU | grep enabled Seemed to work but no specific output.
sudo dnf reinstall kernel kernal reinstalled but I got an error on the “grub2-editenv list”. I didn’t know if it was specifically important so I moved on.
Sudo dnf install @virtualization installed successfully.
Added amd_iommu=on rd.driver.pre=vfio-pci to GRUB_CMDLINE_LINUX. Successful
lspci -vnn and found my card pci info.
26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c5) (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd Device [1458:2331]
Flags: bus master, fast devsel, latency 0, IRQ 97, IOMMU group 26
Memory at 7800000000 (64-bit, prefetchable) [size=16G]
Memory at 7c00000000 (64-bit, prefetchable) [size=256M]
I/O ports at e000 [size=256]
Memory at fc000000 (32-bit, non-prefetchable) [size=1M]
Expansion ROM at fc100000 [disabled] [size=128K]
Capabilities:
Kernel driver in use: amdgpu
Kernel modules: amdgpu
26:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller [1002:ab28] (prog-if 00 [HDA compatible])
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller [1002:ab28]
Flags: bus master, fast devsel, latency 0, IRQ 119, IOMMU group 27
Memory at fc120000 (32-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
Made /usr/sbin/vfio-pci-override.sh with the following contents…
#!/bin/sh
PREREQS=“”
DEVS=“0000:26:00.0 0000:26:00.1”
for DEV in $DEVS; do
echo “vfio-pci” > /sys/bus/pci/devices/$DEV/driver_override
done
modprobe -i vfio-pci
mkdir /usr/lib/dracut/modules.d/20vfio Successful
Made /usr/lib/dracut/modules.d/module-setup.sh with the following contents… DIDN’T RUN IT, BUT ASSUMED I NEEDED TO MAKE IT EXECUTABLE AS WELL ALTHOUGH THE GUIDE DIDN’T REQUEST IT.
#!/usr/bin/bash
check() {
return 0
}
depends() {
return 0
}
install() {
declare moddir=${moddir}
inst_hook pre-udev 00 “$moddir/vfio-pci-override.sh”
}
ln -s /usr/sbin/vfio-pci-override.sh /usr/lib/dracut/modules.d/30vfio/vfio-pci-override.sh Successful
/etc/dracut.conf.d/vfio.conf with the following contents…
dd_dracutmodules+=" vfio "
force_drivers+=" vfio vfio-pci vfio_iommu_type1 "
install_items=“/usr/sbin/vfio-pci-override.sh /usr/bin/find /usr/bin/dirname”
dracut -fv Successful
sudo lsinitrd | grep vfio etc/modprobe.d/vfio.conf is missing from the output for some reason. Not sure if it needs to be manually created or just already exist from the VFIO install.
I tried to give as clear of a pictures as possible. Sorry if this is confusing. I can change it if so.