Random panic in IONVMeController
*** Panic Report ***
panic(cpu 2 caller 0xffffff7f89076c0c): nvme: "Fatal error occurred. CSTS=0x1 US[1]=0x0 US[0]=0x10 VID/DID=0x2262126f
. FW Revision=SVN163\n"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/IONVMeFamily/IONVMeFamily-387.260.15/IONVMeController.cpp:5334
Backtrace (CPU 2), Frame : Return Address
0xffffff81fa31ba10 : 0xffffff80057aea2d
0xffffff81fa31ba60 : 0xffffff80058e9e95
0xffffff81fa31baa0 : 0xffffff80058db70a
0xffffff81fa31bb10 : 0xffffff800575bb40
0xffffff81fa31bb30 : 0xffffff80057ae447
0xffffff81fa31bc50 : 0xffffff80057ae293
0xffffff81fa31bcc0 : 0xffffff7f89076c0c
0xffffff81fa31be20 : 0xffffff8005e5e877
0xffffff81fa31be90 : 0xffffff8005e5e799
0xffffff81fa31bec0 : 0xffffff80057ed9b5
0xffffff81fa31bf40 : 0xffffff80057ed555
0xffffff81fa31bfa0 : 0xffffff800575b0ce
Kernel Extensions in backtrace:
com.apple.iokit.IONVMeFamily(2.1)[FAFF8EA6-B8EF-314D-886A-DEAB39FF3EA9]@0xffffff7f89069000->0xffffff7f890a8fff
dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[A367CF6B-B3EA-36FE-86E6-03B771CA8A69]@0xffffff7f865fa000
dependency: com.apple.iokit.IOPCIFamily(2.9)[CC6A465F-5A24-304D-B9DF-8C27819CC214]@0xffffff7f86095000
dependency: com.apple.driver.AppleEFINVRAM(2.1)[C3C74D36-E06B-3753-A373-5BC9D486DD9C]@0xffffff7f867d0000
dependency: com.apple.iokit.IOStorageFamily(2.1)[D43332F2-2D40-3DF1-8F77-D633BCDAE660]@0xffffff7f863f0000
dependency: com.apple.iokit.IOReportFamily(47)[5772C11C-ED28-322A-910F-874583B23101]@0xffffff7f86f27000
Happens with 1TB/512GB HP EX920. With power nap enabled, device will randomly power down after a few days of dark wakes. Sometimes also happens after a burst of IO (such as a disk scan).
EDIT: Seems to be related to overheating/OSX kernel issues.
This issue seems to be in OSX. People running this ssd in an adapter on real Mac hit the same issue. Waiting for Apple to fix.
Same here, coming back from sleep, or even today suddenly white typing.
Thu Sep 5 14:21:33 2019
*** Panic Report *** panic(cpu 0 caller 0xffffff7f8dc05b30): nvme: "Fatal error occurred. CSTS=0xffffffff US[1]=0x0 US[0]=0xd VID/DID=0x2263126f . FW Revision=R1115A0\n"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/IONVMeFamily/IONVMeFamily-387.270.1/IONVMeController.cpp:5334 Backtrace (CPU 0), Frame : Return Address 0xffffff81e94b3a10 : 0xffffff800bdae6ed 0xffffff81e94b3a60 : 0xffffff800beea185 0xffffff81e94b3aa0 : 0xffffff800bedb8ba 0xffffff81e94b3b10 : 0xffffff800bd5bb40 0xffffff81e94b3b30 : 0xffffff800bdae107 0xffffff81e94b3c50 : 0xffffff800bdadf53 0xffffff81e94b3cc0 : 0xffffff7f8dc05b30 0xffffff81e94b3e20 : 0xffffff800c45f387 0xffffff81e94b3e90 : 0xffffff800c45f2a9 0xffffff81e94b3ec0 : 0xffffff800bded885 0xffffff81e94b3f40 : 0xffffff800bded425 0xffffff81e94b3fa0 : 0xffffff800bd5b0ce Kernel Extensions in backtrace: com.apple.iokit.IONVMeFamily(2.1)[A67B3600-6FE3-3037-AC41-8C2D353B6250]@0xffffff7f8dbf8000->0xffffff7f8dc37fff dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[1D716047-7F62-3FFA-8C01-26C166B3739A]@0xffffff7f8cb2a000 dependency: com.apple.iokit.IOPCIFamily(2.9)[BFDEB8D4-50FE-3DDB-87B7-F6A504393830]@0xffffff7f8c695000 dependency: com.apple.driver.AppleEFINVRAM(2.1)[B83F29B8-24AC-303B-BBBA-CF332168FDE6]@0xffffff7f8cd00000 dependency: com.apple.iokit.IOStorageFamily(2.1)[71BB22B0-3075-35A1-B04E-FBAC574DA80D]@0xffffff7f8c98f000 dependency: com.apple.iokit.IOReportFamily(47)[0BC9F93B-456A-3D97-BE4C-69DCBB5E8A3C]@0xffffff7f8d104000
BSD process name corresponding to current thread: kernel_task
Mac OS version: 18G95
Kernel version: Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 Kernel UUID: C41337A1-0EC3-3896-A954-A1F85E849D53 Kernel slide: 0x000000000ba00000 Kernel text base: 0xffffff800bc00000 __HIB text base: 0xffffff800bb00000 System model name: MacBookPro11,4 (Mac-06F11FD93F0323C5)
What model of SSD?
Could be related to overheating issues in the NVMe https://github.com/osy86/HaC-Mini/issues/49#issuecomment-531425516
This might also be caused by PowerNap. There are reports of panics when using non-Apple NVMe with PowerNap, especially on Catalina betas.
In addition, the panic might also be more likely on Samsung NVMe drives. This might also be connected to heat since some Samsung NVMe drives can get "stuck" in a failed TRIM cycle for minutes at a time during boot up.
It might be connected to dark wake but it can’t be “caused” by dark wake because all it does is trigger wake ups on a timer. Btw I’m assuming you’re referring to dark wake because the “power nap” feature requires special Apple hw support and doesn’t work on any hackintosh. But dark wake is just “power nap” without the power saving features brought by Apple hw.
Btw I’m assuming you’re referring to dark wake because the “power nap” feature requires special Apple hw support and doesn’t work on any hackintosh. But dark wake is just “power nap” without the power saving features brought by Apple hw.
I'm not convinced that there is /no/ attempt by macOS to use power savings features on non-Apple hardware (for better or for worse) when PowerNap is enabled. I've read reports of fans behaving differently or not spinning (similar to what real Mac do) on particular hackintoshes during PowerNap dark wakes. But yes, I was referring to dark wake when I said "power nap" above. I apologize for my lack of clarity.
Just following up on this and after putting better cooling on my nvme's some time ago have not had a single issue since. In fact I have put even more cooling in and on full load to the drives the temps hardly move.

That’s great to hear! I’ve read that Samsung drives do run pretty hot on Hackintoshes so it’s great you were able to fix it.
What model of SSD?
I bought a HatSSD, clean installed Mojave on it, crashes happen randomly even while using the machine, suddenly kernel panic.
I had the same issue for over two years running the system with a 960EVO samsung ssd. The issue could be started in mac OS but over time the crashes got more frequent at a point I could not boot into system and even install windows anymore. It crashed in windows, so one of these can be true (at least in my experience):
- Mac OS crashes lowers the ssd or motherboard nvme socket life expectancy over time (short circuit on each panic?) Anyone experienced that? Are the KP more frequent? Someone lost the ssd?
- The problem is on 960 evo (Samsung recognized the problem on last firmware with no feedback until this moment.
- The problem is on the mobtherboard? (some users above reported the problem on non-samsung nvme drives.
My bet is that the kernel panic comes from a wrong parameter in mac os that messes up the drive (or the motherboard socked) frying these components over time. The reason I believe that is:
- This https://patchwork.kernel.org/patch/10542393/ (as pointed by @07151129 in this thread
- My system running smoothly after restoring the backup on a Sandisk sata ssd.
- Never reading reports from users having problems using 960 evo regularly on windows.
- My drive breaking to a point it crashed on windows an it was not usable anymore (after using it for 2 years on mac)
Next month I'll buy another nvme ssd (I don't know if I try another model from samsung - 970?; or from another brand to test it). With it, I'll know if my Motherboard socket is dead (in case it still crashes with the new drive), or if the old drive was the problem (in the case it works fine).
I don't think the bug from Linux is relevant after all: I looked at IONVMeFamily, and haven't found any usage of FLR. Rather, PCI power states are used to reset the controller.
this panic happened on one of units in my care. It's 13 inch model of early 2015 macbook pro.
main culprit is the BootRom 188.0.0.0 version introduced in Catalina 10.15.2 which seems to increase power supply to the SSD (not sure what the objective is, but i guess it's performance related) make it run hotter and crashing during IO burst (installing/copying big file/app)
doesnt matter what i did, it keep happening, even clean installation of OS will crash in the midle. I only able to install clean OS by plugging my NVME drive to external enclosure.
the drive itself is not a culprit here (in contrary with what a lot of people suggest, that drive might have defect). Because i even swap between 3 drives available (with cross brands and capacity) and any of them will crash on this particular macbook, but run just fine on other units.
what finally solved issue for me is installing 10.15.3 when it released, forcing the BootRom to go up again to 189.0.0.0 and then combined with downgrading to Mojave and run HFS+ instead of APFS.
now it run stable in almost any condition, even during high load. But just for precaution, i also installing mac fan control to monitor and keep the NVME stick cool, since i notice that when it heat up past 50 degree C, the performance seems to drop (stuttering UI, etc). This never happen with other units (i've been installing NVME stick to dozens of macbook pr and air). So, weird indeed, but luckily it solved after much frustration.
We've had a panic on PM981 where we observed the following:
I/O Read command (qid=1, opcode=2) timed out. We then got panic log leading to RequestAsyncEvents call. Now, I'm not sure if the panic is due to the I/O command out, or due to the RequestAsyncEvents command timing out, but if we disable RequestAsyncEvents, then we seemingly do not get the panic anymore. It also seems to be safe to do so, as IONVMeController::CompleteAsyncEvent, which is the command completion callback, does nothing in IONVMeController::AsyncEventHandler. In any case, NVMe 1.3 spec states there's no timeout for Asynchronous Event Request command, but it looks like IONVMe still uses one.
Curiously, IONVMeController::PolledIO immediately follows IONVMeController::RequestAsyncEvents, but the panic message is not from PolledIO.
We're sometimes getting exactly the same panic on a virtual machine.
Coincidentally, AppleNVMeSMARTUserClient does not seem to filter log page IDs, which may cause Apple-specific IDs to hang the controller if a user client does not check controller VID/DID. I only noticed this by accident when I incorrectly assumed the I/O command was submitted to the admin queue.
https://github.com/acidanthera/NVMeFix/commit/66c9de5ee23077f33482d42ae2eae1458b779200 should fix this kind of panics.
Thank you for fixing Apple's bugs!
Excuse me for being completely not versed when it comes to Github... How on earth does one use the acidanthera/NVMeFix . I have a late 2015 iMac with a Fledging m13 turbo drive and replaced the normal 3.5 drive with a firecuda. I have reversed operating systems, clean installed, the fusion drive is set up properly. This is the only "fix" I am seeing to the random restart problem and lost and don't know how to use it.
More to the question. I have Xcode and have Cloned the code and opened it. How exactly do I put this in the /library/extensions like it says for install.
@ericmschwanke try https://github.com/osy86/HaC-Mini/suites/646220359/artifacts/5470857 I've added an installer option
acidanthera/NVMeFix@66c9de5 should fix this kind of panics.
unfortunately, i load nvmeFix and lilu, load success, but nothing helps, ssd is 970evo
That’s unfortunate but the issue is outside the scope of this project as it is a third party part that other hackintoshes experience the same problem with.