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: 160
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...

zljjjjjj

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

Tested with Ventura 13.4.1 and 13.5, kext enables all USB ports, with both controllers enabled (kext is an upgrade from GenericUSBXHCI).

258947451-2a8346c7-6664-4be7-8120-8e0221bfc06b.jpg
Can you share EFI and whether it can be used on MacOS Sonoma?
 

kalkmann

Member
AMD OS X Member
Joined
Nov 18, 2020
Messages
35
Yes, but it didn't work, and I couldn't solve it with limited ability
Do you know if your WIFI+BT external dongle works with any version of macOS? Because some dongles don't work (I know that the ones with the CSR8510 A10 chip works).
 

kalkmann

Member
AMD OS X Member
Joined
Nov 18, 2020
Messages
35

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
131
Hey friends, I can use all USB ports on macOS 14 Sonoma beta4, I need to change the configuration as shown in the picture, but I can't drive Bluetooth, can anyone help take a look.View attachment 11587View attachment 11595
Get some error using your kext work for legion 7i with 6800h+6600m. Stuck at IOPCIConfigurator: configurate kIOPCIEnumeration WaitTime is 900
 
Last edited:

zljjjjjj

Member
AMD OS X Member
Joined
Jun 3, 2022
Messages
40
USB Kext solution:


Tested with Ventura 13.4.1 and 13.5, kext enables all USB ports, with both controllers enabled (kext is an fork/update from GenericUSBXHCI).

258947451-2a8346c7-6664-4be7-8120-8e0221bfc06b.jpg


Can you modify this based on my EFI, thanks
 

Attachments

  • EFI.zip
    34.9 MB · Views: 2

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
131

My laptop is the 6 core processor version, you will need to adjust the kernel patches.

And it's no use using my EFI as a reference to try to solve your problem with bluetooth.
My laptop is https://www.lenovo.com/us/en/p/lapt...0000us?orgRef=https%3A%2F%2Fwww.google.com%2F
What kind of adjust do I need to adjust to kernel patches?
Thanks
 

CNGZ2022

New member
AMD OS X Member
Joined
Jul 11, 2022
Messages
25
Hello, everyone I have solved the efi of 5800h, and now the Bluetooth can also be used normally. This is my efi, please change the serial number and other data by yourself截屏2023-08-09 02.11.48.png
 

Attachments

  • EFI.zip
    28.1 MB · Views: 41
Last edited:

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
131
你的机型比较新
cpu是6800
需要找找看有没有同款cpu的efi
然后找到对应的参数进行修改才行
目前我只清楚5600和5800的参数;所以帮不上多大忙
6800和5800CPU内核应该是同一代吧,主要区别在GPU,我把igpu关了,CPU数据应该不需要修改太多吧,我不是太清楚
 
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.