After my initial post the system became pretty stable, I tried 30 restarts in a row with different bios settings (with or without DOCP, with or without core boost, energy saving, and so on), memory sticks connected to the "FlashBack USB port", WiFi turned on and off ... and everything looked just fine, no more hang ups when restarting from windows.
Today I updated the BIOS to version 2801 and now the problem is back and is very easy to reproduce.
If the DRAM timming is set to Auto, Aida64 reports DRAM at 2120 Mhz and Windows restarts without a glitch.
If I activate the DOCP standard profile in BIOS (witout any other change from the default settings), the Windows seems to run just fine at DRAM nominal speed (about 3200 or just a bit lower) but on every Windows restart the system hangs with QCode 1F on the onboard motherboard display and CPU FAN stopped.
Same thing happens if I manualy set the DRAM profile to 3200 Mhz: windows seems to work very well, but if I attempt a restart, after the system shuts down all devices, the motherboard tries to restart, enumerate a bunch of q codes on the embeded display for a second until 1F is shown and hangs with the CPU FAN stopped (CPU FAN RGB is still on and cycling from color to color, PSU seems to be on, CPU heat sink gets warm).
Before reverting to previous BIOS version, I want to enable DOCP / SPD timmings once again and run a stability test (should I try some memory test for a long period of time? the stability test in Aida64 ? do you have any sugestion for a relevant memory test ?
Do you have any suggestion of any BIOS setting I should test to check for an influence on the Windows restart issue?
The issue is pretty important to me: this computer should run 24/7 and I am afraid any Windows/software update that attempts an automatic restart will hang the system WITH THE CPU FAN STOPPED. Not sure if at that point the CPU is still able to throttle when reaching some temperature limit.
So at this momment I have to choose between running DRAM at 2300 Mhz or risking some overnight restart that will cook the CPU...
Ryzen 3900X on a C7H Wifi, 2703 bios. stock cooler connected to the CPU_FAN plug on the MB, PWM mode / standard profile, spins and reports fine in AI Suite 3
RAM: Corsair Vengeance 3200Mhz 2x16 GB (CMK32GX4M2B3200C16).
Video: Asus GT 1030 SL BRK
Samsung 970 Pro 1 Tb Nvme
PSU: Seasonic Focus+ Gold 750W