ChefKissInc / NootedRed

The AMD Vega iGPU support patch kext. No commercial use.
https://chefkissinc.github.io/applehax/nootedred/
Other
1.66k stars 803 forks source link

nootred kernel panic failed to apply patches #148

Closed pokewizardSAM closed 1 year ago

pokewizardSAM commented 1 year ago

The bug :

panic(cpu 8 caller 0xffffff801450029a): NootedRed   x6000fb: @ Failed to apply patches: 0

Panicked task 0xffffff94efe3a218: 156 threads: pid 0: kernel_task
Backtrace (CPU 8), panicked thread: 0xffffff94f1001598, Frame : Return Address
0xfffffff2ceda3120 : 0xffffff80103edf9d mach_kernel : _handle_debugger_trap + 0x4ad
0xfffffff2ceda3170 : 0xffffff801055b786 mach_kernel : _kdp_i386_trap + 0x116
0xfffffff2ceda31b0 : 0xffffff801054aa10 mach_kernel : _kernel_trap + 0x3e0
0xfffffff2ceda3200 : 0xffffff8010388951 mach_kernel : _return_from_trap + 0xc1
0xfffffff2ceda3220 : 0xffffff80103ee27d mach_kernel : _DebuggerTrapWithState + 0x5d
0xfffffff2ceda3310 : 0xffffff80103ed929 mach_kernel : _panic_trap_to_debugger + 0x1a9
0xfffffff2ceda3370 : 0xffffff8010be0ecb mach_kernel : _panic + 0x84
0xfffffff2ceda3460 : 0xffffff801450029a com.ChefKissInc.NootedRed + 12954
0xfffffff2ceda3ca0 : 0xffffff8014217ffd as.vit9696.Lilu : __ZN7LiluAPI20onEntitlementRequestEPFvPvP4taskPKcRP8OSObjectES0_ + 0x27d
0xfffffff2ceda3ce0 : 0xffffff801420ff15 as.vit9696.Lilu : __ZN13KernelPatcher18setupKextListeningEv + 0x1835
0xfffffff2ceda3d30 : 0xffffff8010a70ee9 mach_kernel : __ZN6OSKext4loadEhhP7OSArray + 0x729
0xfffffff2ceda3d90 : 0xffffff8010a8736e mach_kernel : __ZN6OSKext22loadKextWithIdentifierEP8OSStringPP8OSObjectbbhhP7OSArray + 0x1ae
0xfffffff2ceda3de0 : 0xffffff8010b0b57e mach_kernel : __ZNK11IOCatalogue14isModuleLoadedEP12OSDictionaryPP8OSObject + 0xee
0xfffffff2ceda3e30 : 0xffffff8010ae830f mach_kernel : __ZN9IOService15probeCandidatesEP12OSOrderedSet + 0x59f
0xfffffff2ceda3ef0 : 0xffffff8010ae7be0 mach_kernel : __ZN9IOService14doServiceMatchEj + 0x3b0
0xfffffff2ceda3f50 : 0xffffff8010aeace7 mach_kernel : __ZN15_IOConfigThread4mainEPvi + 0x157
0xfffffff2ceda3fa0 : 0xffffff801038819e mach_kernel : _call_continuation + 0x2e
      Kernel Extensions in backtrace:
         as.vit9696.Lilu(1.6.4)[FA02BB0A-0769-30FD-8938-136A6467C42B]@0xffffff801420d000->0xffffff8014238fff
         com.ChefKissInc.NootedRed(1.0)[0DDBCE5C-5206-3B51-9E47-850A14EFE4ED]@0xffffff80144fd000->0xffffff80146defff
            dependency: as.vit9696.Lilu(1.6.4)[FA02BB0A-0769-30FD-8938-136A6467C42B]@0xffffff801420d000->0xffffff8014238fff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[E2CE416B-59DA-3836-9985-FDC527C5E6C7]@0xffffff8012dff000->0xffffff8012e2efff

Process name corresponding to current thread (0xffffff94f1001598): kernel_task
Boot args: -v debug=0x100 keepsyms=1 alcid=1 npci=0x3000 

Mac OS version:
22A380

Kernel version:
Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64
Kernel UUID: BF7C9676-EF23-3E8D-A2E2-25DAC63091B6
roots installed: 0
KernelCache slide: 0x0000000010000000
KernelCache base:  0xffffff8010200000
Kernel slide:      0x00000000100dc000
Kernel text base:  0xffffff80102dc000
__HIB  text base: 0xffffff8010100000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file available: NO (0xe00002bc)
Hibernation exit count: 0

System uptime in nanoseconds: 12734351259
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x00000002f7bb36ed
  Sleep   : 0x0000000000000000 0x0000000000000000 0x0000000000000000
  Wake    : 0x0000000000000000 0x00000012bd1193e2 0x0000000000000000
Compressor Info: 0% of compressed pages limit (OK) and 0% of segments limit (OK) with 0 swapfiles and OK swap space
Zone info:
  Zone map: 0xffffff8022aaf000 - 0xffffffa022aaf000
  . PGZ   : 0xffffff8022aaf000 - 0xffffff8023ab0000
  . VM    : 0xffffff8023ab0000 - 0xffffff84f0516000
  . RO    : 0xffffff84f0516000 - 0xffffff8689de2000
  . GEN0  : 0xffffff8689de2000 - 0xffffff8b56848000
  . GEN1  : 0xffffff8b56848000 - 0xffffff90232ae000
  . GEN2  : 0xffffff90232ae000 - 0xffffff94efd14000
  . GEN3  : 0xffffff94efd14000 - 0xffffff99bc77b000
  . DATA  : 0xffffff99bc77b000 - 0xffffffa022aaf000
  Metadata: 0xffffffb050e81000 - 0xffffffb070e81000
  Bitmaps : 0xffffffb070e81000 - 0xffffffb073e81000

To Reproduce Steps to reproduce the behavior:

  1. build a fresh efi with these kexts, drivers , ssdts : https://imgur.com/a/txJw0Ac

  2. using opecore version 9.3 EFI-modded2.zip

  3. add latest nootred kext

  4. reboot and you will see different error messages every time all linked to the same issue I guess.

Expected behavior expected it to boot fine as it boots without gpu acceleration using the same efi.

Screenshots These are the errors which keep alternating when I try to use nootred kext in my efi WhatsApp Image 2023-08-12 at 8 33 40 PM WhatsApp Image 2023-08-12 at 8 33 16 PM

System Information: Lenovo ideapad gaming 3 dgpu: gtx 1650 wifi : mediatek

-----------------------------------------------------------------------
System Info
-----------------------------------------------------------------------
Host                           iMac-Pro.local
OS                             macOS Ventura Version 13.0 (Build 22A380)
Kernel                         Darwin 22.1.0 x86_64
RAM                            8.00 GB
Model Identifier               iMacPro1,1
CPU                            AMD Ryzen 5 5600H with Radeon Graphics         
Intel Generation               ???
Platform ID                    0x00000000
Board ID                       Mac-7BA5B2D9xxxxxxxx
FW Version                     1916.80.2.0.0
Serial Number                  C02Fxxxxxxxx
Hardware UUID                  DD740A20-D9FD-5CB5-A14B-746533333333
System ID                      A7F13B15-3A64-4A74-A2E4-64852A0E8496
ROM                            B48B199xxxxx
Board Serial Number            C02125270CDJG36CB
VDA Decoder                    Decoder Failed
-----------------------------------------------------------------------
Serial Info
-----------------------------------------------------------------------
Country                        China (Quanta Computer)
Year                           2021
Week                           06.18.2021-06.24.2021
Line                           2847 (copy 1)
Model                          iMac Pro (2017)
Model Identifier               iMacPro1,1
Valid                          Possibly
-----------------------------------------------------------------------
VGA
-----------------------------------------------------------------------
GPU Name                       Cezanne [Radeon Vega Series / Radeon Vega Mobile Series]
GPU Device ID                  0x16381002
Quartz Extreme (QE/CI)         No
Metal Supported                No
Metal Device Name              (null)
Metal Default Device           No
Metal Low Power                No
Metal Headless                 No

Additional context Right now my macOS works good (without graphic acceleration) , but when using nootred then this error occurs. which seems to be linked to with acpi somehow. I re did my entire apis 3 times , tried doing the manual away too. but all of them only work without graphic acceleration, all of them just get stuck at this error and that means there must a specific cause which I am not able to understand.

Also there is not much info regarding nootred no about this error. I tried do my best and finally decided to ask it directly to the authors of nootred. I really appreciate what you are doing for the amd community. I don't ask much from you as this may as well turn out as an error from my side , but only if you can point me towards the error and and how to fix it it would be really helpful

jalavoui commented 1 year ago

u need to update to this release

Captura de ecrã 2023-08-12, às 19 01 29

pokewizardSAM commented 1 year ago

u need to update to this release

Captura de ecrã 2023-08-12, às 19 01 29

thanks, the installation was the problem after all. I couldn't find 13.4.1, but had 13.5 installer lying around so used that to update my current install first and then nootred worked. Efi is pretty much the same, except the SMBIOS(not necessary to change but i did it for aesthetics only)

Screenshot 2023-08-13 at 9 54 18 AM Screenshot 2023-08-13 at 9 57 55 AM

cheers happy hakintoshing :)