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

[SOLVED] Kernel Panic within a minute from boot #124

Closed horus1963 closed 3 years ago

horus1963 commented 3 years ago

Hi,

When I install these extensions on my Threadripper 3960x system, I get a kernel panic within a minute from login. Below are the last two kernel panic logs:

==========================================================================================

panic(cpu 14 caller 0xffffff800dfe1860): "Spinlock acquisition timed out: lock=0xffffff871d3f9740, lock owner thread=0xffffff8720cd5d10, current_thread: 0xffffff8720cd5d10, lock owner active on CPU 0xe, current owner: 0xffffff8720cd5d10, time: 231682391253"@/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-7195.60.75/osfmk/i386/locks_i386.c:505 Backtrace (CPU 14), Frame : Return Address 0xffffffc193bdbac0 : 0xffffff800deb9aed mach_kernel : _handle_debugger_trap + 0x3dd 0xffffffc193bdbb10 : 0xffffff800dffc6e3 mach_kernel : _kdp_i386_trap + 0x143 0xffffffc193bdbb50 : 0xffffff800dfecd1a mach_kernel : _kernel_trap + 0x55a 0xffffffc193bdbba0 : 0xffffff800de5ea2f mach_kernel : _return_from_trap + 0xff 0xffffffc193bdbbc0 : 0xffffff800deb938d mach_kernel : _DebuggerTrapWithState + 0xad 0xffffffc193bdbce0 : 0xffffff800deb9678 mach_kernel : _panic_trap_to_debugger + 0x268 0xffffffc193bdbd50 : 0xffffff800e6be3ca mach_kernel : _panic + 0x54 0xffffffc193bdbdc0 : 0xffffff800dfe1860 mach_kernel : _spinlock_timeout_NMI 0xffffffc193bdbe00 : 0xffffff800de9585c mach_kernel : _ipc_kmsg_send + 0x6c 0xffffffc193bdbe60 : 0xffffff800dead012 mach_kernel : _mach_msg_overwrite_trap + 0x2d2 0xffffffc193bdbef0 : 0xffffff800dfd0ec3 mach_kernel : _mach_call_munger64 + 0x273 0xffffffc193bdbfa0 : 0xffffff800de5f216 mach_kernel : _hndl_mach_scall64 + 0x16

Process name corresponding to current thread: LogiMgrDaemon Boot args: keepsyms=1 agdpmod=pikera alcid=1 debug=0x100 chunklist-security-epoch=0 -chunklist-no-rev2-dev

Mac OS version: 20C69

Kernel version: Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 Kernel UUID: 82E2050C-5936-3D24-AD3B-EC4EC5C09E11 KernelCache slide: 0x000000000dc00000 KernelCache base: 0xffffff800de00000 Kernel slide: 0x000000000dc10000 Kernel text base: 0xffffff800de10000 __HIB text base: 0xffffff800dd00000 System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94) System shutdown begun: NO Panic diags file available: YES (0x0) Hibernation exit count: 0

System uptime in nanoseconds: 231682832466 Last Sleep: absolute base_tsc base_nano Uptime : 0x00000035f15f7bf4 Sleep : 0x0000000000000000 0x0000000000000000 0x0000000000000000 Wake : 0x0000000000000000 0x0000002583c8229e 0x0000000000000000

=====================================================================================

panic(cpu 14 caller 0xffffff801fdedd19): "Double fault at 0xffffff801fde7778, registers:\n" "CR0: 0x000000008001003b, CR2: 0xffffffc1a59a3cc8, CR3: 0x000000002691f000, CR4: 0x00000000003406e0\n" "RAX: 0x0000000000000000, RBX: 0xffffff801fb14fc0, RCX: 0x000000002691f000, RDX: 0x000000000000000e\n" "RSP: 0xffffffc1a59a3cd8, RBP: 0xffffffc1a59a3ce0, RSI: 0x0000000ffdbf2000, RDI: 0xffffff8020ab0d00\n" "R8: 0xffffff8020a4e150, R9: 0x000000000000000e, R10: 0x0000000000000000, R11: 0x000000002691f000\n" "R12: 0xffffff87258cdc40, R13: 0x0000003918fc0ff3, R14: 0xffffff87258cdbf0, R15: 0xffffffa125486678\n" "RFL: 0x0000000000010046, RIP: 0xffffff801fde7778, CS: 0x0000000000000008, SS: 0x0000000000000010\n" "Error code: 0x0000000000000000\n"@/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-7195.60.75/osfmk/i386/trap_native.c:168 Backtrace (CPU 14), Frame : Return Address 0xffffff801fb5d2d0 : 0xffffff801fcb9aed mach_kernel : _handle_debugger_trap + 0x3dd 0xffffff801fb5d320 : 0xffffff801fdfc6e3 mach_kernel : _kdp_i386_trap + 0x143 0xffffff801fb5d360 : 0xffffff801fdecd1a mach_kernel : _kernel_trap + 0x55a 0xffffff801fb5d3b0 : 0xffffff801fc5ea2f mach_kernel : _return_from_trap + 0xff 0xffffff801fb5d3d0 : 0xffffff801fcb938d mach_kernel : _DebuggerTrapWithState + 0xad 0xffffff801fb5d4f0 : 0xffffff801fcb9678 mach_kernel : _panic_trap_to_debugger + 0x268 0xffffff801fb5d560 : 0xffffff80204be3ca mach_kernel : _panic + 0x54 0xffffff801fb5d5d0 : 0xffffff801fdedd19 mach_kernel : _sync_iss_to_iks_unconditionally + 0x159 0xffffff801fb5d6c0 : 0xffffff80204bedd8 mach_kernel : _panic_double_fault64 + 0x27 0xffffff801fb5d6d0 : 0xffffff801fc5f2af mach_kernel : _hndl_double_fault + 0xf 0xffffffc1a59a3ce0 : 0xffffff801fde9d42 mach_kernel : _machine_stack_handoff + 0x82 0xffffffc1a59a3d00 : 0xffffff801fcddc0b mach_kernel : _thread_unstop + 0x17cb 0xffffffc1a59a3d70 : 0xffffff801fcdc3af mach_kernel : _thread_block_reason + 0xaf 0xffffffc1a59a3dc0 : 0xffffff80201f6420 mach_kernel : _workq_thread_set_max_qos + 0x2150 0xffffffc1a59a3e20 : 0xffffff80201f597d mach_kernel : _workq_thread_set_max_qos + 0x16ad 0xffffffc1a59a3ea0 : 0xffffff80201fa01c mach_kernel : _workq_kernreturn + 0x96c 0xffffffc1a59a3f40 : 0xffffff8020368cdb mach_kernel : _unix_syscall64 + 0x27b 0xffffffc1a59a3fa0 : 0xffffff801fc5f1f6 mach_kernel : _hndl_unix_scall64 + 0x16

Process name corresponding to current thread: distnoted Boot args: keepsyms=1 agdpmod=pikera alcid=1 debug=0x100 chunklist-security-epoch=0 -chunklist-no-rev2-dev chunklist-security-epoch=0 -chunklist-no-rev2-dev

Mac OS version: 20C69

Kernel version: Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 Kernel UUID: 82E2050C-5936-3D24-AD3B-EC4EC5C09E11 KernelCache slide: 0x000000001fa00000 KernelCache base: 0xffffff801fc00000 Kernel slide: 0x000000001fa10000 Kernel text base: 0xffffff801fc10000 __HIB text base: 0xffffff801fb00000 System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94) System shutdown begun: NO Panic diags file available: YES (0x0) Hibernation exit count: 0

System uptime in nanoseconds: 245233109062 Last Sleep: absolute base_tsc base_nano Uptime : 0x0000003919084bd4 Sleep : 0x0000000000000000 0x0000000000000000 0x0000000000000000 Wake : 0x0000000000000000 0x000000254ce3274e 0x0000000000000000

=====================================================================================

If you need any more information I will do my best to provide them.

Thanks

trulyspinach commented 3 years ago

Hi, thanks for the issue. Is this happening every time and preventing you from using the kext? I do not have a Threadripper but as for as I know it is the same architecture as Ryzen cpus and others using Threadripper have reported to have no problem running.

horus1963 commented 3 years ago

Yes, it is happening every time. May be it is something specific to my setup. What would you need to help narrow it down?

horus1963 commented 3 years ago

It looks like that having an undervolt in the BIOS of the motherboard is what was causing the problem. With the undervolt the system will kernel panic when SMCAMDProcessor.kext is loaded. Without the undervolt, both the kext and the system are working great so far (has been running for more than 24 hrs with no problems).

Thanks a million for this.