CPU: AMD Ryzen 9 3900X
Mainboard: AsRock X570 Phantom Gaming ITX/TB3 (BIOS 2.71)
Memory: Kingston HyperX Predator (2x 32GB) DDR4-3600 [email protected]
Storage: Corsair MP600 (1000GB) M.2 NVMe PCIe 4.0
Video Card: XFX Radeon VII 16GB
Power Supply: Corsair SF600 Platinum
Case: Phanteks Enthoo Evolv Shift (Mini-ITX)
Thunderbolt without hot-plugging (devices need to be connected before boot but works fine as USB-C)
Above 4G decoding: disabled
Fast boot: disabled
Deep sleep: disabled
The CPU integrated USB Controller (SB.PCI0.GP13.XHC0) is the reason for restarts on wake up from sleep. Deactivating it either through SSDT patches or directly in the BIOS fixes this issue, but results in USB Ports 3 and 4 ending up as USB 2 only:
If the USB port of the integrated Bluetooth module on HS9 is set to 'internal' it resulted in a timeout/kernel panic when trying to enter sleep. Setting it to USB 2 fixed it.
The integrated bluetooth is fully functional with the appropriate kext. Loading the firmware may fail upon boot and requires a reboot. Disabling Deep sleep in BIOS fixes it for cold boots.
For more background and EFI check out the Github repo: RyzenMacPro