TylerLyczak/Unsupported-6900XT-Hackintosh-Fix

System crashing at shutdown / reboot

Closed this issue · 1 comments

When the system is going to shutdown or reboot, it immediately crashes. If Whatevergreen is off (-wegoff) this is the message shown on next boot:

panic(cpu 4 caller 0xffffff7f9450cc5b): "[3:0:0][PPLIB] Failed Power Play Initialization.
" @AmdRadeonController.cpp:1998
Panicked task 0xffffff95b3a2f670: 9 threads: pid 169: WindowServer
Backtrace (CPU 4), panicked thread: 0xffffff90e5c44000, Frame : Return Address
0xffffffd152f7b5f0 : 0xffffff8005283e2d mach_kernel : _handle_debugger_trap + 0x41d
0xffffffd152f7b640 : 0xffffff80053e3cb6 mach_kernel : _kdp_i386_trap + 0x116
0xffffffd152f7b680 : 0xffffff80053d350d mach_kernel : _kernel_trap + 0x51d
0xffffffd152f7b6d0 : 0xffffff8005223a60 mach_kernel : _return_from_trap + 0xe0
0xffffffd152f7b6f0 : 0xffffff80052841fd mach_kernel : _DebuggerTrapWithState + 0xad
0xffffffd152f7b810 : 0xffffff80052839b6 mach_kernel : _panic_trap_to_debugger + 0x2b6
0xffffffd152f7b870 : 0xffffff8005b164bf mach_kernel : _panic + 0x84
0xffffffd152f7b960 : 0xffffff7f9450cc5b com.apple.kext.AMDRadeonX6000Framebuffer : __ZN34AMDRadeonX6000_AmdRadeonController10doGPUPanicEPKcz + 0x1b9
0xffffffd152f7ba70 : 0xffffff7f944cf8bd com.apple.kext.AMDRadeonX6000Framebuffer : __ZN33AMDRadeonX6000_AmdPowerPlayHelper7powerUpEv + 0x6d
0xffffffd152f7bab0 : 0xffffff7f9450bb02 com.apple.kext.AMDRadeonX6000Framebuffer : __ZN34AMDRadeonX6000_AmdRadeonController7powerUpEv + 0x156
0xffffffd152f7bb00 : 0xffffff7f944d400e com.apple.kext.AMDRadeonX6000Framebuffer : __ZN35AMDRadeonX6000_AmdRadeonFramebuffer16enableControllerEv + 0x42
0xffffffd152f7bb60 : 0xffffff7f9e359cc1 com.apple.iokit.IOGraphicsFamily : __ZN13IOFramebuffer4openEv + 0x60f
0xffffffd152f7bbf0 : 0xffffff7f944d3f9a com.apple.kext.AMDRadeonX6000Framebuffer : __ZN35AMDRadeonX6000_AmdRadeonFramebuffer4openEv + 0x16
0xffffffd152f7bc10 : 0xffffff7f9e34ff0e com.apple.iokit.IOGraphicsFamily : __ZN13IOFramebuffer13newUserClientEP4taskPvjPP12IOUserClient + 0x25e
0xffffffd152f7bca0 : 0xffffff8005a14abc mach_kernel : __ZN9IOService13newUserClientEP4taskPvjP12OSDictionaryPP12IOUserClient + 0x6c
0xffffffd152f7bd00 : 0xffffff8005a830db mach_kernel : _is_io_service_open_extended + 0x17b
0xffffffd152f7bd60 : 0xffffff8005389b97 mach_kernel : _iokit_server_routine + 0x4967
0xffffffd152f7bdb0 : 0xffffff800528a6db mach_kernel : _ipc_kobject_set_kobjidx + 0x39b
0xffffffd152f7be10 : 0xffffff800525ed03 mach_kernel : _ipc_kmsg_send + 0x243
0xffffffd152f7be60 : 0xffffff8005275259 mach_kernel : _mach_msg_overwrite_trap + 0x2c9
0xffffffd152f7bef0 : 0xffffff80053b61a8 mach_kernel : _mach_call_munger64 + 0x1d8
0xffffffd152f7bfa0 : 0xffffff8005224246 mach_kernel : _hndl_mach_scall64 + 0x16
Kernel Extensions in backtrace:
com.apple.iokit.IOGraphicsFamily(594.0)[3ECB2385-311A-374E-9C0F-65639BA26A05]@0xffffff7f9e33f000->0xffffff7f9e36dfff

And if I have Whatevergreen enabled, this is shown:

Panicked task 0xffffff875bf31380: 3 threads: pid 107: systemstats
Backtrace (CPU 1), panicked thread: 0xffffff90f7eb6550, Frame : Return Address
0xffffffd1644d3540 : 0xffffff8013e83e2d mach_kernel : _handle_debugger_trap + 0x41d
0xffffffd1644d3590 : 0xffffff8013fe3cb6 mach_kernel : _kdp_i386_trap + 0x116
0xffffffd1644d35d0 : 0xffffff8013fd350d mach_kernel : _kernel_trap + 0x51d
0xffffffd1644d3620 : 0xffffff8013e23a60 mach_kernel : _return_from_trap + 0xe0
0xffffffd1644d3640 : 0xffffff8013e841fd mach_kernel : _DebuggerTrapWithState + 0xad
0xffffffd1644d3760 : 0xffffff8013e839b6 mach_kernel : _panic_trap_to_debugger + 0x2b6
0xffffffd1644d37c0 : 0xffffff80147164bf mach_kernel : _panic + 0x84
0xffffffd1644d38b0 : 0xffffff8013fd38f3 mach_kernel : _sync_iss_to_iks + 0x2c3
0xffffffd1644d3a30 : 0xffffff8013fd35e2 mach_kernel : _kernel_trap + 0x5f2
0xffffffd1644d3a80 : 0xffffff8013e23a60 mach_kernel : _return_from_trap + 0xe0
0xffffffd1644d3aa0 : 0xffffff8013fc9e1d mach_kernel : _IOLockLock + 0x1d
0xffffffd1644d3bb0 : 0xffffff8016a12004 com.apple.iokit.IOPCIFamily : __ZNK11IOPCIDevice11getPropertyEPK8OSSymbol + 0x5e
0xffffffd1644d3bf0 : 0xffffff801460c674 mach_kernel : __ZNK15IORegistryEntry11getPropertyEPKc + 0x24
0xffffffd1644d3c10 : 0xffffff8017e5933d as.vit9696.WhateverGreen : _orgVaddrPresubmitTrampoline + 0x7298
0xffffffd1644d3cc0 : 0xffffff801460cb8f mach_kernel : __ZNK15IORegistryEntry12copyPropertyEPKc + 0x4f
0xffffffd1644d3cf0 : 0xffffff8014682441 mach_kernel : _is_io_registry_entry_get_property_bin_buf + 0x131
0xffffffd1644d3d60 : 0xffffff8013f8c780 mach_kernel : _iokit_server_routine + 0x7550
0xffffffd1644d3db0 : 0xffffff8013e8a6db mach_kernel : _ipc_kobject_set_kobjidx + 0x39b
0xffffffd1644d3e10 : 0xffffff8013e5ed03 mach_kernel : _ipc_kmsg_send + 0x243
0xffffffd1644d3e60 : 0xffffff8013e75259 mach_kernel : _mach_msg_overwrite_trap + 0x2c9
0xffffffd1644d3ef0 : 0xffffff8013fb61a8 mach_kernel : _mach_call_munger64 + 0x1d8
0xffffffd1644d3fa0 : 0xffffff8013e24246 mach_kernel : _hndl_mach_scall64 + 0x16
Kernel Extensions in backtrace:
com.apple.iokit.IOPCIFamily(2.9)[A436E92C-DE10-3718-AEF4-ED2A788A466A]@0xffffff8016a03000->0xffffff8016a2efff
as.vit9696.WhateverGreen(1.5.8)[82AA95B6-925F-35BF-A10E-527D98B3F235]@0xffffff8017e51000->0xffffff8017ecdfff
dependency: as.vit9696.Lilu(1.6.0)[6167D1C2-7FCA-3319-8246-9CAAFA704235]@0xffffff8017e09000->0xffffff8017e33fff
dependency: com.apple.iokit.IOPCIFamily(2.9)[A436E92C-DE10-3718-AEF4-ED2A788A466A]@0xffffff8016a03000->0xffffff8016a2efff

Process name corresponding to current thread (0xffffff90f7eb6550): systemstats
Boot args: keepsyms=1 debug=0x100 alcid=1 agdpmod=pikera chunklist-security-epoch=0 -chunklist-no-rev2-dev

Mac OS version:
21E258

Besides the .aml file, I am also injecting FakePCIID.kext and FakePCIID_RX6000_Graphics.kext, otherwise the system freezes at Apple logo.

Any ideas on how to fix it?

Fixed by re-doing the file and disabling the kexts I mentioned above.