You are not logged in.

#1 2016-09-05 20:03:00

razing32
Member
Registered: 2016-07-09
Posts: 33

[SOLVED]VGA passthrough - Iommu issue

Hi,

I am having issues with PCI passthrough.
I am following the wiki but seem to have hit a bump in the road as dmseg keeps telling me iommu is not enabled.
If i did not mess up my research both my motherboard and CPU should support this :

vendor_id    : AuthenticAMD
model name    : AMD FX(tm)-8350 Eight-Core Processor
http://www.amd.com/en-us/products/proce … esktop/fx#

Asus     M5A99X EVO R2.0    
https://en.wikipedia.org/wiki/List_of_I … dware#CPUs
(it actually has an option in BIOS to enable IOMMU so i am certain it is supported unless i am missing a bug or issue)

I am passing the iommu paramter via grub to the kernel :
[alin@localhost ~]$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-linux root=UUID=7d54ccd6-a814-473e-afc0-cb21ee742839 rw quiet amd_iommu=on

However , when i check dmseg :

[alin@localhost ~]$  dmesg|grep -e DMAR -e IOMMU
[    1.702068] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40
[    3.253676] AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>
[    3.253679] AMD IOMMUv2 functionality not available on this system
[    3.263436] vboxpci: IOMMU found

Any thoughts ?

UPDATE BIOS Screenshot : http://imgur.com/a/pKfD3

Last edited by razing32 (2016-09-11 07:07:34)

Offline

#2 2016-09-09 14:49:39

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

Re: [SOLVED]VGA passthrough - Iommu issue

For x86 there are 2 virtualisation methods that use IOMMU, but only the latest one supports pci passthrough.

Check lscpu output for your system .

if it shows

Virtualization:        AMD-V

you have the older one (newer one is called AMD-Vi ).


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

#3 2016-09-09 18:47:11

razing32
Member
Registered: 2016-07-09
Posts: 33

Re: [SOLVED]VGA passthrough - Iommu issue

Lone_Wolf wrote:

For x86 there are 2 virtualisation methods that use IOMMU, but only the latest one supports pci passthrough.

Check lscpu output for your system .

if it shows

Virtualization:        AMD-V

you have the older one (newer one is called AMD-Vi ).

Well , you hit the nail on the head :
Virtualization:        AMD-V

EDIT
What about the earlier message ?
[    1.702068] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40

Wouldn;t that mean it IS there ?

I am confused sad

Last edited by razing32 (2016-09-09 19:57:16)

Offline

#4 2016-09-10 14:10:43

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

Re: [SOLVED]VGA passthrough - Iommu issue

I did some searching and your HW should indeed support AMD-Vi / vga passthrough .

For a system to have working AMD-Vi support , motherboard, chipset and processor need to support it on hw level, but also need to be configured correctly .

Are you running latest firmware revision for your Motherboard ?
if not, update .

Once you're running latest firmware, goto advanced >CPU Configuration and set SVM (Secure Virtual Mode) to Enabled .

reboot, check lscpu again and post full dmesg.


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

#5 2016-09-11 07:05:47

razing32
Member
Registered: 2016-07-09
Posts: 33

Re: [SOLVED]VGA passthrough - Iommu issue

It worked.
It started up , and once I installed the proprietary grpahic drivers , the second screen came to life smile

Still have to tweak the CPU per the wiki and pass a mouse and keyboard to it , but it does work.

Offline

Board footer

Powered by FluxBB