SailorTom Posted March 30, 2016 Share Posted March 30, 2016 Ok, so this is my first build. I actually put it together in the back end of 2014, installed Yosemite, did a direct upgrade to El Capitan. I've always had recurring kernel panics which I've mostly just ignored, but thought it's about time I dug into it a little more. The research and experiments I've done haven't had any affect, so could really use some help now. First off, the hardware. It's a simple build: GA-H97M-HD3 i7-4790S 1x 8GB DIMM (Crucial) SSD & HDD LG BDDVDRW UH12NS30 Clover config is attached. I try to keep it relatively minimal. I haven't done anything with DSDT. Most things seem to work OK. The kernel panics mostly (not always) happen when waking from sleep. My current thoughts are that it's something to do with the swap/virtual memory as some of the panic logs are showing bit flips related to XNU. However most of them are showing type 14 page fault or the 13 general protection. The other interesting thing I have noticed is that in all the panic logs the last unloaded kext is AppleUSBMergeNub - this is the only truly consistent thing, but have no idea what to make of it. I ran memtest overnight the other day and this didn't find any errors. I have recently changed SMBIOS to iMac 15,1 from iMac 14,2 as I think this is a closer match to my specs - the KPs span this change so probably not relevant. I've also removed as many extra kexts as possible, the only one I have now is FakeSMC. I'm using clover kext injection rather than direct install to S/L/E. Now hopefully a kind clever person will have some ideas what to try next... config.plist.zip panic logs.zip Link to comment https://www.insanelymac.com/forum/topic/311639-recurring-kernel-panics-maybe-related-to-sleep/ Share on other sites More sharing options...
Allan Posted March 31, 2016 Share Posted March 31, 2016 Try this:config.plist.zip What you have in drivers64UEFI folder? Link to comment https://www.insanelymac.com/forum/topic/311639-recurring-kernel-panics-maybe-related-to-sleep/#findComment-2228884 Share on other sites More sharing options...
SailorTom Posted March 31, 2016 Author Share Posted March 31, 2016 Thanks for your help Allan. I will try out that config and let you know how it goes (may take some time before I can be certain system is stable). In drivers64UEFI I have FSInject-64, OsxAptioFix2Drv-64, OsxFatBinaryDrv-64, VBoxHFS-64. The main things I see you've changed in the config are USB fix ownership and USB inject, enable KernelPm and remove memory entries in the SMBIOS. Can I ask what your thoughts are behind these changes? Link to comment https://www.insanelymac.com/forum/topic/311639-recurring-kernel-panics-maybe-related-to-sleep/#findComment-2229086 Share on other sites More sharing options...
Allan Posted March 31, 2016 Share Posted March 31, 2016 Delete VBoxHFS-64 and add HFSPlus.efi The main things I see you've changed in the config are USB fix ownership and USB inject, enable KernelPm and remove memory entries in the SMBIOS. Can I ask what your thoughts are behind these changes? Clover can detect your Memory entries natively. USBs fix, is to avoid problems with sleep, you need have the proper power management in your entire Hack, and this includes your USB ports. KernelPM is for Haswell CPUs: [GUIDE] Patching the kernel for Haswell CPUs, XCPM early reboot If you use the our search bar, you can find the most things that i've said to you (with details) Link to comment https://www.insanelymac.com/forum/topic/311639-recurring-kernel-panics-maybe-related-to-sleep/#findComment-2229097 Share on other sites More sharing options...
computergek80 Posted March 31, 2016 Share Posted March 31, 2016 I was getting those memory errors on my GA-Z87MX-D3H. I found a thread over at the other site where others with Gigabyte boards were having the same problem with memory corruption after longer sleep. I'd be interested in a solution that doesn't involve replacing the board, because I just did that and I'm having problems with the new one that are possibly unfixable. Link to comment https://www.insanelymac.com/forum/topic/311639-recurring-kernel-panics-maybe-related-to-sleep/#findComment-2229161 Share on other sites More sharing options...
SailorTom Posted April 1, 2016 Author Share Posted April 1, 2016 Delete VBoxHFS-64 and add HFSPlus.efi Good point. Had not really considered this seeing as my booting works perfectly. Clover can detect your Memory entries natively. Actually Clover doesn't detect my memory entirely correctly. Without the SMBIOS config OS X reports only one slot instead of two. Happy to remove the config if it helps stability. Let's see. USBs fix, is to avoid problems with sleep, you need have the proper power management in your entire Hack, and this includes your USB ports. KernelPM is for Haswell CPUs: %5BGUIDE%5D Patching the kernel for Haswell CPUs, XCPM early reboot I'll do some more research around this. If you use the our search bar, you can find the most things that i've said to you (with details) Don't think I haven't already read around these topics and tried these and other parameter changes over the past 18 months; just haven't found the right combination myself yet. I guess a lot of the literature on KernelPM etc is about boot problems; I guess I figured that seeing as I don't have boot problems it's not so relevant. Thanks for pointing me in the right direction. 1 Link to comment https://www.insanelymac.com/forum/topic/311639-recurring-kernel-panics-maybe-related-to-sleep/#findComment-2229442 Share on other sites More sharing options...
SailorTom Posted April 19, 2016 Author Share Posted April 19, 2016 So it's been a while now and with the suggested config.plist changes I'm no longer getting panics on wake. Also memory is now detected correctly - think this was because I previously had Trust key set as false for some unknown reason. Occasionally I find get a KP in the middle of running a task, not sure what that is related to yet. It seems I also have some wifi issues as the computer will wake fully every 2 hours if I have wake for network access on - basically darkwake is not working correctly for me but haven't played around with this since making above changes. Link to comment https://www.insanelymac.com/forum/topic/311639-recurring-kernel-panics-maybe-related-to-sleep/#findComment-2233420 Share on other sites More sharing options...
computergek80 Posted April 23, 2016 Share Posted April 23, 2016 Have you checked your logs for the kernel panic? And as for darkwake, have you tried darkwake=9? It works great for me. Link to comment https://www.insanelymac.com/forum/topic/311639-recurring-kernel-panics-maybe-related-to-sleep/#findComment-2234051 Share on other sites More sharing options...
SailorTom Posted April 25, 2016 Author Share Posted April 25, 2016 I have looked at the logs - nothing jumps out at the moment. I'll get around to posting them at some point. Thanks for the dark wake tip, I'll give it a go. Link to comment https://www.insanelymac.com/forum/topic/311639-recurring-kernel-panics-maybe-related-to-sleep/#findComment-2234505 Share on other sites More sharing options...
Recommended Posts