Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

GPU Passthrough - IOMMU not working for me - on SkyLake 16.04 AsRock

$
0
0
I read this thread on GPU Passthrough working on Ubuntu 16.04:
http://ubuntuforums.org/showthread.php?t=2320369

And I read the most relevant articles,
including those from
vfio.blogspot.co.uk and
www.pugetsystems.com/labs/articles/Multiheaded-NVIDIA-Gaming-using-Ubuntu-14-04-KVM-585/


*** OS:

(K)Ubuntu 16.04.0 booting from UEFI


***HARDWARE:

i7 6700-k (which supports VT-D)
motherboard AsRock ( Fatal1ty Z170 Gaming ITX ac latest Uefi Version 2.0) which has got both VT-D and Intel Virtualization "enabled".
GTX 970 destined to GPU passthrough with qemu and KVM
intel integrated graphics destinate to the host. (bios primary display setting = "integrated", shared memory="1024MB" )


***PROBLEM:
Code:

dmesg | grep -e DMAR -e IOMMU
results in:

Code:

[    0.000000] DMAR: IOMMU enabled
however typing:

Code:

find /sys/kernel/iommu_groups/ -type l
results in:
no output at all



*** SETTINGS:

I tried with each of these:
Code:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash  acpi=off    intel_iommu=on "
Code:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash  acpi=off    intel_iommu=on intel_iommu=igfx_off"
Code:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash  acpi=off    intel_iommu=on intel_iommu=igfx_off  pcie_acs_override=downstream"
always followed by
Code:

sudo update-grub
and reboot, of course.

I need acpi=off in my system, otherwise dmesg shows a ton of warnings that keep growing.
Those warning are not likely to be related to the problem with IOMMU

I also have got the following settings:

Code:

sudo kate /etc/modules
Code:

  pci_stub
  vfio
  vfio_iommu_type1
  vfio_pci
  kvm
  kvm_intel

On a separate but related topic, I tried to blacklist the GTX 970. I tried to assign vfio-pci directly (as it should have worked since Kernel 4.1), but it did not work. So I used pci-stub. I tried to blacklist the nvidia drivers explicitly, but I still get "Kernel modules: nvidiafb, nouveau":

Code:

sudo lspci -s 01: -v
gives:
Code:

01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: NVIDIA Corporation GM204 [GeForce GTX 970]
        Flags: fast devsel, IRQ 16
        Memory at de000000 (32-bit, non-prefetchable) [disabled] [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [disabled] [size=256M]
        Memory at d0000000 (64-bit, prefetchable) [disabled] [size=32M]
        I/O ports at e000 [disabled] [size=128]
        Expansion ROM at df000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Legacy Endpoint, MSI 00
        Kernel driver in use: pci-stub
        Kernel modules: nvidiafb, nouveau

01:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1)
        Subsystem: NVIDIA Corporation GM204 High Definition Audio Controller
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at df080000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Kernel driver in use: pci-stub
        Kernel modules: snd_hda_intel


Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>