trulyspinach / SMCAMDProcessor

Power management, monitoring and VirtualSMC plugin for AMD processors
BSD 3-Clause "New" or "Revised" License
1.04k stars 90 forks source link

Misc random kernel panic during boot #56

Open Arabaku opened 4 years ago

Arabaku commented 4 years ago

I have got panic in Ryzen 7 3700x during boot. Almost every start I have the panic and have to restart many times until boot successfully. OpenCore 0.5.8 (using DummyPowerManagement) MSI B450M MORTAT MAX (latest BIOS - 7B89v27)

panic(cpu 4 caller 0xffffff801fa4c32a): Kernel trap at 0xffffff7fa447cf27, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0xffffff802051a768, CR3: 0x000000002ca24000, CR4: 0x00000000003406e0
RAX: 0xffffff801f6eb000, RBX: 0x0000000000000000, RCX: 0xffffff802057e608, RDX: 0x0000000000000000
RSP: 0xffffff83c0413be0, RBP: 0xffffff83c0413c10, RSI: 0xffffff7fa44807f5, RDI: 0xffffff801f800e38
R8:  0x0000000000000010, R9:  0x0000000000000001, R10: 0x0000020000011000, R11: 0x0000000000060008
R12: 0xffffff801f800e78, R13: 0xffffff802051a768, R14: 0xffffff7fa448079d, R15: 0x0000000000000000
RFL: 0x0000000000010246, RIP: 0xffffff7fa447cf27, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0xffffff802051a768, Error code: 0x0000000000000000, Fault CPU: 0x4, PL: 0, VF: 2

Backtrace (CPU 4), Frame : Return Address
0xffffff83c0413640 : 0xffffff801f9215cd 
0xffffff83c0413690 : 0xffffff801fa5a3c5 
0xffffff83c04136d0 : 0xffffff801fa4bf7e 
0xffffff83c0413720 : 0xffffff801f8c7a40 
0xffffff83c0413740 : 0xffffff801f920c97 
0xffffff83c0413840 : 0xffffff801f921087 
0xffffff83c0413890 : 0xffffff80200c2c7c 
0xffffff83c0413900 : 0xffffff801fa4c32a 
0xffffff83c0413a80 : 0xffffff801fa4c028 
0xffffff83c0413ad0 : 0xffffff801f8c7a40 
0xffffff83c0413af0 : 0xffffff7fa447cf27 
0xffffff83c0413c10 : 0xffffff7fa447cde2 
0xffffff83c0413c40 : 0xffffff7fa447c8f4 
0xffffff83c0413d40 : 0xffffff7fa447f0e8 
0xffffff83c0413de0 : 0xffffff8020008c06 
0xffffff83c0413e40 : 0xffffff8020008741 
0xffffff83c0413ef0 : 0xffffff8020007ade 
0xffffff83c0413f50 : 0xffffff802000a296 
0xffffff83c0413fa0 : 0xffffff801f8c713e 
      Kernel Extensions in backtrace:
         wtf.spinach.AMDRyzenCPUPowerManagement(0.6.1)[BFBE38F8-D707-3697-865B-CD19B7E891D7]@0xffffff7fa447b000->0xffffff7fa448efff
            dependency: as.vit9696.Lilu(1.4.4)[78F230A2-8999-38DC-9BD7-DAF332C607FC]@0xffffff7fa41d8000
            dependency: as.vit9696.VirtualSMC(1.1.3)[72968460-A304-3E8E-BDBD-C7E49B0CF9E4]@0xffffff7fa4201000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[1B1F3BBB-9212-3CF9-94F8-8FEF0D3ACEC4]@0xffffff7fa0331000
            dependency: com.apple.kec.Libm(1)[ADC4E2BF-FC3D-3357-8E07-C91D37AC394A]@0xffffff7fa078b000

BSD process name corresponding to current thread: Unknown
Boot args: npci=0x2000 

Mac OS version:
Not yet set

Kernel version:
Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6
Kernel slide:     0x000000001f600000
Kernel text base: 0xffffff801f800000
__HIB  text base: 0xffffff801f700000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file unavailable, panic occurred prior to initialization

System uptime in nanoseconds: 539323868
PSzczepanski1996 commented 4 years ago

I want to note, cleaning NVRam can help though, but it's far from great solution because it cleans your EFI boot entries (not really matters until you have something like GRUB that is not detected by your motherboard BIOS automatically, even if it's installed on separate drive).

ghost commented 4 years ago

I also suffered with the same kernel panic on the 3900X

suntrix commented 4 years ago

I just got this panic on hard boot (via power button), but shortly after completely shutting down Win10 (it seems to have something to do on my PC). I'm not using OC to boot to Windows.

Threadripper 1950X, Gigabyte X399 AORUS XTREME (latest BIOS - F5), OC 0.5.9.

panic(cpu 16 caller 0xffffff801be4aa3a): Kernel trap at 0xffffff7fa286a727, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0xffffff801c91a7b0, CR3: 0x0000000025d20000, CR4: 0x00000000003406e0
RAX: 0xffffff801baeb000, RBX: 0x0000000000000000, RCX: 0xffffff801c97e720, RDX: 0x0000000000000000
RSP: 0xffffff8ab66dbbd0, RBP: 0xffffff8ab66dbc00, RSI: 0xffffff7fa286f62b, RDI: 0xffffff801bc00e38
R8:  0x0000000000000010, R9:  0x0000000000000001, R10: 0x0000000000000093, R11: 0x0000000000000000
R12: 0xffffff801bc00e78, R13: 0xffffff801c91a7b0, R14: 0xffffff7fa286f507, R15: 0x0000000000000000
RFL: 0x0000000000010246, RIP: 0xffffff7fa286a727, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0xffffff801c91a7b0, Error code: 0x0000000000000000, Fault CPU: 0x10, PL: 0, VF: 2

Backtrace (CPU 16), Frame : Return Address
0xffffff8ab66db630 : 0xffffff801bd1f5cd 
0xffffff8ab66db680 : 0xffffff801be58b05 
0xffffff8ab66db6c0 : 0xffffff801be4a68e 
0xffffff8ab66db710 : 0xffffff801bcc5a40 
0xffffff8ab66db730 : 0xffffff801bd1ec97 
0xffffff8ab66db830 : 0xffffff801bd1f087 
0xffffff8ab66db880 : 0xffffff801c4c27cc 
0xffffff8ab66db8f0 : 0xffffff801be4aa3a 
0xffffff8ab66dba70 : 0xffffff801be4a738 
0xffffff8ab66dbac0 : 0xffffff801bcc5a40 
0xffffff8ab66dbae0 : 0xffffff7fa286a727 
0xffffff8ab66dbc00 : 0xffffff7fa286a5e2 
0xffffff8ab66dbc30 : 0xffffff7fa286998f 
0xffffff8ab66dbd30 : 0xffffff7fa286d289 
0xffffff8ab66dbde0 : 0xffffff801c4086a6 
0xffffff8ab66dbe40 : 0xffffff801c4081e1 
0xffffff8ab66dbef0 : 0xffffff801c40757e 
0xffffff8ab66dbf50 : 0xffffff801c409d36 
0xffffff8ab66dbfa0 : 0xffffff801bcc513e 
      Kernel Extensions in backtrace:
         wtf.spinach.AMDRyzenCPUPowerManagement(0.6.4)[1C8D6AF1-3F8A-3298-BCAE-5CAEE5D4A19B]@0xffffff7fa2868000->0xffffff7fa2880fff
            dependency: as.vit9696.Lilu(1.4.5)[E42CE60E-EC0B-33AE-A513-5383B81BF165]@0xffffff7fa2826000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[BE052F4D-9B80-3FCD-B36D-BACB7DEE0DF2]@0xffffff7f9c731000
            dependency: com.apple.kec.Libm(1)[05E4B743-49ED-3FC0-8924-25105AB32F48]@0xffffff7f9cdf4000

BSD process name corresponding to current thread: Unknown
Boot args: -v agdpmod=pikera 

Mac OS version:
Not yet set

Kernel version:
Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64
Kernel UUID: 54F1A78D-6F41-32BD-BFED-4381F9F6E2EF
Kernel slide:     0x000000001ba00000
Kernel text base: 0xffffff801bc00000
__HIB  text base: 0xffffff801bb00000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file unavailable, panic occurred prior to initialization

System uptime in nanoseconds: 1128318452
hmaleville commented 4 years ago

Same problem with Ryzen 3600:

  Kernel Extensions in backtrace:
     wtf.spinach.AMDRyzenCPUPowerManagement(0.6.4)[1C8D6AF1-3F8A-3298-BCAE-5CAEE5D4A19B]@0xffffff7fa063f000->0xffffff7fa0657fff
        dependency: as.vit9696.Lilu(1.4.4)[F5046AD3-418C-395C-9862-F80D7B19B7C2]@0xffffff7fa0402000
        dependency: com.apple.iokit.IOPCIFamily(2.9)[1B1F3BBB-9212-3CF9-94F8-8FEF0D3ACEC4]@0xffffff7f9c8b3000
        dependency: com.apple.kec.Libm(1)[ADC4E2BF-FC3D-3357-8E07-C91D37AC394A]@0xffffff7f9c55e000

It seems to happen only after a cold boot. May be related to temperature/fan monitoring?