Issues with GPU Passthrough...

Kilberz

New Member
May 15, 2023
3
0
1
Hey Everyone,

Setup and using proxmox fine, decided to add a GPU to the system so I installed it and followed the instructions as per the Wiki.

When I do...

Code:
lspci -v

I don't see the card at all....

Code:
00:00.0 Host bridge: Intel Corporation Comet Lake-S 6c Host Bridge/DRAM Controller (rev 03)
        DeviceName: Onboard - Other
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=10 <?>
        Kernel driver in use: skl_uncore

00:02.0 VGA compatible controller: Intel Corporation CometLake-S GT2 [UHD Graphics 630] (rev 03) (prog-if 00 [VGA controller])
        DeviceName: Onboard - Video
        Subsystem: Micro-Star International Co., Ltd. [MSI] UHD Graphics 630
        Flags: bus master, fast devsel, latency 0, IRQ 156
        Memory at a0000000 (64-bit, non-prefetchable) [size=16M]
        Memory at 90000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 4000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [100] Process Address Space ID (PASID)
        Capabilities: [200] Address Translation Service (ATS)
        Capabilities: [300] Page Request Interface (PRI)
        Kernel driver in use: i915
        Kernel modules: i915

00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
        DeviceName: Onboard - Other
        Subsystem: Micro-Star International Co., Ltd. [MSI] Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
        Flags: fast devsel, IRQ 255
        Memory at a131b000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [dc] Power Management version 2
        Capabilities: [f0] PCI Advanced Features

00:14.0 USB controller: Intel Corporation Device 43ed (rev 11) (prog-if 30 [XHCI])
        DeviceName: Onboard - Other
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Flags: bus master, medium devsel, latency 0, IRQ 127
        Memory at a1300000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [70] Power Management version 2
        Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
        Capabilities: [90] Vendor Specific Information: Len=14 <?>
        Capabilities: [b0] Vendor Specific Information: Len=00 <?>
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

00:14.2 RAM memory: Intel Corporation Device 43ef (rev 11)
        DeviceName: Onboard - Other
        Flags: fast devsel
        Memory at a1310000 (64-bit, non-prefetchable) [disabled] [size=16K]
        Memory at a131a000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: [80] Power Management version 3

00:16.0 Communication controller: Intel Corporation Device 43e0 (rev 11)
        DeviceName: Onboard - Other
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Flags: bus master, fast devsel, latency 0, IRQ 141
        Memory at a1319000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: [50] Power Management version 3
        Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [a4] Vendor Specific Information: Len=14 <?>
        Kernel driver in use: mei_me
        Kernel modules: mei_me

00:17.0 SATA controller: Intel Corporation Device 43d2 (rev 11) (prog-if 01 [AHCI 1.0])
        DeviceName: Onboard - SATA
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 125
        Memory at a1314000 (32-bit, non-prefetchable) [size=8K]
        Memory at a1318000 (32-bit, non-prefetchable) [size=256]
        I/O ports at 4090 [size=8]
        I/O ports at 4080 [size=4]
        I/O ports at 4060 [size=32]
        Memory at a1317000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [70] Power Management version 3
        Capabilities: [a8] SATA HBA v1.0
        Kernel driver in use: ahci
        Kernel modules: ahci

00:1c.0 PCI bridge: Intel Corporation Device 43bc (rev 11) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 122
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00003000-00003fff [size=4K]
        Memory behind bridge: a1200000-a12fffff [size=1M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Capabilities: [a0] Power Management version 3
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [220] Access Control Services
        Capabilities: [150] Precision Time Measurement
        Capabilities: [a30] Secondary PCI Express
        Capabilities: [a00] Downstream Port Containment
        Kernel driver in use: pcieport

00:1c.5 PCI bridge: Intel Corporation Device 43bd (rev 11) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 123
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: a1100000-a11fffff [size=1M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Capabilities: [a0] Power Management version 3
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [220] Access Control Services
        Capabilities: [150] Precision Time Measurement
        Capabilities: [a30] Secondary PCI Express
        Capabilities: [a00] Downstream Port Containment
        Kernel driver in use: pcieport

00:1d.0 PCI bridge: Intel Corporation Device 43b0 (rev 11) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 124
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: a1000000-a10fffff [size=1M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Capabilities: [a0] Power Management version 3
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [220] Access Control Services
        Capabilities: [150] Precision Time Measurement
        Capabilities: [a30] Secondary PCI Express
        Capabilities: [a00] Downstream Port Containment
        Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Device 4387 (rev 11)
        DeviceName: Onboard - Other
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Flags: bus master, fast devsel, latency 0

00:1f.4 SMBus: Intel Corporation Device 43a3 (rev 11)
        DeviceName: Onboard - Other
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Flags: medium devsel, IRQ 16
        Memory at a1316000 (64-bit, non-prefetchable) [size=256]
        I/O ports at efa0 [size=32]
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801

00:1f.5 Serial bus controller [0c80]: Intel Corporation Device 43a4 (rev 11)
        DeviceName: Onboard - Other
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7d19
        Flags: fast devsel
        Memory at 8f800000 (32-bit, non-prefetchable) [size=4K]

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 04)
        Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8125 2.5GbE Controller
        Flags: bus master, fast devsel, latency 0, IRQ 16
        I/O ports at 3000 [size=256]
        Memory at a1200000 (64-bit, non-prefetchable) [size=64K]
        Memory at a1210000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [b0] MSI-X: Enable+ Count=32 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [148] Virtual Channel
        Capabilities: [168] Device Serial Number 01-00-00-00-68-4c-e0-00
        Capabilities: [178] Transaction Processing Hints
        Capabilities: [204] Latency Tolerance Reporting
        Capabilities: [20c] L1 PM Substates
        Capabilities: [21c] Vendor Specific Information: ID=0002 Rev=4 Len=100 <?>
        Kernel driver in use: r8169
        Kernel modules: r8169

02:00.0 Network controller: Intel Corporation Device 2725 (rev 1a)
        Subsystem: Intel Corporation Device 0024
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at a1100000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [40] Express Endpoint, MSI 00
        Capabilities: [80] MSI-X: Enable+ Count=16 Masked-
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [14c] Latency Tolerance Reporting
        Capabilities: [154] L1 PM Substates
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

03:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 (prog-if 02 [NVM Express])
        Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
        Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0
        Memory at a1000000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [b0] MSI-X: Enable+ Count=33 Masked-
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-00
        Capabilities: [158] Power Budgeting <?>
        Capabilities: [168] Secondary PCI Express
        Capabilities: [188] Latency Tolerance Reporting
        Capabilities: [190] L1 PM Substates
        Kernel driver in use: nvme
        Kernel modules: nvme

This is my grub....
Code:
GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=pt amd_iommu=on video=efifb:off"
GRUB_CMDLINE_LINUX=""
GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT

I've tried with and without iommu=pt video=efifb:off

Card is a

SAPPHIRE NITRO AMD RADEON RX 470​

 
Code:
GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=pt amd_iommu=on video=efifb:off"
GRUB_CMDLINE_LINUX=""
GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
amd_iommu=on does nothing, not even on an AMD system (as it is enabled by default) but definately not on your Intel system. Use intel_iommu=on for and Intel system according to the Proxmox manual. video=efifb:off does nothing for recent Proxmox versions and you need this work-around if you want to passthrough the boot GPU, which you don't appear to do. iommu=pt probably does nothing for your system.

None of the above has anything to do with the RX470 not showing up with lspci. Maybe the PCIe slot is disabled, which happens sometimes because a M.2 slot is used and they share the PCIe lanes. Can you provide a link to your motherboard manual? Or you did not plugin the PCIe power cables for the GPU. Or the GPU or the PCIe slot is broken.
 
amd_iommu=on does nothing, not even on an AMD system (as it is enabled by default) but definately not on your Intel system. Use intel_iommu=on for and Intel system according to the Proxmox manual. video=efifb:off does nothing for recent Proxmox versions and you need this work-around if you want to passthrough the boot GPU, which you don't appear to do. iommu=pt probably does nothing for your system.

None of the above has anything to do with the RX470 not showing up with lspci. Maybe the PCIe slot is disabled, which happens sometimes because a M.2 slot is used and they share the PCIe lanes. Can you provide a link to your motherboard manual? Or you did not plugin the PCIe power cables for the GPU. Or the GPU or the PCIe slot is broken.
Thanks for the reply...

My manual is here:
Code:
https://download.msi.com/archive/mnu_exe/mb/MPGB560IGAMINGEDGEWIFI100x150.pdf

Power to the GPU is on and fans spin, currently have BIOS set to boot using onboard graphics to keep it free for proxmox to use.

I am using an M.2. so will check this config next but settings all set to Auto from memory.
 
Update : Does not seem to be anything to do with PCIe slot - no option to disable / enable it.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!