Passing GPU through VM - running out of physical options?

For it to work, the GPU and the audio device needs to be in a discreet IOMMU group.

You can check by running this script:

#!/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do
  n=${d#*/iommu_groups/*}; n=${n%%/*}
  printf 'IOMMU Group %s ' "$n"
  lspci -nns "${d##*/}"
done

Save this script on your truenas as IOMMU.sh
Then run it with

bash IOMMU.sh