AMD Rayon R7 5800H Install Monterey kernel Panic

zxc2689963

Active member
AMD OS X Member
Feb 27, 2022
135
92
28
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

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...
Okay @zxc2689963 & @Jo-Toku,

I have one more thing for you to try. Please test this new SSDT-CPUR-5800H-1.aml file.
Disable your SSDT-CPUR (keep it aside) and use this one instead and let me know if it works.
It may be able to run macOS without using cpus=1.
 

Attachments

Okay @zxc2689963 & @Jo-Toku,

I have one more thing for you to try. Please test this new SSDT-CPUR-5800H-1.aml file.
Disable your SSDT-CPUR (keep it aside) and use this one instead and let me know if it works.
It may be able to run macOS without using cpus=1.
Thanks for your help, but failed again, unable to get rid of cpus=1, which was annoying
 
  • Like
Reactions: Middleman
I still cannot get past installing 11.6.7, it hangs in different spots around ionvme, can anyone confirm they are using a Realtek wireless m.2? I believe that is the culprit. That or the fact I’m using 2 identical ssds maybe. (I am trying to install with efi started from on post #98
 
I still cannot get past installing 11.6.7, it hangs in different spots around ionvme, can anyone confirm they are using a Realtek wireless m.2? I believe that is the culprit. That or the fact I’m using 2 identical ssds maybe. (I am trying to install with efi started from on post #98
I am not. I swapped it to a fenvi m.2. The drive is a Western Digital Black SN750
 
I am not. I swapped it to a fenvi m.2. The drive is a Western Digital Black SN750
Yeah I ordered an Intel ax210ngw wireless card… will be here Monday so hopefully that will solve the issue. If not I may switch to SN 750 SSDs… these xpg gammix blades were working on a couple of my other ryzentoshes so I assumed they should work with this, but since the legion is finicky it might be them causing the hang.
 
  • Like
Reactions: OG Nerd
Yeah I ordered an Intel ax210ngw wireless card… will be here Monday so hopefully that will solve the issue. If not I may switch to SN 750 SSDs… these xpg gammix blades were working on a couple of my other ryzentoshes so I assumed they should work with this, but since the legion is finicky it might be them causing the hang.
It was impossible to install anything on the drives that the Legion came with. Mine came with 2 TB and none of the 2 drives worked


Note: my fenvi wifi dont work. The Bl does. but it works on other oses, weird
 
  • Like
Reactions: OG Nerd
I still cannot get past installing 11.6.7, it hangs in different spots around ionvme, can anyone confirm they are using a Realtek wireless m.2? I believe that is the culprit. That or the fact I’m using 2 identical ssds maybe. (I am trying to install with efi started from on post #98
BigSur does not start successfully every time, there will be a probability of getting stuck in (IONVme or apfs_module), and it needs to be forced to restart several times.
 
BigSur does not start successfully every time, there will be a probability of getting stuck in (IONVme or apfs_module), and it needs to be forced to restart several times.
Thanks for your help, but failed again, unable to get rid of cpus=1, which was annoying
Yes sure. You should have told me earlier.

There was a reason why I made that - because I discovered that the SSDT-CPUR you are all currently using is mainly for the desktop Ryzen series - not laptop by looking through the DSDT dump - that’s why it struggles to boot in Big Sur. I think you should try using the new one for now until we find a way to sort out the CPUs=1 issue. Perhaps TSCAdjustReset may work with it.
 
  • Like
Reactions: OG Nerd
Guys,

Would it not be too troubling for you if I could ask you for an IOReg dump of your current working system on the Legion 5 with Big Sur?
I am just a bit curious and want to know more about the system.

Also I want to check - if you type in: kextstat | grep -E "AppleSMBusController|AppleSMBusPCI" what does it show for you in Terminal?
 
Guys,

Would it not be too troubling for you if I could ask you for an IOReg dump of your current working system on the Legion 5 with Big Sur?
I am just a bit curious and want to know more about the system.

Also I want to check - if you type in: kextstat | grep -E "AppleSMBusController|AppleSMBusPCI" what does it show for you in Terminal?
I am on Monterey unfortunately
 
  • Like
Reactions: Middleman
Guys,

Would it not be too troubling for you if I could ask you for an IOReg dump of your current working system on the Legion 5 with Big Sur?
I am just a bit curious and want to know more about the system.

Also I want to check - if you type in: kextstat | grep -E "AppleSMBusController|AppleSMBusPCI" what does it show for you in Terminal?
I have an IOReg file that saves BigSur
 

Attachments

  • Like
Reactions: OG Nerd
@zxc2689963, I noticed on your config you filed the the device property of the RX6600m. What does this do?

Screen Shot 2022-06-12 at 5.45.56 PM.png

Was this to avoid the white noise when getting to the installer screen?

Reason I ask:
In have 3 laptops with 2X with RX580's and 1X with Vega 56. and none allow me to enter the installer page after Mojave. From Catalina to Monterey I get white noise instead of the installer page. I dont have that issue with High Sierra and Mojave. I noticed that the GPU device property differs from your config. Now, have you ever witnessed the white noise and if so, how did you solve it?
 
Last edited:
  • Like
Reactions: OG Nerd
@zxc2689963, I noticed on your config you filed the the device property of the RX6600m. What does this do?

View attachment 6102

Was this to avoid the white noise when getting to the installer screen?

Reason I ask:
In have 3 laptops with 2X with RX580's and 1X with Vega 56. and none allow me to enter the installer page after Mojave. From Catalina to Monterey I get white noise instead of the installer page. I dont have that issue with High Sierra and Mojave. I noticed that the GPU device property differs from your config. Now, have you ever witnessed the white noise and if so, how did you solve it?
@Jo-Toku
Actually that should be quite easy to fix. I have a RX550 set up for my B550 here >


In addition to the device-id I use the setting no-gfx-spoof set to 01000000 using Type: Data. This allows any AMD card with similar specs to be used. It also needs the boot-arg npci=0x2000 agdpmod=ignore (this is for RX580 cards). This could work for Vega64 too.

On laptops you may also need the PEGP to GFX0 ACPI patch.
 
  • Love
Reactions: Jo-Toku
@Jo-Toku
Actually that should be quite easy to fix. I have a RX550 set up for my B550 here >


In addition to the device-id I use the setting no-gfx-spoof set to 01000000 using Type: Data. This allows any AMD card with similar specs to be used. It also needs the boot-arg npci=0x2000 agdpmod=ignore (this is for RX580 cards). This could work for Vega64 too.

On laptops you may also need the PEGP to GFX0 ACPI patch.
Nice, can you confirm that you have witnessed the white noise on the installers starting with 10.15-12 before and this solved it? 🔥
 
  • Like
Reactions: Middleman
Nice, can you confirm that you have witnessed the white noise on the installers starting with 10.15-12 before and this solved it? 🔥
I haven't seen any white noise, but I can also tell you I managed to install both Mojave and Catalina on the Atari VCS which uses an AMD APU with a Vega64 chip.
I made a guide for it here > https://www.tonymacx86.com/threads/guide-atari-vcs-2020-console.309903/

I think you should have a look at it because it is a more compatible setup for AMD based laptops, particularly if you want to get the graphics working.

I haven't updated it yet with the new no-gfx-spoof method as that was a recent addition from Opencore. But I think it should work.
 
  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.