AMD Ryzen 5600G iGPU code 43 error

Yes, like I said without vendor-reset qemu will refuse to start because of "pci_hp_register failed with error -16" when you start it the second time, which is the reset bug. And for me it never worked the first time in the first place without vendor-reset it was 100% broken.

Like I said I can now restart Qemu however often I need because of adding 5600G iGPU product ID (0x1638) to vendor reset.

I said this right in the first post I made.

On the other hand to get rid of Code 43, use Niemez driver with mentioned options/versions + Qemu UEFI + VBIOS file (+ other mentioned stuff?)

Then to get rid of possible host crash bug only when Qemu starts, use Virtual-Display-Driver instead of plugging in physical display / dummy cable.

= works 100%

(One detail that doesn't work but that of course is to be expected: when I suspend the host PC to memory while VM is running, the iGPU will no longer work after I wake the host PC up. And this persists even after I restart Qemu. I had mixed success fixing this with a combo of PCIe reset while the amdgpu driver was loaded & rebound, which requires you to power off VM of course - not totally sure about this yet - Naturally it only makes sense to solve this problem, by blocking suspend when VM is active. So you don't need a script that fixes broken state like this, because either way you can't suspend host PC while VM is running. It would be pointless.)
 
Last edited:
I don't know what I've done differently except for the entries in grub. But it seems to work now. I am thrilled.

Thanks a lot!
 

Attachments

  • 1733695012823.png
    1733695012823.png
    598.3 KB · Views: 11
  • Like
Reactions: ballerburg9005
In vendor-reset add the following line to src/device-db.h (use lspci -nnk to get this number for GPU, e.g. 1002:1638) after #define _AMD_NAVI10(op) \:


Then you can also add your vendor id to 99-vendor-reset.rules, which you have to copy to /etc/udev/rules.d/ by hand... or you can do the same by hand in vm script:

Amazing. By add 2 lines to vendor-reset, it actully works on my AMD 5600G, linux or Windows VM can reboot over and over again without rebooting the whole machine.

Big thanks to you! :D

By the way, I don't need the Niemez driver, just install the official driver on amd.com, it works fine.
 
Last edited:
I am trying to get this accomplished but I am lost on the vendor-reset part. Is there something to explain getting into that part?
Edit: I have gotten the vendor-reset all setup and I am able to install the official drivers but get error 43. Do we still need to add the rom as well as the second line I do not have 99.vender.reset.rules I have 60.vender.reset.rules how do I add this I cannot edit it? I have 3 guides total I am following from. Seeing error 43 and seeing the Drivers installed gives me a little hope. I am using the 5600G on a Asrock X300W Tiny PC I have all the bios settings configured as this machine has been in service for about 3 years now. I was just JUST about to switch to an INTEL based machine to make it easier I do not really want to now that I seen this! Thank
 
Last edited:

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!