Results 1 to 2 of 2
  1. #1
    New ROGer Array
    Join Date
    Jun 2019
    Reputation
    13
    Posts
    2

    [SOLVED] AMD Vega 56/64 Passthrough on Threadripper X399 Motherboards

    Hi,

    I have recently been trying to do AMD VEGA GPU passthrough with a Linux Host and KVM/Virt-Manager/QEMU.
    The VM was always crashing.
    I narrowed down the problem to the passthrough of the GPU. If I passed through other devices, it was fine.

    I have finally managed to solve it.
    I appears that QEMU does not yet support PCI BAR resizing. The amdgpu driver in the guest tries to resize the bar from 256M to 8G and then tries to use it and you get a protection fault/crash.

    There is now a work around that works, that has reached qemu git master. Eventually it will be in qemu releases.
    So, no crashes any more.
    Tested with Linux kernel 5.1.11 on the host.

    The QEMU change that fixes the problem is:
    https://github.com/qemu/qemu/commit/...6b87217c876e32
    Description: vfio/pci: Hide Resizable BAR capability

    What this does is hide the resizable capability of the BAR, so amdgpu driver does not try to re-size it.
    Also tested with a Windows guest.
    3D Games in the guest work fine and are very fast.

    The system is very stable.

  2. #2
    ROG Member Array zasyadko PC Specs
    zasyadko PC Specs
    MotherboardROG ZENITH EXTREME
    ProcessorAMD THREADRIPPER 1950X
    Memory (part number)Corsair Vengeance LPX (CMK64GX4M4A2400C14) 4x16GB Kit
    Graphics Card #1MSI Radeon RX Vega 64 WAVE 8G
    Graphics Card #2MSI Radeon RX Vega 64 WAVE 8G
    Graphics Card #3MSI Radeon RX Vega 64 WAVE 8G
    Graphics Card #4MSI Radeon RX Vega 64 WAVE 8G
    MonitorSamsung 55" UHD
    CaseThermaltake Core P7
    Power SupplyEnermax Platimax 1700W
    Headset SONY MDR-XB950N1
    OS Windows 10, Ubuntu 16.04

    Join Date
    Dec 2017
    Reputation
    10
    Posts
    5

    Hello! Please tell me which distribution do you use? I just can’t get to work, I have Asus zenith extreme and 4 vega 64. Please share your tutorial on setting up virtual machines, thanks.

Posting Permissions

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