Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 60

Thread: Hardware help with PCIe-Passthrough/QEMU/KVM

  1. #11
    Join Date
    Feb 2017
    Beans
    22

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    Quote Originally Posted by ODTech View Post
    Then your motherboard does not support AMD-VI or it has been disabled. Reboot and check your bios. It's been ages since i used AMD so not sure where to look but it shouldn't be too hard to find.
    Got it. Forgot to save before. Got this:
    Code:
    administrator@administrator-desktop:~$ dmesg | grep AMD-Vi[    1.346468] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40
    [    1.346469] AMD-Vi: Interrupt remapping enabled
    [    1.346579] AMD-Vi: Lazy IO/TLB flushing enabled
    
    
    /sys/kernel/iommu_groups/0/devices/0000:00:00.0
    /sys/kernel/iommu_groups/1/devices/0000:00:04.0
    /sys/kernel/iommu_groups/2/devices/0000:00:09.0
    /sys/kernel/iommu_groups/3/devices/0000:00:11.0
    /sys/kernel/iommu_groups/4/devices/0000:00:12.0
    /sys/kernel/iommu_groups/4/devices/0000:00:12.2
    /sys/kernel/iommu_groups/5/devices/0000:00:13.0
    /sys/kernel/iommu_groups/5/devices/0000:00:13.2
    /sys/kernel/iommu_groups/6/devices/0000:00:14.0
    /sys/kernel/iommu_groups/7/devices/0000:00:14.1
    /sys/kernel/iommu_groups/8/devices/0000:00:14.2
    /sys/kernel/iommu_groups/9/devices/0000:00:14.3
    /sys/kernel/iommu_groups/10/devices/0000:00:14.4
    /sys/kernel/iommu_groups/11/devices/0000:00:14.5
    /sys/kernel/iommu_groups/12/devices/0000:00:15.0
    /sys/kernel/iommu_groups/12/devices/0000:00:15.2
    /sys/kernel/iommu_groups/12/devices/0000:00:15.3
    /sys/kernel/iommu_groups/12/devices/0000:05:00.0
    /sys/kernel/iommu_groups/12/devices/0000:06:00.0
    /sys/kernel/iommu_groups/13/devices/0000:00:16.0
    /sys/kernel/iommu_groups/13/devices/0000:00:16.2
    /sys/kernel/iommu_groups/14/devices/0000:01:00.0
    /sys/kernel/iommu_groups/14/devices/0000:01:00.1
    /sys/kernel/iommu_groups/15/devices/0000:02:00.0
    So it seems my system can work - a 1050 or 1050 ti will work with this, correct?
    Last edited by jeremy31; February 5th, 2017 at 12:48 AM.

  2. #12
    Join Date
    May 2008
    Beans
    65

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    Quote Originally Posted by pseverino View Post
    So it seems my system can work - a 1050 or 1050 ti will work with this, correct?
    Yes it will work it seems.

    Do this command and post the result please. We can use it to cross reference the iommu groups and see if you have ideal grouping or if you have to patch the kernel.

    Code:
    lspci -nn

  3. #13
    Join Date
    Feb 2017
    Beans
    22

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    Quote Originally Posted by ODTech View Post
    Yes it will work it seems.

    Do this command and post the result please. We can use it to cross reference the iommu groups and see if you have ideal grouping or if you have to patch the kernel.

    Code:
    lspci -nn
    Code:
    administrator@administrator-desktop:~$ lspci -nn00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B) [1002:5a14] (rev 02)
    00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD/ATI] RD990 I/O Memory Management Unit (IOMMU) [1002:5a23]
    00:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port D) [1002:5a18]
    00:09.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port H) [1002:5a1c]
    00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] [1002:4391] (rev 40)
    00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
    00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
    00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
    00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
    00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller [1002:4385] (rev 42)
    00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller [1002:439c] (rev 40)
    00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
    00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d] (rev 40)
    00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge [1002:4384] (rev 40)
    00:14.5 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1002:4399]
    00:15.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0) [1002:43a0]
    00:15.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SB900 PCI to PCI bridge (PCIE port 2) [1002:43a2]
    00:15.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SB900 PCI to PCI bridge (PCIE port 3) [1002:43a3]
    00:16.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
    00:16.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
    00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0 [1022:1600]
    00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1 [1022:1601]
    00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2 [1022:1602]
    00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3 [1022:1603]
    00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4 [1022:1604]
    00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5 [1022:1605]
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1)
    01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
    02:00.0 USB controller [0c03]: ASMedia Technology Inc. Device [1b21:1343]
    05:00.0 USB controller [0c03]: Etron Technology, Inc. EJ188/EJ198 USB 3.0 Host Controller [1b6f:7052]
    06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 11)

  4. #14
    Join Date
    May 2008
    Beans
    65

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    Quote Originally Posted by pseverino View Post
    Code:
    administrator@administrator-desktop:~$ lspci -nn00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B) [1002:5a14] (rev 02)
    00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD/ATI] RD990 I/O Memory Management Unit (IOMMU) [1002:5a23]
    00:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port D) [1002:5a18]
    00:09.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port H) [1002:5a1c]
    00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] [1002:4391] (rev 40)
    00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
    00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
    00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
    00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
    00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller [1002:4385] (rev 42)
    00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller [1002:439c] (rev 40)
    00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
    00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d] (rev 40)
    00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge [1002:4384] (rev 40)
    00:14.5 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1002:4399]
    00:15.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0) [1002:43a0]
    00:15.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SB900 PCI to PCI bridge (PCIE port 2) [1002:43a2]
    00:15.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SB900 PCI to PCI bridge (PCIE port 3) [1002:43a3]
    00:16.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
    00:16.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
    00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0 [1022:1600]
    00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1 [1022:1601]
    00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2 [1022:1602]
    00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3 [1022:1603]
    00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4 [1022:1604]
    00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5 [1022:1605]
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1)
    01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
    02:00.0 USB controller [0c03]: ASMedia Technology Inc. Device [1b21:1343]
    05:00.0 USB controller [0c03]: Etron Technology, Inc. EJ188/EJ198 USB 3.0 Host Controller [1b6f:7052]
    06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 11)
    That's perfect. Your gpu is alone in group 14 so there shouldn't be any issues. You could try to setup through putty like i descibed earlier to confirm in practice before you get the second gpu but i doubt you will have issues.
    I'd say you can go ahead and get the second card.

  5. #15
    Join Date
    Feb 2017
    Beans
    22

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    Quote Originally Posted by ODTech View Post
    That's perfect. Your gpu is alone in group 14 so there shouldn't be any issues. You could try to setup through putty like i descibed earlier to confirm in practice before you get the second gpu but i doubt you will have issues.
    I'd say you can go ahead and get the second card.
    Just went out and bought a 1050. Love living 2 blocks away from a microcenter. Going to plug it in now and see what happens.

  6. #16
    Join Date
    May 2008
    Beans
    65

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    Quote Originally Posted by pseverino View Post
    Just went out and bought a 1050. Love living 2 blocks away from a microcenter. Going to plug it in now and see what happens.
    Nice

    I forgot to mention that you will probably need a second keyboard and mouse as the host can't use what the guest is using and vice versa. So you might want to head back to the shop.

    https://forums.linuxmint.com/viewtopic.php?t=212692

    Not sure if it is allowed to link to other forums but that's the most complete guide with all the pitfalls of installation.
    You can start from part 2. The first part is already done.
    Last edited by howefield; February 5th, 2017 at 12:38 AM.

  7. #17
    Join Date
    Feb 2017
    Beans
    22

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    Quote Originally Posted by ODTech View Post
    Nice

    I forgot to mention that you will probably need a second keyboard and mouse as the host can't use what the guest is using and vice versa. So you might want to head back to the shop.
    I should have something laying around

    Mouse and keyboard isn't an issue, however my larger display via HDMI is now not recieving a signal, I haven't even started install qemu

    Before I go any further I forgot to mention I now only have one display detected by ubuntu......the small one.

    Before I start installing qemu, anyone abe to help me out with that fact that my tv/main display is no longer detected by ubuntu?

    My main display is no longer detected by Ubuntu, on either card. It says no signal.
    Last edited by howefield; February 5th, 2017 at 12:39 AM. Reason: posts combined.

  8. #18
    Join Date
    May 2008
    Beans
    65

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    Did you blaclisted the nouveau driver yet?

    Quote Originally Posted by pseverino View Post
    I should have something laying around

    Mouse and keyboard isn't an issue, however my larger display via HDMI is now not recieving a signal, I haven't even started install qemu

    Before I go any further I forgot to mention I now only have one display detected by ubuntu......the small one.

    Before I start installing qemu, anyone abe to help me out with that fact that my tv/main display is no longer detected by ubuntu?

    My main display is no longer detected by Ubuntu, on either card. It says no signal.
    The forum went a bit wonky there for a while, some posts seems to have been rolled back.
    You mentioned the primary dispaly dying shortly after turning on iommu.

    Use dmesg to check for errors
    Code:
    dmesg | grep vga
    or
    Code:
    dmesg | grep nouveau
    Try turning off iommu to see if that is the culprit. If it does fix the HDMI issue then i'd suggest updating the gpu bios, maybe it helps.
    Code:
    sudo nano /etc/default/grub
    remove "amd_iommu=on"
    save and exit
    Code:
    sudo update-grub
    reboot

    Techpowerup hosts nvflash tools which has a linux version too so grab that and a updated bios from asus. Just make double sure to get the right bios and read the nvlash notes on how to update.
    HTML Code:
    https://www.techpowerup.com/download/nvidia-nvflash/
    Last edited by howefield; February 5th, 2017 at 01:08 AM.

  9. #19
    Join Date
    Feb 2017
    Beans
    22

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    Quote Originally Posted by ODTech View Post
    Did you blaclisted the nouveau driver yet?
    Not sure what that means. I tried installing nvidia's driver, forced my pc in low-graphics mode. Ran sudo apt-get purge nivida*, back to the same problem. HDMI works with my 1050 (not 960) if I boot it with no DVI plugged in, but the resolution is messed up, can't be changed, and shows up as "built in display". I try booting ubuntu 16.04 lts from usb, I get an error that says "noeveua failed to load fecs_inst"

    Quote Originally Posted by ODTech View Post
    The forum went a bit wonky there for a while, some posts seems to have been rolled back.
    You mentioned the primary dispaly dying shortly after turning on iommu.

    Use dmesg to check for errors
    Code:
    dmesg | grep vga
    or
    Code:
    dmesg | grep nouveau
    Try turning off iommu to see if that is the culprit. If it does fix the HDMI issue then i'd suggest updating the gpu bios, maybe it helps.
    Code:
    sudo nano /etc/default/grub
    remove "amd_iommu=on"
    save and exit
    Code:
    sudo update-grub
    reboot

    Techpowerup hosts nvflash tools which has a linux version too so grab that and a updated bios from asus. Just make double sure to get the right bios and read the nvlash notes on how to update.
    HTML Code:
    https://www.techpowerup.com/download/nvidia-nvflash/
    Code:
     dmesg | grep vga
    returns
    Code:
    [    0.351603] vgaarb: setting as boot device: PCI:0000:01:00.0
    [    0.351605] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none
    [    0.351608] vgaarb: device added: PCI:0000:02:00.0,decodes=io+mem,owns=none,locks=none
    [    0.351610] vgaarb: loaded
    [    0.351611] vgaarb: bridge control possible 0000:02:00.0
    [    0.351612] vgaarb: bridge control possible 0000:01:00.0
    [   37.572086] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
    [   37.572195] snd_hda_intel 0000:02:00.1: Handle vga_switcheroo audio client
    Quote Originally Posted by ODTech View Post
    Did you blaclisted the nouveau driver yet?



    The forum went a bit wonky there for a while, some posts seems to have been rolled back.
    You mentioned the primary dispaly dying shortly after turning on iommu.

    Use dmesg to check for errors
    Code:
    dmesg | grep vga
    or
    Code:
    dmesg | grep nouveau
    Try turning off iommu to see if that is the culprit. If it does fix the HDMI issue then i'd suggest updating the gpu bios, maybe it helps.
    Code:
    sudo nano /etc/default/grub
    remove "amd_iommu=on"
    save and exit
    Code:
    sudo update-grub
    reboot

    Techpowerup hosts nvflash tools which has a linux version too so grab that and a updated bios from asus. Just make double sure to get the right bios and read the nvlash notes on how to update.
    HTML Code:
    https://www.techpowerup.com/download/nvidia-nvflash/
    Disbaled iommu in grub and uefi. no difference. Display still shows up as "built in display". Hdmi works with an improper, unchangeable resolution with the same same if I boot with it in my 1050 (not 960) with no dvi anywhere. Dvi shows up as main display from either card.

    i downloaded nvflash for linux but there are no notes, just an executable in a zip.....

    Seems I can't edit my replies. Anyways, going to try nvflash from my windows installation on my other hdd. In windows, I have my dvi display and 2 hdmis to my tv - I effectively have 3 displays with no issue. Figuring out how to update my bios now.
    Last edited by howefield; February 10th, 2017 at 05:12 PM. Reason: posts combined.

  10. #20
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Hardware help with PCIe-Passthrough/QEMU/KVM

    The one's you can not edit are probably the duplicate post of your's that are in the jail that were created while the forum was acting up.

Page 2 of 6 FirstFirst 1234 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •