![](http://content.invisioncic.com/u329766/set_resources_34/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
wx-Rmt
-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by wx-Rmt
-
-
On 9/2/2022 at 3:58 AM, Name_0901 said:
One issue is I still can't find a workable solution to fix the AMD reset bug. I tried follow wx-Rmt's step to install "RadeonResetBugFix" on Windows 10, but it doesn't work well. It crashes my computer every time, not just the VM.
Now the accepted and feasible method to prevent amdgpu reset is here
https://github.com/gnif/vendor-reset/
Compile it into a kernel module and load it in the host
But the problem is that the original author of https://github.com/gnif/vendor-reset/ did not add the hardware ID of amdigpu。
Only some hardware IDs of amd gpu are included, the author did not have so many amd gpu tests at that time。
On unraid ich777 built a plugin with the above source code。
So I asked ich777 some time ago to add the hardware id of AMD's igpu to the reset plugin
In fact, if you look closely, the grouping of igpu in reset hardware id may be different from that of gpu
The hardware id 1638 of the 5700g in the amd main driver
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
lines 1887
/* Renoir */
{0x1002, 0x15E7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RENOIR|AMD_IS_APU},
{0x1002, 0x1636, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RENOIR|AMD_IS_APU},
{0x1002, 0x1638, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RENOIR|AMD_IS_APU},
{0x1002, 0x164C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RENOIR|AMD_IS_APU},
Grouped in CHIP_RENOIR|AMD_IS_APU
In reset patch, there are only the following groups
https://github.com/gnif/vendor-reset/blob/master/src/device-db.h
No hardware ID for 5700G
AMD_POLARIS10 AMD_POLARIS11 AMD_POLARIS12 AMD_VEGA10 AMD_VEGA20 AMD_NAVI10
AMD_NAVI14 AMD_NAVI12
-
1
-
-
On 7/3/2022 at 10:06 AM, cemaranet said:
Thanks for the insight, that would make motherboard selection easier.
But how come i read some people having issues extracting vbios from 5700g, while some succeed?
Is this like silicon lottery thing where we can get different OC results from 2 identical CPUs?
The vbios of igpu is in the motherboard bios, and it will be upgraded with the motherboard bios upgrade, so you should use the vbios extracted from the corresponding version of the bios of the local motherboard. Using other people's vbios may be inconsistent with the vbios version in your current motherboard bios.
-
1
-
-
On 2022/6/28 at AM9点13分, cemaranet said:
嗨,我一直在监视这个 AM4 IGPU 通道,因为我正在考虑在我的 GPU 出现故障时获得 5700g + AM4 板。
所以 CMMIW 似乎是它的主板依赖,
从之前的帖子看起来微星 B450 可以正常工作,还有其他已知的工作品牌吗?
有人试过 Asrockrack AM4 吗?我正在考虑购买他们的 B550 板。
由于它是服务器级的,因此支持直通的可能性更大。
According to my test, MSI B450 and B550 can support 5700G pass-through, but 3400G cannot pass through.
So basically it has nothing to do with the chipset, maybe it has something to do with the vbios setting of amd in igpu。
-
I also succeeded above 6.10.0
deleted pci=noats
I looked at the startup syslog, found an error, then deleted pci=noats, restarted the error in syslog disappeared,。
and then the nuclear display pass-through was normal.
But the gpu rest bug that needs to be pointed out still exists, and the win10 gpu reset patch RadeonResetBugFix is still needed .
I requested ICH777 to add the 0x1002, x1638 id of our apu to the AMD VENDOR RESET plugin, I don't know if it works.
So maybe don't RadeonResetBugFix。
At the same time I create a new
/boot/config/modprobe.d/amdgpu.conf
blacklist amdgpu
Special reminder:
Restart the nas first, then pass through the gpu for the first time, install the amd driver, and install RadeonResetBugFix.
-
1
-
-
AMD VENDOR RESET ---have a request
Invalid for 5700G apu, ID 0x1002, 0x1638
device-db.h does not contain
https://github.com/gnif/vendor-reset/blob/master/src/device-db.h
in amdgpu_drv.c apu id
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
1872 lines
/* Renoir */
{0x1002, 0x15E7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RENOIR|AMD_IS_APU},
{0x1002, 0x1636, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RENOIR|AMD_IS_APU},
{0x1002, 0x1638, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RENOIR|AMD_IS_APU},
{0x1002, 0x164C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RENOIR|AMD_IS_APU},
Can you add the id of the above apu to device-db.h
Generate a new version in the plugin or send it to me to test on unraid。
thank you very much!!!
unraid 6.10.0-6.10.2
-
I have been running stably for more than 24 hours on the unraid 6.9.2 through the i440fx-5.1 model through the 5700g igpu
If you use Q35-5.1 unsuccessfully, you can try i440fx-5.1
I can only speak simple English,only google translate.
My motherboard is MSI B450M MORTAR MAX, bios version 7B89v2G
My CPU 5700G.
Use UBU_v1.79.17 to extract vbios.rom of you motherboard bios
kernel /bzimage append pcie_acs_override=downstream,multifunction vfio_iommu_type1.allow_unsafe_interrupts=1 video=efifb:off initrd=/bzroot
Create a new vm win10
Machine:i440fx-5.1
BIOS:SeaBIOS
Hyper-V:Yes
Graphics Card just use vnc
installing win10, installing virtio-win.
My Computer - Properties - Advanced System Settings - Hardware - Device Installation Settings - Set to No.
Don't let win10 download and install old amd drivers automatically。
Remember to change it back later.
It is best to open the remote desktop, which is convenient for debugging later.
Download the latest AMD 22.5.2 driver and RadeonResetBugFix in vm win10
https://github.com/inga-lovinde/RadeonResetBugFix
Unzip the amd driver to any directory.
shutdown win10。
edit win10
Modify the vnc of Graphics Card to AMD Cezanne (30:00.0),Specify the vbios.rom obtained earlier
click update
edit win10 again
XML VIEW
Add hidden state
<kvm> <hidden state='on'/> </kvm>
Add x-vga=on
<qemu:commandline> <qemu:arg value='-set'/> <qemu:arg value='device.hostdev0.x-vga=on'/> </qemu:commandline>
Ps:not very familiar with unradi。The following is not very clear。
if you modify the vm in the Virtual Machines GUI, it will automatically delete x-vga=on, and you have to manually add it in the XML VIEW mode each time.
update.
boot win10
If it is the first time to pass through the igpu。
The monitor lights up directly, enter the system (pass-through keyboard, mouse or remote desktop),
install the amd driver, do not restart after the driver installation is complete,
cmd RadeonResetBugFixService.exe install
Wait a few minutes for the RadeonResetBugFixService installation to complete. Restart win10 again.
When start win10 again, my monitor will be black for 1-2 minutes, wait patiently for RadeonResetBugFixService to activate the amd graphics card, and the monitor will light up again.
Finally, remember to turn off the hibernation of win10, I found that hibernation may cause the host to crash.
The second time my machine boots up vm win10 it starts to go black for a few minutes. Just be patient for a while.
I don't know if it's because of my B450 motherboard or because of my dp interface
But I tested with 6.10.2 yesterday. It can directly light up the display every time, and 6.10.2 has fixed the problem of gpu reset, but brought code 43.
See the specific principle https://github.com/inga-lovinde/RadeonResetBugFix the bottom description.
-
3
-
-
down UBU_v1.79.17.rar
https://winraid.level1techs.com/t/tool-guide-news-uefi-bios-updater-ubu/30357
Unzip the English directory
For example E:\UBU_v1.79.17
Copy X370TC7.10 into E:\UBU_v1.79.17 Double click UBU.bat
Wait for the prompt to press any key
chioce 2 enter
S enter
choice 0 exit
or just close
At the same time you can open E:\UBU_v1.79.17\Files\AMD\VBIOS\_List_vbios.txt
# 504349520210 vbis_xxx.dat rb " OROM VBIOS Rembrant - "
5043495202103F16 vbios_163F.dat vg " OROM VBIOS Van Gogh - "
5043495202103816 vbios_1638.dat ce " OROM VBIOS Cezanne - "
5043495202103616 vbios_1636.dat re " OROM VBIOS Renoir - "
504349520210D815 vbios_15D8.dat pi " OROM VBIOS Picasso - "
526176656E322047656E vbios_15DD_2.dat ra2 " OROM VBIOS Raven 2 - "
526176656E2047656E vbios_15DD_1.dat ra1 " OROM VBIOS Raven - "-
1
-
1
-
-
I installed unraid 6.9.2 today, and successfully connected the 5700G core display with the above method.
I'm still testing its stability to see if the system can run stably for more than 24 hours.
At the same time, I also briefly tried 6.10.2, but it didn't work,
but I found that 6.10.2 has no GPU reset problem, but it will code43.
-
Hi all,I succeeded!!!
But my system is a HACKED QNAP 5.0 TS-877, basically following the techhit process.
I'm not familiar with unraid, nor have unraid installed. So just for your reference.。
Thank you all very much !!!
The following are the settings on my qnap system, please refer to
My motherboard: MSI B450M MORTAR MAX
My CPU: 5700G
Linux kernel: 5.10.60-qnap
grub.cfg:
amd_iommu=on iommu=pt pcie_acs_override=downstream,multifunction video=efifb:off
Get vbios rom:
My motherboard is MSI B450M MORTAR MAX, bios version 7B89v2G,down motherboard BIOS。
down UBU_v1.79.17
https://winraid.level1techs.com/t/tool-guide-news-uefi-bios-updater-ubu/30357
extracted motherboard bios to UBU,run UBU.BAT
Get file Extracted--VBIOS--017.010.000.030.000000--vbios_1638.dat
This is you Cezanne's vbios.rom
My Cezanne's vbios.rom version 017010.000.030.0000
BIOS setp:
Re-Size BAR Support --enable
Above 4G memory/Crypto --enable
SR-IOV Support --enable
Initiate Graphic Adapter --IGD
Integrated Graphics --Force
UMA Frame Buffer Size --4G
IOMMU --enable
DMA Protection --auto
DMAr Support --auto
SVM Mode --enable
NX Mode --enable
other all auto
BOOT UEFI
CSM cloese
IOMMU Group:
IOMMU Group 15:
30:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1638] (rev c8)
IOMMU Group 16:
30:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1637]
IOMMU Group 17:
30:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Device [1022:15df]
IOMMU Group 18:
30:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:1639]
Bios: seabios
<kvm>
<hidden state='on'/>
</kvm>
<cpu mode='host-passthrough' check='none'>
<topology sockets='1' cores='8' threads='1'/>
</cpu>
<type arch='x86_64' machine='pc-i440fx-4.1'>hvm</type> #My qnap only set pc-i440fx-4.1
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x30' slot='0x00' function='0x0'/>
</source>
<rom bar='on' file='/share/CACHEDEV1_DATA/.qpkg/.QKVM/romfile/1002_1638_1002_1636.rom'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</hostdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</memballoon>
</devices>
<qemu:commandline>
<qemu:arg value='-set'/>
<qemu:arg value='device.hostdev0.x-vga=on'/>
</qemu:commandline>
ps: on my system
hidden state ; machine='pc-i440fx-4.1' ; rom file; x-vga=on
is required
My qnap qemu only set pc-i440fx-4.1
my qemu virsh version: 4.1
Last:
1.win10-21h2
2.amd drive 22.5.2
3.RadeonResetBugFix
https://github.com/inga-lovinde/RadeonResetBugFix
No more code 43
No reset bug
Perfect !!!!
Thanks again everyone and good luck !!!!
AMD APU Ryzen 5700G iGPU Passthrough on 6.9.2
in VM Engine (KVM)
Posted
Therefore, assuming that the principle of amd igpu and gpu reset and repair is the same,
it is feasible to try to solve the reset method of amd igpu,
which is to add the igpu hardware to https://github.com/gnif/vendor-reset, after compiling loaded into the host system
I have stopped tossing unraid and related amd igpu passthrough
good luck everyone