Pt 2, Enabling IOMMU
Prerequisites
Kernel command line
AMD CPUs generally have this enabled already; Intel CPUs need intel_iommu=on added to the kernel command line.
- GRUB: append
intel_iommu=ontoGRUB_CMDLINE_LINUX_DEFAULTin/etc/default/grub, then rungrub-mkconfig -o /boot/grub/grub.cfg. - Limine (CachyOS’s default bootloader): append the same value to
KERNEL_CMDLINE[default]in/etc/default/limine, then runlimine-mkinitcpio.
Firmware (BIOS) settings
Reboot into the BIOS and look for VT-d (Intel) or CBS (AMD), plus an IOMMU option, if not already enabled. See this laptop’s BIOS notes — its BIOS only exposes an “Intel (VMX) Virtualization Technology” toggle, no separate IOMMU option. If your BIOS has no visible IOMMU option either, boot into Linux and check with:
sudo dmesg | grep -i IOMMU
Seeing DMAR: IOMMU enabled confirms it’s active regardless of the missing BIOS toggle.
Checking IOMMU groups
The Arch Wiki provides a script to list IOMMU groups:
#!/bin/bash
shopt -s nullglob
for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*; do
echo -e "\t$(lspci -nns ${d##*/})"
done;
done;A clean group contains only the GPU, its audio controller, and any other physical device that’s expected to travel with it. If unrelated devices share the group, they must be passed through too (or try a different PCI slot for the GPU to land in a different group). On this laptop, the group is clean:
IOMMU Group 15:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GB206M [GeForce RTX 5060 Max-Q / Mobile] [10de:2d19] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GB206 High Definition Audio Controller [10de:22eb] (rev a1)
Next: Pt 3, Isolating the GPU.