You are on page 1of 8

02/04/14

Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-4700MQ) - OSx86 10.9 (Mavericks) - InsanelyMac Forum
Follow @insanelym ac 1.2k fl u i d | fix ed Like 6,364 follow ers 5k

News

Forum

Downloads

OSx 86 Wiki

Mac Netbook
ora n got a Vi ew New Con t en t Si gn Ou t

OSx 8 6 Pr oject

OSx 8 6 In st a lla t ion

OSx 8 6 1 0 .9 (Ma v er ick s)

Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i74700MQ)
St a r t ed by Reh a bMa n , Nov 0 3 2 0 1 3 0 2 :4 2 A M m averick s , k ernel, m ach_k ernel, lock ed MSR, reboot, pow er m anagem ent,

Pa g e 1 of 2 0

RehabMan

Post ed 0 3 Nov em ber 2 0 1 3 - 0 2 :4 2 A M

I wrote this "som ewhere else" as well, but I thought this m ight be interesting here too... Haswell/Mavericks Troubles Many people with Haswell laptops (and som e desktops) hav e been running into a new problem Apple has thrown at us. The new Mav ericks kernel has power m anagem ent m ov ed down into the kernel. For this reason, m y MacBookAir6 ,2 running Mav ericks does not load AppleIntelCPUPowerManagem ent. In the past, we patched AppleIntelCPUPowerManagem ent to av oid the kernel writing to locked CPU MSRs (m achine specific registers, credit Rev oGirl). Som e BIOSes lock som e of these registers (the com m on one is 0xE2 , I don't know if others can be locked as well). The problem is that touching these registers when they are locked causes an unexpected fault and y ou get a KP. It seem s this KP is so early , that the kernel is unprepared to handle it, and the com puter reboots. Som e people hav e found that if they use a kernel m odified for AMD sy stem s, they are able to boot. I tried this and it indeed works. But other things break... I was able to install (using that kernel), but I couldn't boot with caches (alway s had to use "-f"). Booting with caches caused a KP. In addition, there was no power m anagem ent. CPU was running at x2 4 alway s. But... I decided to see what I could do by building m y own kernel. My m ain thought was to m ake som e changes, see if I could av oid touching locked MSRs with m odifications to the source code with the idea to fold the changes into a patch. So, I downloaded the kernel source from opensource.apple.com , found out how to build it (thanks google!), and tried to use it. On first try , I didn't m ake any changes... and I was surprised that I was able to start the installer with the newly built kernel! No changes and it just works. WTF? Turns out the sources for the kernel do not include the parts for xnu power m anagem ent. Since it isn't there, it doesn't cause the problem . But of course, AppleIntelCPUPowerManagem ent expects for PM to be prov ided by the kernel, so it doesn't work. It doesn't crash, but still no power m anagem ent. Since 1 0.8.5 does not hav e this change, I decided to try the (patched) AppleIntelCPUPowerManagem ent from 1 0.8.5 (v 2 1 4 ). And that actually works. I don't really like doing rollbacks like that, but it is probably a workable solution until som ething better com es along. I still think it m ight be possible to patch the kernel to av oid the MSR writing problem . See updates below on patches. Updat e 2013-11-25 With som e prodding by Pike's blog, I went back to m y original patch that I had attem pted a num ber of weeks ago, and I found the m istakes I had m ade with m y patch (this was prior to building the kernel from sources). The details are on m y blog here: http://racerrehabm an...r-early -reboot/ (http://racerrehabm an.wordpress.com /2 01 3 /1 1 /2 5/m av erickshaswell-kernel-patch-forearly -reboot/) As a result, I'm now running a patched m ach_kernel (not built from source, but patched from retail), MacBookPro1 1 ,2 sm bios.plist, AppleIntelCPUPowerManagem ent.kext, ssdt.am l generated with Pike's script (plugin-ty pe= 1 ). Of course, AppleIntelCPUPowerManagem ent does not load, as all CPU power m anagem ent is handled by the kernel (xcpm ). In other words, it is running just as a real Haswell MacBookPro would as far as power m anagem ent. The only "problem " that I can see, is that I'm not getting pstates between x8 and x2 4 , m uch like the results with iMac1 4 ,2 . I wonder if som ething is m issing (taking the place of X86 Platform Plugin plists?) that the bootloader/DSDT/SSDT should be injecting to inform the kernel's xcpm behav ior? More inv estigation is needed. I will inv estigate by watching the behav ior of m y real MacBookAir6 ,2 and perhaps a friend's real MacBookPro1 1 ,x.

www.insanelymac.com/forum/topic/293503-haswell-early-reboot-mavericks-locked-msrs-and-hp-envy-15-j063cl-i7-4700mq/

1/8

02/04/14

Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-4700MQ) - OSx86 10.9 (Mavericks) - InsanelyMac Forum
Updat e 2013-11-26 It appears that hav ing a jum p in pstates from idle to nom inal (in this case x8 to x2 4 ) is by design. It appears to be intentional. I loaded AppleIntelCPUPowerManagem entInfo.kext on m y MacBookAir6 ,2 and it too jum ps from idle (x8) to nom inal (x1 7 ) with no states in between. Updat e 2013-12-30 By borrowing som e files from a real Mav ericks 1 0.9 .1 install on a real MacBookPro1 1 ,2 , I was able to achiev e states in between idle and nom inal: AICPUPMI: CPU P-States [ 8 (1 7 ) 2 4 2 6 2 9 3 0 3 1 3 2 3 3 3 4 ] GPU P-States [ 1 7 ] Note new state 1 7 . This was booting v ia Clov er with MacBookPro1 1 ,2 sm bios and custom SSDT using ssdtPRgen.sh. In order to do this, I borrowed from the Mac: /Sy stem /Library /CoreServ ices/Platform Support.plist /Sy stem /Library /Extensions/IOPlatform PluginFam ily .kext /m ach_kernel (v ersion 1 3 .0.2 , patched for xcpm ) I'm not sure the kernel replacem ent was necessary , but I did it any way . I think this m eans that when a future v ersion of OS X arriv es that has true support for MacBookPro1 1 ,2 , things will work a bit better. I find it interesting that an owner of a a real MacBookPro1 1 ,2 cannot do a fresh install of 1 0.9 .1 from the App Store and expect their m achine to work as it should. Comput er Specifics HP Env y 1 5-J06 3 CL (Costco) i7 -4 7 00MQ @2 .4 Ghz, 1 2 GB RAM HM87 chipset HD4 6 00 graphics (1 080p panel), BCM4 3 52 ac WiFi (works with only injection) RTL81 1 1 /81 6 8/84 1 1 (works with RealtekRTL81 1 1 ) (I am not certain that I'm keeping this laptop...) Working: - power m anagem ent (see pstate results below) - booting with caches - HD4 6 00 graphics (this com puter uses eDP) (ig-platform -id= 0x0a2 6 0006 ) - HDMI - USB3 (before *and* after sleep) - trackpad/key board (Sy naptics) - sleep - sleep triggered by lid - shutdown/restart - backlit key board on/off (m ust be hardwired) - Cam era (kind of grainy , but could be poor lighting) - display brightness (works after display sleep with PNLF DSDT patch) - works with patched AppleHDA (v olum e seem s low) Not Working/Not St art ed/In progress Not Test ed - Bluetooth Notes: - Fixed USB3 after sleep by switching from nativ e AppleUSBXHCI to GenericUSBXHCI with -gux_defer_usb2 flag. - To av oid strange flicker/flash of display upon boot, m ake sure to use "Graphics Mode"= 1 9 2 0x1 080x3 2 PSt at es: iMac1 4 ,2 (X86 Platform Plugin) DPCIManager PStates: 8,2 4 ,2 5,2 6 ,2 7 ,2 8,2 9 ,3 0,3 1 ,3 2 MacBookPro8,3 (ACPI_SMC_Platform Plugin) DPCIManager PStates: 8,1 2 ,1 6 ,2 0,2 4 ,2 6 ,2 8,3 0,3 1 ,3 2 MacBookPro1 1 ,2 (xcpm , patched m ach_kernel) DPCIManager PStates: 8,2 4 ,2 5,2 6 ,2 7 ,2 9 ,3 0,3 2 ,3 3 MacBookPro1 1 ,2 (xcpm , parts borrowed from real MacBookPro1 1 ,2 install): DPCIManager PStates: 8, 1 7 , 2 4 , 2 5, 2 6 , 2 8, 2 9 , 3 0, 3 1 , 3 2

See m y blog for perl patch for m ach_kernel.

www.insanelymac.com/forum/topic/293503-haswell-early-reboot-mavericks-locked-msrs-and-hp-envy-15-j063cl-i7-4700mq/

2/8

02/04/14

Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-4700MQ) - OSx86 10.9 (Mavericks) - InsanelyMac Forum
For ease of use, I'm prov iding the patches from m y blog here. Please note these patches are only for apply ing to v anilla m ach_kernel, not the "xcpm free" kernel for 1 0.9 prov ided as the attachm ent. The two techniques are m utually exclusiv e. Either y ou use "xcpm free" and old school PM, or y ou use patched kernel and new school (xcpm ) PM. For 1 0.9 .x:
per l -pi -e 's|\x 7 4 \x 6 c(\x 4 8 \x 8 3 \x c7 \x 2 8 \x 9 0 \x 8 b\x 0 5 ..\x 5 e\x 0 0 \x 8 5 \x 4 7 \x dc)\x 7 4 \x 5 4 (\x 8 b\x 4 f\x d8 \x 4 5 \x 8 5 \x c0 \x 7 4 \x 0 8 \ x 4 4 \x 3 9 \x c1 \x 4 4 \x 8 9 \x c1 )\x 7 5 \x 4 4 (\x 0 f\x 3 2 \x 8 9 \x c0 \x 4 8 \x c1 \x e2 \x 2 0 \x 4 8 \x 0 9 \x c2 \x 4 8 \x 8 9 \x 5 7 \x f8 \x 4 8 \x 8 b\x 4 7 \x e8 \x 4 8 \x 8 5 \x c0 \x 7 4 \x 0 6 \x 4 8 \x f7 \x d0 \x 4 8 \x 2 1 \x c2 \x 4 8 \x 0 b\x 5 7 \x f0 \x 4 9 \x 8 9 \x d1 \x 4 9 \x c1 \x e9 \x 2 0 \x 8 9 \x d0 \x 8 b\x 4 f\x d8 \x 4 c\x 8 9 \x ca )(\x 0 f\x 3 0 \x 8 b\x 4 f\x d8 \x 0 f\x 3 2 \x 8 9 \x c0 \x 4 8 \x c1 \x e2 \x 2 0 \x 4 8 \x 0 9 \x c2 \x 4 8 \x 8 9 \x 1 7 \x 4 8 \x 8 3 \x c7 \x 3 0 \x ff\x ce)\x 7 5 \x 9 9 (\x 5 d\x c3 )\x 9 0 { 7 } |\x 7 4 \x 7 3 ${ 1 } \x 7 4 \x 5 b${ 2 } \x 7 5 \x 4 b${ 3 } \x 6 6 \x 8 1 \x f9 \x e2 \x 0 0 \x 7 4 \x 0 2 ${ 4 } \x 7 5 \x 9 2 ${ 5 } |g ' m a ch _k er n el

For 1 0.8.5:
per l -pi -e 's|\x 7 4 \x 6 9 (\x 4 8 \x 8 3 \x c7 \x 2 8 \x 9 0 \x 8 b\x 0 5 \x fe\x ce\x 5 f\x 0 0 \x 8 5 \x 4 7 \x dc)\x 7 4 \x 5 1 (\x 8 b\x 4 f\x d8 \x 4 5 \x 8 5 \x c0 \x 7 4 \x 0 5 \x 4 4 \x 3 9 \x c1 )\x 7 5 \x 4 4 (\x 0 f\x 3 2 \x 8 9 \x c0 \x 4 8 \x c1 \x e2 \x 2 0 \x 4 8 \x 0 9 \x c2 \x 4 8 \x 8 9 \x 5 7 \x f8 \x 4 8 \x 8 b\x 4 7 \x e8 \x 4 8 \x 8 5 \x c0 \x 7 4 \x 0 6 \x 4 8 \x f7 \x d0 \x 4 8 \x 2 1 \x c2 \x 4 8 \x 0 b\x 5 7 \x f0 \x 4 9 \x 8 9 \x d1 \x 4 9 \x c1 \x e9 \x 2 0 \x 8 9 \x d0 \x 8 b\x 4 f\x d8 \x 4 c\x 8 9 \x ca )(\ x 0 f\x 3 0 \x 8 b\x 4 f\x d8 \x 0 f\x 3 2 \x 8 9 \x c0 \x 4 8 \x c1 \x e2 \x 2 0 \x 4 8 \x 0 9 \x c2 \x 4 8 \x 8 9 \x 1 7 \x 4 8 \x 8 3 \x c7 \x 3 0 \x ff\x ce)\x 7 5 \x 9 c(\x 5 d\ x c3 )\x 9 0 { 7 } (\x 9 0 { 3 } )|\x 7 4 \x 7 0 ${ 1 } \x 7 4 \x 5 8 ${ 2 } \x 7 5 \x 4 b${ 3 } \x 6 6 \x 8 1 \x f9 \x e2 \x 0 0 \x 7 4 \x 0 2 ${ 4 } \x 7 5 \x 9 5 ${ 5 } ${ 6 } |g ' m a c h _k er n el

How t o pat ch y our kernel The v anilla m ach_kernel is located on y our USB installer after creating y our USB (with whatev er tool y ou like :-). Here's how to patch it:

# in Term inal, as s um ing your USB is called Ins taller cp /V ol u m es /In st a l l er /m a ch _k er n el ~/Desk t op/m a ch _k er n el_ba ck u p cp /V ol u m es /In st a l l er /m a ch _k er n el ~/Desk t op/m a ch _k er n el cd ~/Deskt op # now copy/pas te one or m ore of the perl patches from above into Term inal per l ...[ fr om a bov e]... m a ch _k er n el per l ...[ fr om a bov e]... m a ch _k er n el # patched m ach_k ernel is now at ~/Des k top/m ach_k ernel su do cp m a ch _k er n el /V ol u m es /In st a l l er /m a ch _k er n el

After y ou install OS X to y our HDD, y ou will hav e v anilla m ach_kernel on the HDD, leading to the sam e instant reboot problem . So, y ou m ust re-enter the OS X installer, and go into Term inal (using Utilities -> Term inal) and replace the m ach_kernel with the patched v ersion:
# in Term inal from the OS X ins taller, as s um ing your HDD volum e is called "Macintos h HD" cp /m a ch _k er n el "/V olu m es/Ma cin t osh HD/m a ch _k er n el"

After that, y ou can exit the installer, and boot into the installed partition to finish installation and reach the desktop. MD5 sums for mach_kernel Check y our m d5 sum s with:
m d5 m a ch _k er n el

1 0.9 .2 m ach_kernel v anilla: 1 5ce54 d9 b6 edc4 7 e2 82 fdf03 8f7 1 7 3 8c xcpm patched: aeb9 2 03 dc7 54 afac2 3 bf9 6 9 6 83 3 03 2 fe 1 0.9 m ach_kernel v anilla: 06 b6 87 fa009 4 5c9 7 e06 ad1 9 1 9 6 2 57 9 3 c xcpm patched: 88bf6 2 a7 9 55b9 e2 0cdb1 9 9 06 bdda6 b4 3 1 0.8.5 m ach_kernel v anilla: e83 5be83 eb9 56 af0b6 3 d2 8f6 9 bfb2 2 b3 xcpm patched: 53 9 c3 a1 e2 fef06 3 3 84 b4 4 54 3 7 6 5b8a3 9

DSDT Pat ches: I hav e published m y DSDT patch project on github. It relies heav ily on m y generic laptop DSDT patch repo. Read the README.m d and setup carefully in order to use. https://github.com /R...Env y -DSDT-Patch (https://github.com /RehabMan/HP-Env y -DSDT-Patch)

www.insanelymac.com/forum/topic/293503-haswell-early-reboot-mavericks-locked-msrs-and-hp-envy-15-j063cl-i7-4700mq/

3/8

02/04/14

Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-4700MQ) - OSx86 10.9 (Mavericks) - InsanelyMac Forum
1 0.9 kernel (xcpm free) built from Apple's sources is prov ided below. Note: DO NOT apply the patches to this attached kernel... they will hav e no effect. The patches are for v anilla m ach_kernel. Updat e 2014-02-13 At t ached mach_kernel built from Apple's sources removed. There is no reason to use it. Use the prov ided patches to create a m ach_kernel that works with m achines with locked MSR 0xE2 .

cyf

Post ed 0 3 Nov em ber 2 0 1 3 - 0 5 :0 0 A M

I just got the sam e com puter. Looking forward to try ing this! Where can I find the patched AppleIntelCPUPowerManagement? I searched here and osx86, but couldn't find it.

RehabMan

Post ed 0 3 Nov em ber 2 0 1 3 - 0 5 :0 7 A M

I usually patch it m y self with perl script AICPMPatch.pl by el coniglio, but wouldn't a pre-patched one be in Pandora? I really don't know for sure since I don't use the tools here too m uch.

styrian

Post ed 0 3 Nov em ber 2 0 1 3 - 0 7 :0 0 A M

Hallo RehabMan! For brightness key s working, y ou could hav e a look at IOWMIfam ily .kext at github Dolnor. It has in sourses a "HPWMI" . At Donov an6 000blog :http://donov an6 000.b...olled-key s.htm l (http://donov an6 000.blogspot.co.at/2 01 3 /08/acpi-controlledkey s.htm l) y ou can find a com piled v ersion and som e hints to m ake it work on HP. Hav e y ou ev er done a test like Cinebench 1 1 .5? I am interested on gfx-results of HD4 6 00 and the rendering points of i7 4 7 00MQ. Hav e fun.

salvatore94

Post ed 0 3 Nov em ber 2 0 1 3 - 0 8 :0 8 A M

Can I ask how m any P-state are working with y our patched kernel and 1 0.8.5's AICPM ? Right now there is no way to archiv e a fully working speedstep on hashwell sy stem s using the new xnu power m anagem ent. So it could be a solution for us, if it work better.

RehabMan

Post ed 0 3 Nov em ber 2 0 1 3 - 1 1 :5 7 A M

salvatore94, on 03 Nov 2013 - 08:08 AM, said: Can I ask how m any P-state are working with y our patched kernel and 1 0.8.5's AICPM ? Right now there is no way to archiv e a fully working speedstep on hashwell sy stem s using the new xnu power m anagem ent. So it could be a solution for us, if it work better. I updated post #1 to include som e pstate data. I tried to build a MacBookPro1 1 ,2 sm bios.plist, but was stuck at x8, probably because there is no data in x86 platform plugin for that board-id. At this point, I'm not sure which one is better. With MacBookPro8,3 I reach m ore states at the lower end (between 8 and 2 4 ), but I'm using Sandy Bridge sty le PM. With iMac1 3 ,2 there is a jum p from 8 to 2 4 (none in between), but using x86 platform plugin. Unfortunately there is no data for MacBookPro1 1 ,x because those sy stem s use PM in the kernel instead. Of course, the ideal situation is to som ehow patch the kernel to where xm p would work in the kernel just like a real Haswell MacBookPro. At this point, I'm not sure how one or the other affects battery life. I hav en't ev en put the battery in y et...

styrian, on 03 Nov 2013 - 07:00 AM, said: Hallo RehabMan! For brightness key s working, y ou could hav e a look at IOWMIfam ily .kext at github Dolnor. It has in sourses a "HPWMI" . At Donov an6 000blog :http://donov an6 000.b...olled-key s.htm l (http://donov an6 000.blogspot.co.at/2 01 3 /08/acpi-controlledkey s.htm l) y ou can find a com piled v ersion and som e hints to m ake it work on HP.

www.insanelymac.com/forum/topic/293503-haswell-early-reboot-mavericks-locked-msrs-and-hp-envy-15-j063cl-i7-4700mq/

4/8

02/04/14

Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-4700MQ) - OSx86 10.9 (Mavericks) - InsanelyMac Forum
Hav e y ou ev er done a test like Cinebench 1 1 .5? I am interested on gfx-results of HD4 6 00 and the rendering points of i7 4 7 00MQ. Hav e fun. Thanks I'll check it out. But right now I hav e a m ore fundam ental problem : the brightness slider doesn't work in Sy sPrefs-> Display s. More experim entation/debugging for that later... Following up on the Cinebench question, using MacBookPro8,3 right now with Sandy PM: Cinebench Resuls, MBP8,3 Cinebench 1 1 .5: OpenCL: 3 4 .05 fps CPU: 6 .6 9 pts Cinebench R1 5: OpenCL: 2 0.1 2 fps CPU: 6 09 cb

salvatore94

Post ed 0 3 Nov em ber 2 0 1 3 - 1 2 :0 6 PM

RehabMan, on 03 Nov 2013 - 11:34 AM, said: With MacBookPro8,3 I reach m ore states at the lower end (between 8 and 2 4 ), but I'm using Sandy Bridge sty le PM. With iMac1 3 ,2 there is a jum p from 8 to 2 4 (none in between), but using x86 platform plugin. Unfortunately there is no data for MacBookPro1 1 ,x because those sy stem s use PM in the kernel instead. Of course, the ideal situation is to som ehow patch the kernel to where xm p would work in the kernel just like a real Haswell MacBookPro. At this point, I'm not sure how one or the other affects battery life. I hav en't ev en put the battery in y et...

I read som ewhere that on real im acs PM is working in that way . They use only the lowest and the highest P-state and of course Turbo m ode. For this reason m ost people uses m ac m ini or old m ac pro SMBIOS. Hav e y ou tried MacBook retina SMBIOS ? They com e with MountainLion if I rem em ber right and the new PM com e after 1 0.8.5/1 0.9

RehabMan

Post ed 0 3 Nov em ber 2 0 1 3 - 1 2 :4 9 PM

salvatore94, on 03 Nov 2013 - 12:06 PM, said: I read som ewhere that on real im acs PM is working in that way . They use only the lowest and the highest P-state and of course Turbo m ode. For this reason m ost people uses m ac m ini or old m ac pro SMBIOS. Hav e y ou tried MacBook retina SMBIOS ? They com e with MountainLion if I rem em ber right and the new PM com e after 1 0.8.5/1 0.9

Yes, I'm aware of the lim ited pstates in iMac (it is 'by design' as that's the way real Macs work...) I'm going to try to find out how each of the boardids in x86 platform plugin line up with Mac m odels and see if there is som ething in there m ore appropriate. One nice thing (depending on y our perspectiv e) about MacBookPro8,3 is that y ou don't end up with the "Rem ote Disc" in Finder, as y ou do on the iMac1 3 ,2 , probably because the sy stem expects to find a real DVD driv e.

styrian

Post ed 0 3 Nov em ber 2 0 1 3 - 1 2 :5 1 PM

@ Rehabm an Thanks fore Cinbech results, I hav e long been looking for. On 1 1 .5 I get with HD4 000 since 1 0 8.4 about 2 1 fps. Result of HD4 6 00 is really nice (sam e as 86 00 GTS with Ram pageDev tweaks) and seem s by fare good enough to do som e photo and v ideo editing tasks. Your results also m inim ize the for sure surrealistic wish to get dedicated gfx cards besides the Optim us and Enduro (censored) to work on lappies. Thanks.

www.insanelymac.com/forum/topic/293503-haswell-early-reboot-mavericks-locked-msrs-and-hp-envy-15-j063cl-i7-4700mq/

5/8

02/04/14

Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-4700MQ) - OSx86 10.9 (Mavericks) - InsanelyMac Forum
Post ed 0 3 Nov em ber 2 0 1 3 - 0 3 :3 8 PM

salvatore94

Got a KP using y our patched kernel and stock AppleIntelCpuPowerManagem ent.kext Could not understand why . The expected behav ior is an unloaded AICPM because of the new in-kernel PM. At this point I think that Apple uses the old PM way , m ay be on old cpus. But again, why a KP? I m ean if there is a whitelist of AICPM supported cpus, this kext should not be loaded on haswell sy stem .

RehabMan

Post ed 0 3 Nov em ber 2 0 1 3 - 0 4 :1 3 PM

salvatore94, on 03 Nov 2013 - 3:38 PM, said: Got a KP using y our patched kernel and stock AppleIntelCpuPowerManagem ent.kext Could not understand why . The expected behav ior is an unloaded AICPM because of the new in-kernel PM. At this point I think that Apple uses the old PM way , m ay be on old cpus. But again, why a KP? I m ean if there is a whitelist of AICPM supported cpus, this kext should not be loaded on haswell sy stem .

Read m ore carefully . This is not a patched kernel. This a kernel built from sources. The sources Apple is publishing *do not* include xcpm . Note that xcpm only applies to sy stem s with Haswell CPUS. If y ou do not hav e a Haswell CPU, then y ou don't need this kernel, but y ou stil m ay need patched AppleIntelCPUPowerManagem ent or patched BIOS (if y ou can patch y our BIOS then y ou don't need any of this...) So, when using this kernel, AppleIntelCPUPowerManagem ent *is* loaded. If y our BIOS locks the 0xE2 MSR (I suspect it does), then y ou need a patched AppleIntelCPUPowerManagem ent.

salvatore94

Post ed 0 3 Nov em ber 2 0 1 3 - 0 6 :2 9 PM

RehabMan, on 03 Nov 2013 - 4:13 PM, said: Read m ore carefully . This is not a patched kernel. This a kernel built from sources. The sources Apple is publishing *do not* include xcpm . Note that xcpm only applies to sy stem s with Haswell CPUS. If y ou do not hav e a Haswell CPU, then y ou don't need this kernel, but y ou stil m ay need patched AppleIntelCPUPowerManagem ent or patched BIOS (if y ou can patch y our BIOS then y ou don't need any of this...) So, when using this kernel, AppleIntelCPUPowerManagem ent *is* loaded. If y our BIOS locks the 0xE2 MSR (I suspect it does), then y ou need a patched AppleIntelCPUPowerManagem ent. Gigaby te's boards are "unlocked", they did not need patched BIOS nor patched AICPM (at least until ML). May be what I want to do is not possible. I hav e an haswell sy stem . And since m y board is unlocked I thought It was only necessary y our kernel (that has xcpm disabled).

RehabMan

Post ed 0 3 Nov em ber 2 0 1 3 - 0 9 :4 9 PM

salvatore94, on 03 Nov 2013 - 6:29 PM, said: Gigaby te's boards are "unlocked", they did not need patched BIOS nor patched AICPM (at least until ML). May be what I want to do is not possible. I hav e an haswell sy stem . And since m y board is unlocked I thought It was only necessary y our kernel (that has xcpm disabled).

It is likely y ou don't hav e sm bios.plist/ssdt/boot.plist setup correctly . But m y understanding is people with unlocked MSRs were hav ing success with xcpm in the kernel...

salvatore94

Post ed 0 4 Nov em ber 2 0 1 3 - 0 8 :2 7 A M

RehabMan, on 03 Nov 2013 - 9:49 PM, said: But m y understanding is people with unlocked MSRs were hav ing success with xcpm in the kernel...

I don't like how xcpm works . Want to try to archiv e a fully speedstep using old AICPM sy stem .

RehabMan

Post ed 0 4 Nov em ber 2 0 1 3 - 1 1 :3 3 A M

www.insanelymac.com/forum/topic/293503-haswell-early-reboot-mavericks-locked-msrs-and-hp-envy-15-j063cl-i7-4700mq/

6/8

02/04/14

Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-4700MQ) - OSx86 10.9 (Mavericks) - InsanelyMac Forum
salvatore94, on 04 Nov 2013 - 08:27 AM, said: I don't like how xcpm works . Want to try to archiv e a fully speedstep using old AICPM sy stem .

I see. There are clues about what is wrong in the inform ation printed at KP. There are quite a few v ariables that m ust line up: - proper SSDT for y our CPU - proper sm bios - no cstates/pstates generated from bootloader - drop OEM SSDTs - no NullCPU (although that will not cause KP if y ou forget) - patched BIOS or patched AppleIntelCPUPowerManagem ent (or unlocked MSRs in BIOS)

BaRoN!

Post ed 0 4 Nov em ber 2 0 1 3 - 0 2 :2 1 PM

I hav e this CPU inside m y MSI GE6 0 laptop, was using Atom kernel before. PowerManagem ent did not worked fine, tem perature was alway s near 88C. Going to try this kernel now, will report how things are going. I suspect it's offtopic, but any way - just 2 quick questions: were y ou able to run v anilla kernel with MacBookAir6 ,2 sm bios? Was y our BIOS patched? I was using MacBookAir6 ,1 and it seem s I tried ev ery possible flag com bination in Clov er, but it kept crashing (I was unable to flush the patched bios, since BIOS update software rejects it). Thanks for the kernel and thanks in adv ance for answers

ameris_cyning

Post ed 0 4 Nov em ber 2 0 1 3 - 0 5 :0 8 PM

Using this kernel I get a KP with a patched AppleIntelCPUPowerManagem ent.kext

RehabMan

Post ed 0 4 Nov em ber 2 0 1 3 - 0 5 :3 0 PM

ameris_cyning, on 04 Nov 2013 - 5:08 PM, said: Using this kernel I get a KP with a patched AppleIntelCPUPowerManagem ent.kext

As I state in post#1 , if y our BIOS locks the MSRs, y ou m ust use patched AppleIntelCPU*. BaRoN!, on 04 Nov 2013 - 2:21 PM, said: I hav e this CPU inside m y MSI GE6 0 laptop, was using Atom kernel before. PowerManagem ent did not worked fine, tem perature was alway s near 88C. Going to try this kernel now, will report how things are going. I suspect it's offtopic, but any way - just 2 quick questions: were y ou able to run v anilla kernel with MacBookAir6 ,2 sm bios? Was y our BIOS patched? I was using MacBookAir6 ,1 and it seem s I tried ev ery possible flag com bination in Clov er, but it kept crashing (I was unable to flush the patched bios, since BIOS update software rejects it). Thanks for the kernel and thanks in adv ance for answers

I hav e not tried MacBookAir6 ,2 . But this laptop cannot run the v anilla kernel because of locked MSRs (thus kernel w/o xcpm ). And HP's BIOS is RSA encry pted, so pm patch is not a possibility .

ameris_cyning

Post ed 0 4 Nov em ber 2 0 1 3 - 0 5 :4 3 PM

RehabMan, on 04 Nov 2013 - 5:30 PM, said: As I state in post#1 , if y our BIOS locks the MSRs, y ou m ust use patched AppleIntelCPU*. I hav e not tried MacBookAir6 ,2 . But this laptop cannot run the v anilla kernel because of locked MSRs (thus kernel w/o xcpm ). And HP's BIOS is RSA encry pted, so pm patch is not a possibility .

Are you telling me to patch AppleIntelCPUPowerManagem entClient.kext ?

RehabMan

Post ed 0 4 Nov em ber 2 0 1 3 - 0 5 :5 2 PM

ameris_cyning, on 04 Nov 2013 - 5:43 PM, said: Are y ou telling m e to patch AppleIntelCPUPowerManagem entClient.kext?

www.insanelymac.com/forum/topic/293503-haswell-early-reboot-mavericks-locked-msrs-and-hp-envy-15-j063cl-i7-4700mq/

7/8

02/04/14

Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-4700MQ) - OSx86 10.9 (Mavericks) - InsanelyMac Forum

No. See post #1 .

Pa g e 1 of 2 0

Ba ck t o OSx 8 6 1 0 .9 (Ma v er ick s) Nex t Un r ea d T opic

Topi c

St a t s

La st Post In f o

OSx 8 6 Pr oject New User s Lou n g e

Lenov o Z4 7 0 Kernel Panic, Freezed Logo.


St a r t ed by Molek , 0 2 Ma r 2 0 1 3 Ker n el, OSX

3 r eplies 1 ,0 2 0 v iew s

ja h a n za ib 0 5 Ma r 2 0 1 3

OSx 8 6 Pr oject Ha r dw a r e Com pon en t s a n d Dr iv er s LA N a n d W ir eless

ASROCK 4 core1 3 3 3 glan/m realtek 81 6 8 problem s


St a r t ed by 4 ev er A n oob, 2 6 Feb 2 0 1 3 a n d 3 m or e... r ea lt ek , et h er n et , 8 1 x x , ln x 2 m a c

5 r eplies 8 1 3 v iew s

4 ev er A n oob 0 5 Ma r 2 0 1 3

OSx 8 6 Pr oject Post -In st a lla t ion OSx 8 6 1 0 .8 (Mou n t a in Lion )

Strange sy stem lock-up, how to troubleshoot?


St a r t ed by jw m a n n , 2 1 Feb 2 0 1 3 k er n el, pa n ic, sy st em , lock u p

7 r eplies 1 ,0 1 3 v iew s

Lor da dm ir a l Dr a k e 2 2 Feb 2 0 1 3

In t er n a t ion a l It a lia n o Mou n t a in Lion 1 0 .8 Desk t op

Kernel Panic all'av v io?


St a r t ed by v en om 8 9 , 3 0 Ja n 2 0 1 3 2 m or e... k er n el, pa n ic, pr oblem a , m ou n t a in a n d

8 r eplies 6 5 8 v iew s

v en om 8 9 0 1 Feb 2 0 1 3

OSx 8 6 Pr oject Post -In st a lla t ion OSx 8 6 1 0 .8 (Mou n t a in Lion )

Can I under Mountain Lion reboot to windows without key board?


St a r t ed by cu t h ea d, 2 9 Ja n 2 0 1 3 r eboot , ch a m eleon

3 r eplies 7 7 8 v iew s

cu t h ea d 3 1 Ja n 2 0 1 3

In sa n ely Ma c For u m OSx 8 6 Pr oject OSx 8 6 In st a lla t ion OSx 8 6 1 0 .9 (Ma v er ick s)

201 4 Insanel y Mac | N ew s | For um | Dow nl oads | OSx 86 W i k i | Mac N etb ook | W eb hosti ng b y CatN | Desi gned b y Ed Gai n | Logo b y i r f an | Pr i v ac y Pol i c y

www.insanelymac.com/forum/topic/293503-haswell-early-reboot-mavericks-locked-msrs-and-hp-envy-15-j063cl-i7-4700mq/

8/8

You might also like