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

RGarrido

New member
AMD OS X Member
Joined
May 17, 2022
Messages
2
Hi! I have the same problem as @Allen623329. I have a Western Digital disk, so I don't think the problem is in the disk. From our findings, the issue is located in AppleACPICPU, so it ain't disk related
 

Edhawk

Guru
Guru
Joined
May 2, 2020
Messages
2,350
Some common issues to check:
  1. Are you using any unnecessary Kexts in your setup, CPU power management related?
  2. Have you set Kernel > Emulate > DummyPowerManagement = True
  3. Have you set Kernel > Quirks > ProvideCurrentCPUInfo = True
  4. Have you checked the 3 x AMD Kernel Patches are set correctly for your 8-core CPU?
    • Screenshot 2022-05-31 at 18.38.14.png AMD Kernel Patches for 8-core CPU - 3 x entries highlighted
 

Allen623329

New member
AMD OS X Member
Joined
Aug 21, 2021
Messages
8
Some common issues to check:
  1. Are you using any unnecessary Kexts in your setup, CPU power management related?
  2. Have you set Kernel > Emulate > DummyPowerManagement = True
  3. Have you set Kernel > Quirks > ProvideCurrentCPUInfo = True
  4. Have you checked the 3 x AMD Kernel Patches are set correctly for your 8-core CPU?
Yeah, they are of the correct values
 

PStar_7

New member
AMD OS X Member
Joined
May 13, 2022
Messages
3
This EFI should be suitable for all R7 5800H laptops to install Bigsur, of course, you can also try to install Monterey, see if there is a Kernel
i give a shot and it just stop at verbose and the laptop goes off, what should i check in the config? and the opencore doest provide any log file
 

Middleman

Active member
AMD OS X Member
Joined
Jan 29, 2021
Messages
723

Jo-Toku

Donator
Donator
AMD OS X Member
Joined
Dec 29, 2021
Messages
234
To provide the log file you need to use Debug version of Opencore plus debug versions of the Lilu, Whatevergreen, VirtualSMC & AppleALC kexts and enable the AppleDebug box under Misc in the config.plist
Who do you think could write a hack for the TSC_support?
 

Middleman

Active member
AMD OS X Member
Joined
Jan 29, 2021
Messages
723

OG Nerd

Knows Enough To Get In Trouble
Donator
AMD OS X Member
Joined
Dec 7, 2021
Messages
284

motorbott

New member
AMD OS X Member
Joined
Apr 13, 2022
Messages
13
Bad news guys, the 6800hs cpu doesn’t support tsc_adjust either.
I gave up waiting and bought a rog flow x13 2022, it’s 6800hs+3050, I checked in AIDA64 that it also has not support for tsc_adjust8C8C0486-8D5B-40C1-B528-B0082AB586D0.png
By the way, windows11 is really better for touch screen users, and the android subsystem is also great (at least I can use the Apple Music app
 

Jo-Toku

Donator
Donator
AMD OS X Member
Joined
Dec 29, 2021
Messages
234
Bad news guys, the 6800hs cpu doesn’t support tsc_adjust either.
I gave up waiting and bought a rog flow x13 2022, it’s 6800hs+3050, I checked in AIDA64 that it also has not support for tsc_adjustView attachment 6024
By the way, windows11 is really better for touch screen users, and the android subsystem is also great (at least I can use the Apple Music app
So the only way, is having it hacked? I am willing to help donate for somebody that knows how to hack it and make it work
 

OG Nerd

Knows Enough To Get In Trouble
Donator
AMD OS X Member
Joined
Dec 7, 2021
Messages
284
I had heard from two different person that they might have solved it by modding the bios and motherboard themselves, or maybe we are counting on the Opencore team.
Can you get them to elaborate on it a bit more? My legion 5 will be here tomorrow so I will be able to add to testing as well.
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
2,167
I don't think that the tsc-adjust is the issue... My 5600x also doesn't report it yet works just fine.


 

OG Nerd

Knows Enough To Get In Trouble
Donator
AMD OS X Member
Joined
Dec 7, 2021
Messages
284
Do we know what chipset the Legion 5 is using for its mobo?
 
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.