profzei / Matebook-X-Pro-2018

đź’» Latest macOS on Huawei Matebook X Pro 2018
Apache License 2.0
372 stars 48 forks source link

Random kernel panics in EFI 2.1 #157

Closed giorgiolongo closed 3 years ago

giorgiolongo commented 3 years ago

After updating to the 2.0 EFI i keep getting kernel panics. Randomly it starts not responding then after 20-30 seconds of spinning wheel it crashes. Here's my kernel panic log

{"timestamp":"2021-03-25 00:10:26.00 +0100",
"bug_type":"210",
"os_version":"macOS 11.2.1 (20D74)",
"incident_id":"94E0D515-0A92-4B8C-AFC0-9A55D5F9CEE6"}

{"macOSProcessedStackshotData":"bm8gb24gZGlzayBvciBzbGVlcC93YWtlIGZhaWx1cmUgcGFuaWMgc3RhY2tzaG90IGZvdW5k",
"macOSPanicString":"

panic(cpu 2 caller 0xffffff8008b86d06): nvme: \"Fatal error occurred. CSTS=0x1 US[1]=0x0 US[0]=0x5d VID=0x2646 DID=0x2263\n. 
FW Revision=S5Z42105\\n
\"@\/AppleInternal\/BuildRoot\/Library\/Caches\/com.apple.xbs\/Sources\/IONVMeFamily\/IONVMeFamily-557.60.1\/Common\/IONVMeController.cpp:5472\n
Backtrace (CPU 2), Frame : Return Address\n
0xffffffa0964eb960 : 0xffffff80064bab4d \n
0xffffffa0964eb9b0 : 0xffffff80065fd7e3 \n
0xffffffa0964eb9f0 : 0xffffff80065ede1a \n
0xffffffa0964eba40 : 0xffffff800645fa2f \n
0xffffffa0964eba60 : 0xffffff80064ba3ed \n
0xffffffa0964ebb80 : 0xffffff80064ba6d8 \n
0xffffffa0964ebbf0 : 0xffffff8006cbef9a \n
0xffffffa0964ebc60 : 0xffffff8008b86d06 \n
0xffffffa0964ebc80 : 0xffffff8008b6b427 \n
0xffffffa0964ebde0 : 0xffffff8006c1d385 \n
0xffffffa0964ebe50 : 0xffffff8006c1d286 \n
0xffffffa0964ebe80 : 0xffffff80064ff725 \n
0xffffffa0964ebef0 : 0xffffff8006500634 \n
0xffffffa0964ebfa0 : 0xffffff800645f13e \n
Kernel Extensions in backtrace:\n         
com.apple.iokit.IONVMeFamily(2.1)[D5DFC80E-EF7A-3660-BE57-473E67626B44]@0xffffff8008b64000->0xffffff8008b8dfff\n            
dependency: com.apple.driver.AppleEFINVRAM(2.1)[D6C13E44-3657-3F40-99E4-355DAA82202E]@0xffffff800785a000->0xffffff8007863fff\n            
dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[2A454117-CDAA-301F-B609-BA396742C91A]@0xffffff8007a01000->0xffffff8007a15fff\n            
dependency: com.apple.iokit.IOPCIFamily(2.9)[BF2C5E86-1E8F-3FD4-9874-7738178FA73B]@0xffffff8008e1f000->0xffffff8008e46fff\n            
dependency: com.apple.iokit.IOReportFamily(47)[D3C4FAA4-8F06-3C5C-AB36-4BE632CCE051]@0xffffff8008e55000->0xffffff8008e57fff\n            
dependency: com.apple.iokit.IOStorageFamily(2.1)[B5300908-BF34-3D47-8776-FB154A6DEE4C]@0xffffff8008f3f000->0xffffff8008f50fff\n
\n
Process name corresponding to current thread: kernel_task\n
Boot args: -igfxnorpsc=1\n
\n
Mac OS version:\n20D74\n
\n
Kernel version:\n
Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1\/RELEASE_X86_64\n
Kernel UUID: C86236B2-4976-3542-80CA-74A6B8B4BA03\n
KernelCache slide: 0x0000000006200000\n
KernelCache base:  0xffffff8006400000\n
Kernel slide:      0x0000000006210000\n
Kernel text base:  0xffffff8006410000\n
__HIB  text base: 0xffffff8006300000\n
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)\n
System shutdown begun: NO\n
Panic diags file available: YES (0x0)\n
Hibernation exit count: 0\n
\n
System uptime in nanoseconds: 61861486173597\n
Last Sleep:           absolute           base_tsc          base_nano\n  
Uptime  : 0x000038433fe8aa77\n  
Sleep   : 0x00002bd7d65b8b1d 0x0000000030dc556d 0x00002bcebc111b4a\n  
Wake    : 0x00002bd817a1b409 0x00000000319d36b3 0x00002bd7ef96acf1\n\n\n

"}
giorgiolongo commented 3 years ago

this also happens when trying to update to 11.2.3, where after loading for a while it crashes and goes back to the current installation of 11.2.1

profzei commented 3 years ago

@giorgioshine Is your install on an external disk plugged-in to thunderbold-usbc port?

giorgiolongo commented 3 years ago

@profzei nope, I bought a Kingston a2000 as a replacement for the pm981. it worked perfectly for a while and just recently I got this kps. I looked into the logs and I think I'm going to try removing nvmefix as it might cause issues with an SSD which should work out of the box. if you have any idea on what's causing the issue let me know. and thanks for the amazing config

giorgiolongo commented 3 years ago

I fixed it by disabling NVMEfix in config.plist

profzei commented 3 years ago

@giorgioshine Thank you for your feedback: I'll add this info in homepage for other users!

profzei commented 3 years ago

@giorgioshine I just found the following in NVMeFix's Changelog for next (April) release:

Added APST workaround for Kingston A2000

If you like, then you could give it one more shot: I'm going to make it available in my next (April) release...

giorgiolongo commented 3 years ago

@profzei oh ok perfect. I'll update as soon as the new release comes out