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

CNGZ2022

New member
AMD OS X Member
Joined
Jul 11, 2022
Messages
25
6800和5800CPU内核应该是同一代吧,主要区别在GPU,我把igpu关了,CPU数据应该不需要修改太多吧,我不是太清楚
有一个核心参数要修改;内核里的_cpuid_set_info要修改为对应的cpu参数才行;5800对应的是B8080000 0000
 

翻斗花园-胡图图

New member
AMD OS X Member
Joined
Mar 31, 2023
Messages
18
大家好,我已经解决了5800h的efi,现在蓝牙也可以正常使用了。这是我的efi,请自行更改序列号和其他数据View attachment 11605
您好,我的笔记本电脑型号和你的一样,操作系统版本在13.4.1,直接应用你的EFI在启动界面启用XCH1白苹果进度条无法加载
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
2,181
Can we keep it in English please. Even if using a translator.

Thanks
 

CNGZ2022

New member
AMD OS X Member
Joined
Jul 11, 2022
Messages
25
您好,我的笔记本电脑型号和你的一样,操作系统版本在13.4.1,直接应用你的EFI在启动界面启用XCH1白苹果进度条无法加载
Make sure the cpu and graphics card are the same as mine. I've also encountered the progress bar and once or twice at first, the restart never happened
 

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,379
Do you have npci=0x3000 boot argument in your config.plist?

If not try adding it as that boot arg usually fixes ‘PCI Configuration Begin’ errors.
 

redhorse1990

Member
AMD OS X Member
Joined
Jul 2, 2022
Messages
131
Do you have npci=0x3000 boot argument in your config.plist?

If not try adding it as that boot arg usually fixes ‘PCI Configuration Begin’ errors.
No, there is no npci=0x3000 boot argument in my config.plist. I have tried adding npci=0x3000 in my boot arg, but get the following error.
1693105757530.jpeg
Here is my EFI.
Thanks for helping
 

Attachments

  • EFI.zip
    28.1 MB · Views: 13

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,379
with npci=0x3000 stuck on same place
That being the case check your bios to see if you have 'Above 4G Decoding' enabled. As you don't need both the npc boot arg and this option enabled in your Bios.

You need to check which of the other possible issues that can be causing this kernel panic is relevant to your setup.

# PCI Configuration Begin
 

kalkmann

Member
AMD OS X Member
Joined
Nov 18, 2020
Messages
35
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.