Haswell Early Reboot, Mavericks, Locked MSRs, And HP Envy 15-J063CL i7-4700MQ

download Haswell Early Reboot, Mavericks, Locked MSRs, And HP Envy 15-J063CL i7-4700MQ

of 8

Transcript of Haswell Early Reboot, Mavericks, Locked MSRs, And HP Envy 15-J063CL i7-4700MQ

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

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

    1.2k

    Follow Follow @insanelymac@insanelymac 6,364 follow ers

    flu id | fix ed

    orangota Vi ew New Content Si gn Out

    OSx 8 6 Pr ojectOSx 8 6 Pr oject OSx 8 6 In sta lla t ionOSx 8 6 In sta lla t ion OSx 8 6 1 0.9 (Ma v er icks)OSx 8 6 1 0.9 (Ma v er icks)

    Pa g e 1 of 2 0

    Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-Haswell early reboot, Mavericks, locked MSRs, and HP Envy 15-J063CL (i7-

    4700MQ)4700MQ)Sta r ted by Sta r ted by Reh a bMa nReh a bMa n , , Nov 03 2 01 3 02 :4 2 A MNov 03 2 01 3 02 :4 2 A M

    mavericksmavericks ,, kernelkernel,, m ach_kernelm ach_kernel,, locked MSRlocked MSR,, rebootreboot,, pow er managementpow er management,,

    5kLikeLike

    News Forum Downloads OSx86 Wiki Mac Netbook

    RehabManRehabMan Posted Posted 03 Nov em ber 2 01 3 - 02 :4 2 A M03 Nov em ber 2 01 3 - 02 :4 2 A M

    I wrote this "somewhere else" as well, but I thought this might be interesting here too...

    Haswell/Mavericks Troubles

    Many people with Haswell laptops (and some desktops) hav e been running into a new problem Apple has thrown at us. The new

    Mav ericks kernel has power management mov ed down into the kernel. For this reason, my MacBookAir6,2 running Mav ericks does

    not load AppleIntelCPUPowerManagement. In the past, we patched AppleIntelCPUPowerManagement to av oid the kernel writing to

    locked CPU MSRs (machine specific registers, credit Rev oGirl). Some BIOSes lock some of these registers (the common 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 seems this KP is so early , that the kernel is unprepared to handle it, and the computer reboots.

    Some people hav e found that if they use a kernel modified for AMD sy stems, 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 management. CPU was running at x24 alway s.

    But...

    I decided to see what I could do by building my own kernel. My main thought was to make some changes, see if I could av oid touching

    locked MSRs with modifications 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 make 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 management. Since it isn't there, it doesn't cause the

    problem. But of course, AppleIntelCPUPowerManagement expects for PM to be prov ided by the kernel, so it doesn't work. It doesn't

    crash, but still no power management. Since 1 0.8.5 does not hav e this change, I decided to try the (patched)

    AppleIntelCPUPowerManagement from 1 0.8.5 (v 21 4). And that actually works.

    I don't really like doing rollbacks like that, but it is probably a workable solution until something better comes along. I still think it

    might be possible to patch the kernel to av oid the MSR writing problem. See updates below on patches.

    Update 2013-11-25

    With some prodding by Pike's blog, I went back to my original patch that I had attempted a number of weeks ago, and I found the

    mistakes I had made with my patch (this was prior to building the kernel from sources). The details are on my blog here:

    http://racerrehabman...r-early -reboot/ (http://racerrehabman.wordpress.com/201 3/1 1 /25/mav erickshaswell-kernel-patch-for-

    early -reboot/)

    As a result, I'm now running a patched mach_kernel (not built from source, but patched from retail), MacBookPro1 1 ,2 smbios.plist,

    AppleIntelCPUPowerManagement.kext, ssdt.aml generated with Pike's script (plugin-ty pe=1 ). Of course,

    AppleIntelCPUPowerManagement does not load, as all CPU power management is handled by the kernel (xcpm). In other words, it is

    running just as a real Haswell MacBookPro would as far as power management. The only "problem" that I can see, is that I'm not

    getting pstates between x8 and x24, much like the results with iMac1 4,2. I wonder if something is missing (taking the place of

    X86PlatformPlugin 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 my real MacBookAir6,2 and perhaps a friend's real

    MacBookPro1 1 ,x.

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

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

    Update 2013-11-26

    It appears that hav ing a jump in pstates from idle to nominal (in this case x8 to x24) is by design. It appears to be intentional. I loaded

    AppleIntelCPUPowerManagementInfo.kext on my MacBookAir6,2 and it too jumps from idle (x8) to nominal (x1 7 ) with no states in

    between.

    Update 2013-12-30

    By borrowing some 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

    nominal:

    AICPUPMI: CPU P-States [ 8 (1 7 ) 24 26 29 30 31 32 33 34 ] GPU P-States [ 1 7 ]

    Note new state 1 7 . This was booting v ia Clov er with MacBookPro1 1 ,2 smbios and custom SSDT using ssdtPRgen.sh.

    In order to do this, I borrowed from the Mac:

    /Sy stem/Library /CoreServ ices/PlatformSupport.plist

    /Sy stem/Library /Extensions/IOPlatformPluginFamily .kext

    /mach_kernel (v ersion 1 3 .0.2, patched for xcpm)

    I'm not sure the kernel replacement was necessary , but I did it any way . I think this means 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 machine to work as it should.

    Computer Specifics

    HP Env y 1 5-J063CL (Costco)

    i7 -47 00MQ @2.4Ghz, 1 2GB RAM

    HM87 chipset

    HD4600 graphics (1 080p panel),

    BCM4352 ac WiFi (works with only injection)

    RTL81 1 1 /81 68/841 1 (works with RealtekRTL81 1 1 )

    (I am not certain that I'm keeping this laptop...)

    Working:

    - power management (see pstate results below)

    - booting with caches

    - HD4600 graphics (this computer uses eDP) (ig-platform-id=0x0a260006)

    - HDMI

    - USB3 (before *and* after sleep)

    - trackpad/key board (Sy naptics)

    - sleep

    - sleep triggered by lid

    - shutdown/restart

    - backlit key board on/off (must be hardwired)

    - Camera (kind of grainy , but could be poor lighting)

    - display brightness (works after display sleep with PNLF DSDT patch)

    - works with patched AppleHDA (v olume seems low)

    Not Working/Not Started/In progress

    Not Tested

    - 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, make sure to use "Graphics Mode"=1 920x1 080x32

    PStates:

    iMac1 4,2 (X86PlatformPlugin)

    DPCIManager PStates: 8,24,25,26,27 ,28,29,30,31 ,32

    MacBookPro8,3 (ACPI_SMC_PlatformPlugin)

    DPCIManager PStates: 8,1 2,1 6,20,24,26,28,30,31 ,32

    MacBookPro1 1 ,2 (xcpm, patched mach_kernel)

    DPCIManager PStates: 8,24,25,26,27 ,29,30,32,33

    MacBookPro1 1 ,2 (xcpm, parts borrowed from real MacBookPro1 1 ,2 install):

    DPCIManager PStates: 8, 1 7 , 24, 25, 26, 28, 29, 30, 31 , 32

    See my blog for perl patch for mach_kernel.

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

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

    For ease of use, I'm prov iding the patches from my blog here. Please note these patches are only for apply ing to v anilla mach_kernel,

    not the "xcpm free" kernel for 1 0.9 prov ided as the attachment. The two techniques are mutually 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 05 ..\x 5 e\x 00\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 08 \

    x 4 4 \x 3 9 \x c1 \x 4 4 \x 8 9 \x c1 )\x 7 5 \x 4 4 (\x 0f\x 3 2 \x 8 9 \x c0\x 4 8 \x c1 \x e2 \x 2 0\x 4 8 \x 09 \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 06 \x 4 8 \x f7 \x d0\x 4 8 \x 2 1 \x c2 \x 4 8 \x 0b\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 0f\x 3 0\x 8 b\x 4 f\x d8 \x 0f\x 3 2 \x 8 9 \x c0\x 4 8 \x c1 \x e2 \x 2 0\x 4 8 \x 09 \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 00\x 7 4 \x 02 ${4 }\x 7 5 \x 9 2 ${5 }|g ' m a ch _ker

    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 05 \x fe\x ce\x 5 f\x 00\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 05 \x 4 4 \x 3 9 \x c1 )\x 7 5 \x 4 4 (\x 0f\x 3 2 \x 8 9 \x c0\x 4 8 \x c1 \x e2 \x 2 0\x 4 8 \x 09 \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 06 \x 4 8 \x f7 \x d0\x 4 8 \x 2 1 \x c2 \x 4 8 \x 0b\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 0f\x 3 0\x 8 b\x 4 f\x d8 \x 0f\x 3 2 \x 8 9 \x c0\x 4 8 \x c1 \x e2 \x 2 0\x 4 8 \x 09 \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 00\x 7 4 \x 02 ${4 }\x 7 5 \x 9 5 ${5 }${6 }|g ' m a c

    h _ker n el

    How to patch your kernel

    The v anilla mach_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, assum ing your USB is called Installer

    cp /V olu m es/In st a ller/m a ch _ker n el ~/Desktop/m a ch _ker n el_ba cku p

    cp /V olu m es/In st a ller/m a ch _ker n el ~/Desktop/m a ch _ker n el

    cd ~/Deskt op

    # now copy/paste one or more of the perl patches from above into Terminal

    per l . . .[from a bov e]. . . m a ch _ker n el

    per l . . .[from a bov e]. . . m a ch _ker n el

    # patched mach_kernel is now at ~/Desktop/mach_kernel

    su do cp m a ch _ker n el /V olu m es/In st a ller/m a ch _ker n el

    After y ou install OS X to y our HDD, y ou will hav e v anilla mach_kernel on the HDD, leading to the same instant reboot problem. So,

    y ou must re-enter the OS X installer, and go into Terminal (using Utilities -> Terminal) and replace the mach_kernel with the

    patched v ersion:

    # in Term inal from the OS X installer, assuming your HDD volume is called "Macintosh HD"

    cp /m a ch _ker n el "/V olu m es/Ma cin tosh HD/m a ch _ker 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 md5 sums with:

    m d5 m a ch _ker n el

    1 0.9.2 mach_kernel

    v anilla: 1 5ce54d9b6edc47 e282fdf038f7 1 7 38c

    xcpm patched: aeb9203dc7 54afac23bf9696833032fe

    1 0.9 mach_kernel

    v anilla: 06b687 fa00945c97 e06ad1 91 96257 93c

    xcpm patched: 88bf62a7 955b9e20cdb1 9906bdda6b43

    1 0.8.5 mach_kernel

    v anilla: e835be83eb956af0b63d28f69bfb22b3

    xcpm patched: 539c3a1 e2fef063384b445437 65b8a39

    DSDT Patches:

    I hav e published my DSDT patch project on github. It relies heav ily on my generic laptop DSDT patch repo. Read the README.md and

    setup carefully in order to use.

    https://github.com/R...Env y -DSDT-Patch (https://github.com/RehabMan/HP-Env y -DSDT-Patch)

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

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

    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 mach_kernel.

    Update 2014-02-13

    Attached mach_kernel built from Apple's sources removed. There is no reason to use it. Use the prov ided patches to create a

    mach_kernel that works with machines with locked MSR 0xE2.

    cyfcyf Posted Posted 03 Nov em ber 2 01 3 - 05 :00 A M03 Nov em ber 2 01 3 - 05 :00 A M

    I just got the same computer. Looking forward to try ing this!

    Where can I find the patched AppleIntelCPUPowerManagement? I searched here and osx86, but couldn't find it.

    RehabManRehabMan Posted Posted 03 Nov em ber 2 01 3 - 05 :07 A M03 Nov em ber 2 01 3 - 05 :07 A M

    I usually patch it my 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 much.

    styrianstyrian Posted Posted 03 Nov em ber 2 01 3 - 07 :00 A M03 Nov em ber 2 01 3 - 07 :00 A M

    Hallo RehabMan!

    For brightness key s working, y ou could hav e a look at IOWMIfamily .kext at github Dolnor. It has in sourses a "HPWMI" . At

    Donov an6000blog :http://donov an6000.b...olled-key s.html (http://donov an6000.blogspot.co.at/201 3/08/acpi-controlled-

    key s.html) y ou can find a compiled v ersion and some hints to make 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 HD4600 and the rendering points of i7 47 00MQ.

    Hav e fun.

    salvatore94salvatore94 Posted Posted 03 Nov em ber 2 01 3 - 08 :08 A M03 Nov em ber 2 01 3 - 08 :08 A M

    Can I ask how many 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 stems using the new xnu power management. So it could

    be a solution for us, if it work better.

    RehabManRehabMan Posted Posted 03 Nov em ber 2 01 3 - 1 1 :5 7 A M03 Nov em ber 2 01 3 - 1 1 :5 7 A M

    salvatore94, on 03 Nov 2013 - 08:08 AM, said:salvatore94, on 03 Nov 2013 - 08:08 AM, said:

    Can I ask how many 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 stems using the new xnu power management. So it

    could be a solution for us, if it work better.

    I updated post #1 to include some pstate data. I tried to build a MacBookPro1 1 ,2 smbios.plist, but was stuck at x8, probably because

    there is no data in x86platformplugin for that board-id. At this point, I'm not sure which one is better.

    With MacBookPro8,3 I reach more states at the lower end (between 8 and 24), but I'm using Sandy Bridge sty le PM.

    With iMac1 3,2 there is a jump from 8 to 24 (none in between), but using x86platformplugin.

    Unfortunately there is no data for MacBookPro1 1 ,x because those sy stems use PM in the kernel instead. Of course, the ideal situation is

    to somehow patch the kernel to where xmp 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:styrian, on 03 Nov 2013 - 07:00 AM, said:

    Hallo RehabMan!

    For brightness key s working, y ou could hav e a look at IOWMIfamily .kext at github Dolnor. It has in sourses a "HPWMI" . At

    Donov an6000blog :http://donov an6000.b...olled-key s.html (http://donov an6000.blogspot.co.at/201 3/08/acpi-controlled-

    key s.html) y ou can find a compiled v ersion and some hints to make it work on HP.

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

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

    Hav e y ou ev er done a test like Cinebench 1 1 .5? I am interested on gfx-results of HD4600 and the rendering points of i7 47 00MQ.

    Hav e fun.

    Thanks I'll check it out. But right now I hav e a more fundamental problem: the brightness slider doesn't work in Sy sPrefs->Display s.

    More experimentation/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: 34.05 fps

    CPU: 6.69 pts

    Cinebench R1 5:

    OpenCL: 20.1 2 fps

    CPU: 609 cb

    salvatore94salvatore94 Posted Posted 03 Nov em ber 2 01 3 - 1 2 :06 PM03 Nov em ber 2 01 3 - 1 2 :06 PM

    RehabMan, on 03 Nov 2013 - 11:34 AM, said:RehabMan, on 03 Nov 2013 - 11:34 AM, said:

    With MacBookPro8,3 I reach more states at the lower end (between 8 and 24), but I'm using Sandy Bridge sty le PM.

    With iMac1 3,2 there is a jump from 8 to 24 (none in between), but using x86platformplugin.

    Unfortunately there is no data for MacBookPro1 1 ,x because those sy stems use PM in the kernel instead. Of course, the ideal

    situation is to somehow patch the kernel to where xmp 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 somewhere that on real imacs PM is working in that way . They use only the lowest and the highest P-state and of course Turbo

    mode. For this reason most people uses mac mini or old mac pro SMBIOS.

    Hav e y ou tried MacBook retina SMBIOS ? They come with MountainLion if I remember right and the new PM come after 1 0.8.5/1 0.9

    RehabManRehabMan Posted Posted 03 Nov em ber 2 01 3 - 1 2 :4 9 PM03 Nov em ber 2 01 3 - 1 2 :4 9 PM

    salvatore94, on 03 Nov 2013 - 12:06 PM, said:salvatore94, on 03 Nov 2013 - 12:06 PM, said:

    I read somewhere that on real imacs PM is working in that way . They use only the lowest and the highest P-state and of course

    Turbo mode. For this reason most people uses mac mini or old mac pro SMBIOS.

    Hav e y ou tried MacBook retina SMBIOS ? They come with MountainLion if I remember right and the new PM come after

    1 0.8.5/1 0.9

    Yes, I'm aware of the limited 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 x86platformplugin line up with Mac models and see if there is something in

    there more appropriate. One nice thing (depending on y our perspectiv e) about MacBookPro8,3 is that y ou don't end up with the

    "Remote 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.

    styrianstyrian Posted Posted 03 Nov em ber 2 01 3 - 1 2 :5 1 PM03 Nov em ber 2 01 3 - 1 2 :5 1 PM

    @ Rehabman

    Thanks fore Cinbech results, I hav e long been looking for. On 1 1 .5 I get with HD4000 since 1 0 8.4 about 21 fps. Result of HD4600 is

    really nice (same as 8600 GTS with RampageDev tweaks) and seems by fare good enough to do some photo and v ideo editing tasks.

    Your results also minimize the for sure surrealistic wish to get dedicated gfx cards besides the Optimus and Enduro (censored) to work

    on lappies.

    Thanks.

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

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

    salvatore94salvatore94 Posted Posted 03 Nov em ber 2 01 3 - 03 :3 8 PM03 Nov em ber 2 01 3 - 03 :3 8 PM

    Got a KP using y our patched kernel and stock AppleIntelCpuPowerManagement.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 , may be on old cpus. But again, why a KP? I mean if there is a whitelist of AICPM

    supported cpus, this kext should not be loaded on haswell sy stem.

    RehabManRehabMan Posted Posted 03 Nov em ber 2 01 3 - 04 :1 3 PM03 Nov em ber 2 01 3 - 04 :1 3 PM

    salvatore94, on 03 Nov 2013 - 3:38 PM, said:salvatore94, on 03 Nov 2013 - 3:38 PM, said:

    Got a KP using y our patched kernel and stock AppleIntelCpuPowerManagement.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 , may be on old cpus. But again, why a KP? I mean if there is a whitelist of

    AICPM supported cpus, this kext should not be loaded on haswell sy stem.

    Read more 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 stems 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 may need patched AppleIntelCPUPowerManagement 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, AppleIntelCPUPowerManagement *is* loaded. If y our BIOS locks the 0xE2 MSR (I suspect it does), then y ou

    need a patched AppleIntelCPUPowerManagement.

    salvatore94salvatore94 Posted Posted 03 Nov em ber 2 01 3 - 06 :2 9 PM03 Nov em ber 2 01 3 - 06 :2 9 PM

    RehabMan, on 03 Nov 2013 - 4:13 PM, said:RehabMan, on 03 Nov 2013 - 4:13 PM, said:

    Read more 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 stems 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 may need patched AppleIntelCPUPowerManagement 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, AppleIntelCPUPowerManagement *is* loaded. If y our BIOS locks the 0xE2 MSR (I suspect it does), then

    y ou need a patched AppleIntelCPUPowerManagement.

    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 my board is unlocked I thought It was only necessary y our kernel (that has xcpm

    disabled).

    RehabManRehabMan Posted Posted 03 Nov em ber 2 01 3 - 09 :4 9 PM03 Nov em ber 2 01 3 - 09 :4 9 PM

    salvatore94, on 03 Nov 2013 - 6:29 PM, said: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 my 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 smbios.plist/ssdt/boot.plist setup correctly .

    But my understanding is people with unlocked MSRs were hav ing success with xcpm in the kernel...

    salvatore94salvatore94 Posted Posted 04 Nov em ber 2 01 3 - 08 :2 7 A M04 Nov em ber 2 01 3 - 08 :2 7 A M

    RehabMan, on 03 Nov 2013 - 9:49 PM, said:RehabMan, on 03 Nov 2013 - 9:49 PM, said:

    But my 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.

    RehabManRehabMan Posted Posted 04 Nov em ber 2 01 3 - 1 1 :3 3 A M04 Nov em ber 2 01 3 - 1 1 :3 3 A M

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

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

    salvatore94, on 04 Nov 2013 - 08:27 AM, said: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 information printed at KP. There are quite a few v ariables that must line up:

    - proper SSDT for y our CPU

    - proper smbios

    - 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 AppleIntelCPUPowerManagement (or unlocked MSRs in BIOS)

    BaRoN!BaRoN! Posted Posted 04 Nov em ber 2 01 3 - 02 :2 1 PM04 Nov em ber 2 01 3 - 02 :2 1 PM

    I hav e this CPU inside my MSI GE60 laptop, was using Atom kernel before. PowerManagement did not worked fine, temperature 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 smbios? Was y our

    BIOS patched? I was using MacBookAir6,1 and it seems I tried ev ery possible flag combination 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_cyningameris_cyning Posted Posted 04 Nov em ber 2 01 3 - 05 :08 PM04 Nov em ber 2 01 3 - 05 :08 PM

    Using this kernel I get a KP with a patched AppleIntelCPUPowerManagement.kext

    RehabManRehabMan Posted Posted 04 Nov em ber 2 01 3 - 05 :3 0 PM04 Nov em ber 2 01 3 - 05 :3 0 PM

    ameris_cyning, on 04 Nov 2013 - 5:08 PM, said:ameris_cyning, on 04 Nov 2013 - 5:08 PM, said:

    Using this kernel I get a KP with a patched AppleIntelCPUPowerManagement.kext

    As I state in post#1 , if y our BIOS locks the MSRs, y ou must use patched AppleIntelCPU*.

    BaRoN!, on 04 Nov 2013 - 2:21 PM, said:BaRoN!, on 04 Nov 2013 - 2:21 PM, said:

    I hav e this CPU inside my MSI GE60 laptop, was using Atom kernel before. PowerManagement did not worked fine, temperature

    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 smbios? Was

    y our BIOS patched? I was using MacBookAir6,1 and it seems I tried ev ery possible flag combination 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 pmpatch is not a possibility .

    ameris_cyningameris_cyning Posted Posted 04 Nov em ber 2 01 3 - 05 :4 3 PM04 Nov em ber 2 01 3 - 05 :4 3 PM

    RehabMan, on 04 Nov 2013 - 5:30 PM, said:RehabMan, on 04 Nov 2013 - 5:30 PM, said:

    As I state in post#1 , if y our BIOS locks the MSRs, y ou must 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 pmpatch is not a possibility .

    Are you telling me to patch AppleIntelCPUPowerManagementClient.kext?

    RehabManRehabMan Posted Posted 04 Nov em ber 2 01 3 - 05 :5 2 PM04 Nov em ber 2 01 3 - 05 :5 2 PM

    ameris_cyning, on 04 Nov 2013 - 5:43 PM, said:ameris_cyning, on 04 Nov 2013 - 5:43 PM, said:

    Are y ou telling me to patch AppleIntelCPUPowerManagementClient.kext?

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

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

    Pa g e 1 of 2 0 Ba ck to OSx 8 6 1 0.9 (Ma v er icks) Nex t Un r ea d Topic

    In sa n ely Ma c For u m OSx 8 6 Pr oject OSx 8 6 In sta lla t ion OSx 8 6 1 0.9 (Ma v er icks)

    201 4 Insanel y Mac | 201 4 Insanel y Mac | N ew sN ew s | | For umFor um | | Dow nl oadsDow nl oads | | OSx 86 W i k iOSx 86 W i k i | | Mac N etbookMac N etbook | | W eb hosti ng by CatNW eb hosti ng by CatN | | Desi gned by Ed Gai nDesi gned by Ed Gai n | | Logo by i r fanLogo by i r fan | | Pr i v acy Pol i cyPr i v acy Pol i cy

    Topi cTopi c StatsStats Last Post InfoLast Post Info

    OSx 8 6 Pr oject New User s Lou n g e Lenov o Z47 0 Kernel Panic, Freezed Logo.

    Sta r ted by Molek, 02 Ma r 2 01 3 Ker n el, OSX

    3 r eplies

    1 ,02 0 v iew s

    ja h a n za ib

    05 Ma r 2 01 3

    OSx 8 6 Pr oject Ha r dw a r e Com pon en ts a n d Dr iv er s LA N a n d Wir eless ASROCK 4core1 333 glan/m realtek 81 68 problems

    Sta r ted by 4 ev er A n oob, 2 6 Feb 2 01 3 r ea ltek, eth er n et , 8 1 x x , ln x 2 m a c

    a n d 3 m or e.. .

    5 r eplies

    8 1 3 v iew s

    4 ev er A n oob

    05 Ma r 2 01 3

    OSx 8 6 Pr oject Post-In sta lla t ion OSx 8 6 1 0.8 (Mou n ta in Lion ) Strange sy stem lock-up, how to troubleshoot?

    Sta r ted by jw m a n n , 2 1 Feb 2 01 3 ker n el, pa n ic, sy stem , locku p

    7 r eplies

    1 ,01 3 v iew s

    Lor da dm ir a l Dr a ke

    2 2 Feb 2 01 3

    In ter n a t ion a l Ita lia n o Mou n ta in Lion 1 0.8 Desktop Kernel Panic all'av v io?

    Sta r ted by v en om 8 9 , 3 0 Ja n 2 01 3 ker n el, pa n ic, pr oblem a , m ou n ta in a n d

    2 m or e.. .

    8 r eplies

    6 5 8 v iew s

    v en om 8 9

    01 Feb 2 01 3

    OSx 8 6 Pr oject Post-In sta lla t ion OSx 8 6 1 0.8 (Mou n ta in Lion ) Can I under Mountain Lion reboot to windows without key board?

    Sta r ted by cu th ea d, 2 9 Ja n 2 01 3 r eboot , ch a m eleon

    3 r eplies

    7 7 8 v iew s

    cu th ea d

    3 1 Ja n 2 01 3

    No. See post #1 .