I followed this to pass my AMD Ryzen 5 Pro 4650G to a debian guest vm. The iGPU seems to be passed though fine, the guest vm detects it, here is the output from the "lspci -nnk | grep -A 2 VGA" command:
Only think here is that the kernel driver isn't in use, so I checked the dmesg for amdgpu:
I think the important part are the lines:
I've tried googling this but can't find much that is helpful. One issue that I did run into when setting up the passthrough was that I couldn't get vendor-reset to install. With dkms install I get "Error! Arguments <module> and <module-version> are not specified" and with make install I got "Warning: modules_install: missing 'System.map' file. Skipping depmod.". But it was marked as optional in that guide so I moved on without it, but maybe that is the reason I'm getting this error? Another small issue I had was debian didn't have the drive/firmware installed so I had to install it after the OS was installed, which was the xserver-xorg-video-amdgpu and firmware-amd-graphics packages. Just in case that info is helpful at all. Anyone have any ideas?
Code:
00:01.0 VGA compatible controller [0300]: Device [1234:1111] (rev 02)
Subsystem: Red Hat, Inc. Device [1af4:1100]
Kernel driver in use: bochs-drm
--
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev d9)
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636]
Kernel modules: amdgpu
Only think here is that the kernel driver isn't in use, so I checked the dmesg for amdgpu:
Code:
[ 2.743940] [drm] amdgpu kernel modesetting enabled.
[ 2.744019] amdgpu: Topology: Add CPU node
[ 2.744920] amdgpu 0000:01:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
[ 2.776483] amdgpu 0000:01:00.0: amdgpu: Fetched VBIOS from ROM BAR
[ 2.776608] amdgpu: ATOM BIOS: 113-RENOIR-035
[ 2.777140] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_sdma.bin
[ 2.777183] amdgpu 0000:01:00.0: amdgpu: VRAM: 512M 0x000000F400000000 - 0x000000F41FFFFFFF (512M used)
[ 2.777184] amdgpu 0000:01:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
[ 2.777185] amdgpu 0000:01:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[ 2.777198] Modules linked in: snd_hda_intel snd_intel_dspcfg soundwire_intel powernow_k8(-) edac_mce_amd(-) pcc_cpufreq(-) soundwire_generic_allocation snd_soc_core snd_compress soundwire_cadence amdgpu(+) nls_ascii nls_cp437 snd_hda_codec vfat snd_hda_core iTCO_wdt fat snd_hwdep intel_pmc_bxt soundwire_bus bochs_drm gpu_sched drm_vram_helper iTCO_vendor_support pcspkr drm_ttm_helper serio_raw efi_pstore ttm snd_pcm evdev snd_timer sg watchdog virtio_console snd drm_kms_helper virtio_balloon soundcore i2c_algo_bit joydev cec button qemu_fw_cfg drm fuse configfs efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid sd_mod t10_pi crc_t10dif crct10dif_generic sr_mod cdrom crct10dif_common ahci libahci virtio_scsi virtio_net libata net_failover failover psmouse i2c_i801 i2c_smbus lpc_ich virtio_pci virtio_ring ehci_pci virtio uhci_hcd scsi_mod ehci_hcd usbcore usb_common
[ 2.777317] amdgpu_bo_init+0x1c/0x80 [amdgpu]
[ 2.777369] gmc_v9_0_sw_init+0x36a/0x5a0 [amdgpu]
[ 2.777432] amdgpu_device_init.cold+0x14c9/0x1a44 [amdgpu]
[ 2.777482] amdgpu_driver_load_kms+0x2b/0x1f0 [amdgpu]
[ 2.777526] amdgpu_pci_probe+0x19c/0x230 [amdgpu]
[ 2.777664] caller amdgpu_ttm_init+0x10b/0x400 [amdgpu] mapping multiple BARs
[ 2.777678] [drm] amdgpu: 512M of VRAM memory ready
[ 2.777682] [drm] amdgpu: 2845M of GTT memory ready.
[ 2.811214] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_asd.bin
[ 2.811393] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_ta.bin
[ 2.811537] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_pfp.bin
[ 2.811747] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_me.bin
[ 2.811959] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_ce.bin
[ 2.812109] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_rlc.bin
[ 2.813186] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_mec.bin
[ 2.813799] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_mec2.bin
[ 2.836237] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_dmcub.bin
[ 2.836811] amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/renoir_vcn.bin
[ 2.836819] amdgpu 0000:01:00.0: amdgpu: Will use PSP to load VCN firmware
[ 4.048559] [drm:psp_hw_start [amdgpu]] *ERROR* PSP create ring failed!
[ 4.048627] [drm:psp_hw_init [amdgpu]] *ERROR* PSP firmware loading failed
[ 4.048685] [drm:amdgpu_device_fw_loading [amdgpu]] *ERROR* hw_init of IP block <psp> failed -22
[ 4.048702] amdgpu 0000:01:00.0: amdgpu: amdgpu_device_ip_init failed
[ 4.048715] amdgpu 0000:01:00.0: amdgpu: Fatal error during GPU init
[ 4.048778] amdgpu 0000:01:00.0: amdgpu: amdgpu: finishing device.
[ 4.353011] Modules linked in: snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation snd_soc_core snd_compress soundwire_cadence amdgpu(+) nls_ascii nls_cp437 snd_hda_codec vfat snd_hda_core iTCO_wdt fat snd_hwdep intel_pmc_bxt soundwire_bus bochs_drm gpu_sched drm_vram_helper iTCO_vendor_support pcspkr drm_ttm_helper serio_raw efi_pstore ttm snd_pcm evdev snd_timer sg watchdog virtio_console snd drm_kms_helper virtio_balloon soundcore i2c_algo_bit joydev cec button qemu_fw_cfg drm fuse configfs efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid sd_mod t10_pi crc_t10dif crct10dif_generic sr_mod cdrom crct10dif_common ahci libahci virtio_scsi virtio_net libata net_failover failover psmouse i2c_i801 i2c_smbus lpc_ich virtio_pci virtio_ring ehci_pci virtio uhci_hcd scsi_mod ehci_hcd usbcore usb_common
[ 4.353287] amdgpu_vram_mgr_fini+0x4a/0xc0 [amdgpu]
[ 4.353447] amdgpu_ttm_fini+0x97/0x100 [amdgpu]
[ 4.353581] amdgpu_bo_fini+0xe/0x30 [amdgpu]
[ 4.353732] gmc_v9_0_sw_fini+0x2e/0x40 [amdgpu]
[ 4.353925] amdgpu_device_fini+0x2a8/0x4aa [amdgpu]
[ 4.354113] amdgpu_driver_load_kms.cold+0x35/0x57 [amdgpu]
[ 4.354251] amdgpu_pci_probe+0x19c/0x230 [amdgpu]
[ 4.354399] Modules linked in: snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation snd_soc_core snd_compress soundwire_cadence amdgpu(+) nls_ascii nls_cp437 snd_hda_codec vfat snd_hda_core iTCO_wdt fat snd_hwdep intel_pmc_bxt soundwire_bus bochs_drm gpu_sched drm_vram_helper iTCO_vendor_support pcspkr drm_ttm_helper serio_raw efi_pstore ttm snd_pcm evdev snd_timer sg watchdog virtio_console snd drm_kms_helper virtio_balloon soundcore i2c_algo_bit joydev cec button qemu_fw_cfg drm fuse configfs efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid sd_mod t10_pi crc_t10dif crct10dif_generic sr_mod cdrom crct10dif_common ahci libahci virtio_scsi virtio_net libata net_failover failover psmouse i2c_i801 i2c_smbus lpc_ich virtio_pci virtio_ring ehci_pci virtio uhci_hcd scsi_mod ehci_hcd usbcore usb_common
[ 4.354644] amdgpu_gtt_mgr_fini+0x4a/0xd0 [amdgpu]
[ 4.354782] amdgpu_ttm_fini+0x9f/0x100 [amdgpu]
[ 4.354913] amdgpu_bo_fini+0xe/0x30 [amdgpu]
[ 4.355072] gmc_v9_0_sw_fini+0x2e/0x40 [amdgpu]
[ 4.355345] amdgpu_device_fini+0x2a8/0x4aa [amdgpu]
[ 4.355535] amdgpu_driver_load_kms.cold+0x35/0x57 [amdgpu]
[ 4.355677] amdgpu_pci_probe+0x19c/0x230 [amdgpu]
[ 4.355881] [drm] amdgpu: ttm finalized
[ 4.357441] amdgpu: probe of 0000:01:00.0 failed with error -22
I think the important part are the lines:
Code:
[ 4.048559] [drm:psp_hw_start [amdgpu]] *ERROR* PSP create ring failed!
[ 4.048627] [drm:psp_hw_init [amdgpu]] *ERROR* PSP firmware loading failed
I've tried googling this but can't find much that is helpful. One issue that I did run into when setting up the passthrough was that I couldn't get vendor-reset to install. With dkms install I get "Error! Arguments <module> and <module-version> are not specified" and with make install I got "Warning: modules_install: missing 'System.map' file. Skipping depmod.". But it was marked as optional in that guide so I moved on without it, but maybe that is the reason I'm getting this error? Another small issue I had was debian didn't have the drive/firmware installed so I had to install it after the OS was installed, which was the xserver-xorg-video-amdgpu and firmware-amd-graphics packages. Just in case that info is helpful at all. Anyone have any ideas?