AMD Rayon R7 5800H Install Monterey kernel Panic

zxc2689963

Active member
AMD OS X Member
Joined
Feb 27, 2022
Messages
135
Hello everyone, the Monterey kernel panic problem has been solved for AMD R7 5800H notebook installation. It is a great thing that the CPU can now run on 8 cores. Thank you guys very much.Thank them for discovering the problem and providing kernel patches @ExtremeX@Visual

Brand: Lenovo
Model: Legion 5 6th Gen
CPU: AMD Ryzen 7 5800h
GPU: AMD Radeon RX 6600m 8GB ( Separate GPU mode)
HDD: Samsung SSD 970 EVO Plus 1TB (1000 GB, PCI-E 3.0 x4)
WDS500G3X0C-00SJG0 (500 GB, PCI-E 3.0 x4)
Network: RealTek Semiconductor RTL8168/8111 PCI-E Gigabit Ethernet NIC
Intel(R) Wi-Fi 6E AX210 160MHz
Ram: x2 8GB 3200mhz ddr4
Display: 15.6 1080p 165HZ

Updated October 5, 2023
Problems solved:
1. You do not need to disable XHCI
2. The microphone problem is rectified
3. Monitor brightness can be adjusted, only in Ventura

Unresolved issues:
Failure to wake from sleep

 

Attachments

  • EFI-2023-10-5.zip
    40 MB · Views: 159
Last edited:
Solution
Panic from Monterey 12.6
View attachment 7258
Thanks. I looked at the sched_prim.c file in the XNU Kernel source code (nice of Apple to let us know exactly where to search) and found that it's related to the TSC (Time Stamp Counter) Syncronization of the CPU cores. The section of the code which gives the panic is: https://github.com/apple-oss-distributions/xnu/blob/xnu-8020.140.41/osfmk/kern/sched_prim.c#L2836
Unfortunately Apple didn't update the XNU Source Code for macOS 12.6 yet, but I still managed to find the place where it calls the panic.
Image 1 is the code of XNU that panics if the time between cores does not match (not syncronized properly).

As seen when comparing the Big Sur and Monterey code (Image 2), Big Sur...

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843

zljjjjjj

Member
AMD OS X Member
Joined
Jun 3, 2022
Messages
40

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
大佬分享一下你的EFI呗,ExtremeXT大佬的我用不了,谢谢
Brother share your EFI, ExtremeXT big guy I can't use it, thank you
Do you have the Intel Wi-Fi + AMD GPU model?
 

zljjjjjj

Member
AMD OS X Member
Joined
Jun 3, 2022
Messages
40
Do you have the Intel Wi-Fi + AMD GPU model?
CPU: AMD Ryzen 7 5800h
GPU: AMD Radeon RX 6600m 8GB ( Separate GPU mode)
HDD: WDSN550(1000 GB, PCI-E 3.0 x4)
Network: RealTek Semiconductor RTL8168/8111 PCI-E Gigabit Ethernet NIC
Intel(R) Wi-Fi 6E AX210 160MHz
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
CPU: AMD Ryzen 7 5800h
GPU: AMD Radeon RX 6600m 8GB ( Separate GPU mode)
HDD: WDSN550(1000 GB, PCI-E 3.0 x4)
Network: RealTek Semiconductor RTL8168/8111 PCI-E Gigabit Ethernet NIC
Intel(R) Wi-Fi 6E AX210 160MHz
Weird that it's crashing, maybe try disabling AirportItlwm.
 

zxc2689963

Active member
AMD OS X Member
Joined
Feb 27, 2022
Messages
135
This is the EFI I'm using, streamlining some unnecessary Settings and improving stability
  • Only Ventura 13.3+ is supported
 

Attachments

  • EFI-2023-4-30.zip
    18 MB · Views: 83

kalkmann

Member
AMD OS X Member
Joined
Nov 18, 2020
Messages
35
This is the EFI I'm using, streamlining some unnecessary Settings and improving stability
  • Only Ventura 13.3+ is supported
I upgraded to 13.3.1 using your EFI and the boot time is super fast. MacBook Pro SMBIOS and HEVC encode/decode working ok and mostly, Trackpad working! Congratulations on new efforts and discoveries!
I have some questions, which still don't work here:
  • With SSDT-PNLF-CFL.aml present in your ACPI folder, does the brightness control work natively?
  • I saw that you are using a SoftPowerPlay table on the GPU, did this resolve the Sleep on your machine?

Thanks!
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
I upgraded to 13.3.1 using your EFI and the boot time is super fast. MacBook Pro SMBIOS and HEVC encode/decode working ok and mostly, Trackpad working! Congratulations on new efforts and discoveries!
I have some questions, which still don't work here:
  • With SSDT-PNLF-CFL.aml present in your ACPI folder, does the brightness control work natively?
  • I saw that you are using a SoftPowerPlay table on the GPU, did this resolve the Sleep on your machine?

Thanks!
HEVC encoding works on MacBookPro SMBIOS? I tried to send you some messages over on Discord too, by the way.
 

kalkmann

Member
AMD OS X Member
Joined
Nov 18, 2020
Messages
35
HEVC encoding works on MacBookPro SMBIOS? I tried to send you some messages over on Discord too, by the way.
Apparently it's working with this EFI (I just did the simple test with videoproc). It's using MacBookPro15,2 and I haven't made any changes to the config.plist other than the serials.

Sorry about the unread messages... My racing season has started and I barely have time to test/read anything else on the hacks, but they are serving me well in the functions. Thanks for your availability and if I discover something new by chance here, I'll post it on the forum.
 

ExtremeXT

Donator
Donator
Joined
Aug 7, 2022
Messages
843
Apparently it's working with this EFI (I just did the simple test with videoproc). It's using MacBookPro15,2 and I haven't made any changes to the config.plist other than the serials.

Sorry about the unread messages... My racing season has started and I barely have time to test/read anything else on the hacks, but they are serving me well in the functions. Thanks for your availability and if I discover something new by chance here, I'll post it on the forum.
Answer when you're able to.
 

翻斗花园-胡图图

New member
AMD OS X Member
Joined
Mar 31, 2023
Messages
18
This is the EFI I'm using, streamlining some unnecessary Settings and improving stability
  • Only Ventura 13.3+ is supported
After seeing that you updated EFI, I also re-installed it, and found that the touchpad could work normally. I also bought a network card "AX210" with the same configuration as yours online after I just arrived today and tried it, and it worked normally. However, I seem to find something wrong with the 3.5mm audio interface, and the sound is not normal. I don't know if it is only my computer that has this situation, here is the feedback. It is very impressive that this notebook has been deciphered to this extent by all of you. Thank you for your efforts here.
 
Back
Top Bottom
  AdBlock Detected
Sure, ad-blocking software does a great job at blocking ads, but it also blocks some useful and important features of our website. For the best possible site experience please take a moment to disable your AdBlocker.