Jump to content

Open CORE Kernel & Kext patch for X99/X299 motherboard


nmano
Message added by fantomas

The contents of these post are outdated, all the XCPM patches for X99 and similar chipsets can be enabled within Kernel → Quirks section

435 posts in this topic

Recommended Posts

1 hour ago, vbraun said:

Another data point, I'm getting the same uninformative kernel panic as in my previous screenshot with OC 0.5.5 on an Asrock X99 Taichi board

 

Change your graphics card or Modify your config.

 

Link to comment
Share on other sites

vbraun, hi!

Attaching my BETA version of EFI folder for Asus x99 Deluxe + 5960x + GT 740 (tested in Mojave)

EFI contains my custom collection of SSDT patches and kexts. Pay attention, that my GPU is GT 740, which is natively supported by MacOS.

 

1. You MUST edit config.plist, because I've flushed my SMBIOS data... In "PlatformInfo > Generic" add your data to MLB, ROM, SystemSerialNumber, SystemUUID generated for iMacPro1,1 (use GenSMBIOS).

 

2. Also keep in mind, that I own Intel 5960x, and I do apply some specific patches for it. So if you have different CPU, you can disable 2 kernel patches (or edit them for your CPU) in config.plist Kernel > Patch section and remove VoodooTSCSync.kext OR, if your CPU needs this kext, edit it... for example, if your CPU have 6 cores 12 threads, then do right click "Show package contents" of VoodooTSCSync.kext > Contents > open Info.plist, find parameter IOCPUNumber - I have configured it with value of 15 (because 16 threads), change it to 11 if your CPU is 12 threads. Also remove SSDT.aml from ACPI folder, because it was generated for my CPU + overclock (4.25 GHz).

 

3. In BIOS: CSM disabled, VT-d enabled, everything else as in guide.

 

Good luck)

EFI.zip

Edited by tarkh
Link to comment
Share on other sites

15 minutes ago, vbraun said:

With tarkh's EFI I don't get the the kernel panic any more, awesome! 

 

When booting the catalina installer I now get up is the "no entry" sign error, I'll try all of my USB ports next...

 

 

What did verb mode says (-v) ? Try to Install Mojave first. Also it's possible that some BIOS settings differs from mine. Tomorrow I'll try to post my config file for BIOS + latest patched BIOS itself.

Link to comment
Share on other sites

 

I like to patch  Kernel->Patch->XCPM

 

1108249614_ScreenShot2020-03-07at4_07_48AM.png.8da4b104e3e5aea154e95790c417b01f.png

Edited by nmano
Link to comment
Share on other sites

  • 3 weeks later...
15 minutes ago, Isidore Isou said:

Hey. I'm very confused. Do X99 system with Opencore on 10.14 or 10.15 should apply XCPM patches or not?

 

As you wish.
But in Open Core they are not needed there is Kernel -> Quirks.
Read the documentation and the "Open Core Discussion" thread

Link to comment
Share on other sites

13 hours ago, pitrysha said:

As you wish.
But in Open Core they are not needed there is Kernel -> Quirks.
Read the documentation and the "Open Core Discussion" thread

Thanks, it's just that I see here and there people that have to use Kernel Patches to be able to boot to OC.

For the moment I have a panic with OC but not in Clover, I'm wondering if it's because I'm not using Kernel Patches. In Clover I'm using NullCPUPM.kext.

 

Is there a way to find what Patches are for 10.14.6? I've read everything I could but it's still confusing to me.

Thanks a lot for this information.

Link to comment
Share on other sites

10 minutes ago, Isidore Isou said:

Thanks, it's just that I see here and there people that have to use Kernel Patches to be able to boot to OC.

For the moment I have a panic with OC but not in Clover, I'm wondering if it's because I'm not using Kernel Patches. In Clover I'm using NullCPUPM.kext.

 

Is there a way to find what Patches are for 10.14.6? I've read everything I could but it's still confusing to me.

Thanks a lot for this information.

And who can help you without knowing your configuration

Link to comment
Share on other sites

1 minute ago, pitrysha said:

And who can help you without knowing your configuration

No one! Sorry was looking for the best place to seek help but I'll wrote here then.

  • Gigabyte X99-UD4
  • 5820k
  • 64GB DDR4
  • Asus RX 580

Now I'm using Clover with 10.14.6, without any XCPM, only with NullCPUPM.kext. Never been able to do better.

Now when I saw the Opencore Guide for Haswell-E, I did that a try, in order to have proper XCPM and sleep.

I've used this guide: https://khronokernel-2.gitbook.io/opencore-vanilla-desktop-guide/intel-hedt-config.plist/haswell-e

 

I have a Kernel Panic when trying an OpenCore install, just after the opencore menu. Seems to be a CPU panic.

The panic does not seems to show up on the OC log txt file.

What I already try:

  • Using only 1 stick of RAM
  • Removing Bluetooth related kext
  • Removing USB mapping kext
  • Using USB 2 port
  • Unplugging all drives except USB install key
  • Another SMBIOS
  • Deleting VRAM everytime I try to boot

Now I think should I add Kernel Patches to be able to boot? But which one are related to 10.14.6, that's what I don't know

I've asked help on reddit too: https://www.reddit.com/r/hackintosh/comments/fn21k0/kernel_panic_when_trying_an_opencore_install/

 

Thanks for any help.

opencore-2020-03-23-163732.txt

panic.jpg

Link to comment
Share on other sites

20 minutes ago, Download-Fritz said:

@Isidore Isou What makes you think it's a CPU panic? It looks the same as all the people's who do not upgrade FwRuntimeServices when they upgrade OC, make sure the versions are in *sync*

Just because I see "panic(CPU".

 

I am using the FwRuntimeServices I've found there: https://github.com/acidanthera/OpenCorePkg/releases in following the guide.

How can I check the versions are in *sync*? don't know what it means. Thanks.

Link to comment
Share on other sites

XCPM 10.15.4 

 

#Kernel->Emulate->

#FakeCPUID         0x050654  Skylake-X/Skylake-H 0x0406E3

Cpuid1Data   <->  E3060400 00000000 00000000 00000000 
Cpuid1Mask  <->   FFFFFFFF 00000000 00000000 00000000
  
#FakeCPUID         0x0306F2   Haswell-E/Haswell 0x0306C3

Cpuid1Data   <->  C3060300 00000000 00000000 00000000
Cpuid1Mask  <->   FFFFFFFF 00000000 00000000 00000000 

#FakeCPUID         0x040674   Broadwell-E/Broadwell 0x0306D4

Cpuid1Data   <-> D4060300 00000000 00000000 00000000
Cpuid1Mask  <->  FFFFFFFF 00000000 00000000 00000000 



XCPM Patches 10.15.4  Modify By N.Mano



#1

Base: xcpm_core_scope_msrs
Comment: xcpm_core_scope_msrs (c) Pike R. Alpha Modify By N.Mano
Count: 1
Enabled: YES
Find: 31D2E857 D2FFFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0


#2

Base:  _xcpm_pkg_scope_msrs
Comment:  _xcpm_pkg_scope_msrs (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 31D2E8E9 F9FEFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#3

Base: _xcpm_SMT_scope_msrs #1
Comment: _xcpm_SMT_scope_msrs #1 (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: BE060000 005DE908 000000
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: BE060000 005DC390 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0


#4

Base: _xcpm_SMT_scope_msrs_2
Comment: _xcpm_SMT_scope_msrs_2 (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 31D2E838 FDFFFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#5

Base: _xcpm_enable_pstate
Comment: _xcpm_enable_pstate_patch (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 41C1E608 4963D689 D048C1EA 20
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 41C1E608 B800FF00 0031D290 90
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0





#6 This patch for X99(Not for X299)

Base: _xcpm_bootstrap
Comment: xcpm_bootstrap_HASwell_E (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 80C3C480 FB42
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 80C3C180 FB42
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0
#7

Base: xcpm MSR Patch 4206
Comment:xcpm MSR Patch 4206 (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 42060000 DC330000 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000 
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 42060000 00000000 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000 
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#8

Base: xcpm E2 Patch 
Comment:C6/C7_If=E2-Enabled=0x7E000403  (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: E2000000 4C000000 00000000 00000000 0F040000 00000000 0500001E 
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: E2000000 4C000000 00000000 00000000 0F040000 00000000 0304007E 
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#9

Base: xcpm 3A06 Patch 
Comment: xcpm support /0x82D390/MSR_PP0_POLICY 0x63a (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 3A060000 DC330000 00000000 00000000 1F 
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 3A060000 00000000 00000000 00000000 00 
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#10
AppleIntelInfo.kext v3.0 Copyright © 2012-2017 Pike R. Alpha. All rights reserved.

Settings:
------------------------------------------
enableHWP............................... : 0
logMSRs................................. : 1
logIGPU................................. : 0
logIntelRegs............................ : 0
logCStates.............................. : 1
logIPGStyle............................. : 1

Warning: Clover hw.busfrequency error detected : 17d78400
InitialTSC.............................. : 0x18ba8f331498 (906 MHz)
MWAIT C-States.......................... : 8480

Processor Brandstring................... : Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz

Processor Signature..................... : 0x306F2
------------------------------------------
 - Family............................... : 6
 - Stepping............................. : 2
 - Model................................ : 0x3F (63)

Model Specific Registers (MSRs)
------------------------------------------

MSR_IA32_PLATFORM_ID..............(0x17) : 0x8000000000000
------------------------------------------
 - Processor Flags...................... : 2

MSR_CORE_THREAD_COUNT.............(0x35) : 0x80010
------------------------------------------
 - Core Count........................... : 8
 - Thread Count......................... : 16

MSR_PLATFORM_INFO.................(0xCE) : 0x20080C3BF3811E00
------------------------------------------
 - Maximum Non-Turbo Ratio.............. : 0x1E (3000 MHz)
 - Ratio Limit for Turbo Mode........... : 1 (programmable)
 - TDP Limit for Turbo Mode............. : 1 (programmable)
 - Low Power Mode Support............... : 1 (LPM supported)
 - Number of ConfigTDP Levels........... : 1 (additional TDP level(s) available)
 - Maximum Efficiency Ratio............. : 12
 - Minimum Operating Ratio.............. : 8

MSR_PMG_CST_CONFIG_CONTROL........(0xE2) : 0x7E000403
------------------------------------------
 - I/O MWAIT Redirection Enable......... : 1 (enabled, IO read of MSR(0xE4) mapped to MWAIT)
 - CFG Lock............................. : 0 (MSR not locked)
 - C3 State Auto Demotion............... : 1 (enabled)
 - C1 State Auto Demotion............... : 1 (enabled)
 - C3 State Undemotion.................. : 1 (enabled)
 - C1 State Undemotion.................. : 1 (enabled)
 - Package C-State Auto Demotion........ : 1 (enabled)
 - Package C-State Undemotion........... : 1 (enabled)

MSR_PMG_IO_CAPTURE_BASE...........(0xE4) : 0x10414
------------------------------------------
 - LVL_2 Base Address................... : 0x414
 - C-state Range........................ : 1 (C6 is the max C-State to include)

IA32_MPERF........................(0xE7) : 0x211711CC4D
IA32_APERF........................(0xE8) : 0x51646C4925

MSR_FLEX_RATIO...................(0x194) : 0xE0000
------------------------------------------

MSR_IA32_PERF_STATUS.............(0x198) : 0x280400002B00
------------------------------------------
 - Current Performance State Value...... : 0x2B00 (4300 MHz)

MSR_IA32_PERF_CONTROL............(0x199) : 0xFF00
------------------------------------------
 - Target performance State Value....... : 0xFF00 (25500 MHz)
 - Intel Dynamic Acceleration........... : 0 (IDA engaged)

IA32_CLOCK_MODULATION............(0x19A) : 0x0

IA32_THERM_INTERRUPT.............(0x19B) : 0x0

IA32_THERM_STATUS................(0x19C) : 0x883B0000
------------------------------------------
 - Thermal Status....................... : 0
 - Thermal Log.......................... : 0
 - PROCHOT # or FORCEPR# event.......... : 0
 - PROCHOT # or FORCEPR# log............ : 0
 - Critical Temperature Status.......... : 0
 - Critical Temperature log............. : 0
 - Thermal Threshold #1 Status.......... : 0
 - Thermal Threshold #1 log............. : 0
 - Thermal Threshold #2 Status.......... : 0
 - Thermal Threshold #2 log............. : 0
 - Power Limitation Status.............. : 0
 - Power Limitation log................. : 0
 - Current Limit Status................. : 0
 - Current Limit log.................... : 0
 - Cross Domain Limit Status............ : 0
 - Cross Domain Limit log............... : 0
 - Digital Readout...................... : 59
 - Resolution in Degrees Celsius........ : 1
 - Reading Valid........................ : 1 (valid)

MSR_THERM2_CTL...................(0x19D) : 0x0

IA32_MISC_ENABLES................(0x1A0) : 0x850089
------------------------------------------
 - Fast-Strings......................... : 1 (enabled)
 - FOPCODE compatibility mode Enable.... : 0
 - Automatic Thermal Control Circuit.... : 1 (enabled)
 - Split-lock Disable................... : 0
 - Performance Monitoring............... : 1 (available)
 - Bus Lock On Cache Line Splits Disable : 0
 - Hardware prefetch Disable............ : 0
 - Processor Event Based Sampling....... : 0 (PEBS supported)
 - GV1/2 legacy Enable.................. : 0
 - Enhanced Intel SpeedStep Technology.. : 1 (enabled)
 - MONITOR FSM.......................... : 1 (MONITOR/MWAIT supported)
 - Adjacent sector prefetch Disable..... : 0
 - CFG Lock............................. : 0 (MSR not locked)
 - xTPR Message Disable................. : 1 (disabled)

MSR_TEMPERATURE_TARGET...........(0x1A2) : 0x591200
------------------------------------------
 - Turbo Attenuation Units.............. : 0 
 - Temperature Target................... : 89
 - TCC Activation Offset................ : 0

MSR_MISC_PWR_MGMT................(0x1AA) : 0x400000
------------------------------------------
 - EIST Hardware Coordination........... : 0 (hardware coordination enabled)
 - Energy/Performance Bias support...... : 1
 - Energy/Performance Bias.............. : 0 (disabled/MSR not visible to software)
 - Thermal Interrupt Coordination Enable : 1 (thermal interrupt routed to all cores)
 - SpeedShift Technology Enable......... : 0 (disabled)
 - SpeedShift Interrupt Coordination.... : 0 (disabled)
 - SpeedShift Energy Efficient Perf..... : 0 (disabled)
 - SpeedShift Technology Setup for HWP.. : No (not setup for HWP)

MSR_TURBO_RATIO_LIMIT............(0x1AD) : 0x2B2B2B2B2B2B2B2B
------------------------------------------
 - Maximum Ratio Limit for C01.......... : 2B (4300 MHz) 
 - Maximum Ratio Limit for C02.......... : 2B (4300 MHz) 
 - Maximum Ratio Limit for C03.......... : 2B (4300 MHz) 
 - Maximum Ratio Limit for C04.......... : 2B (4300 MHz) 
 - Maximum Ratio Limit for C05.......... : 2B (4300 MHz) 
 - Maximum Ratio Limit for C06.......... : 2B (4300 MHz) 
 - Maximum Ratio Limit for C07.......... : 2B (4300 MHz) 
 - Maximum Ratio Limit for C08.......... : 2B (4300 MHz) 

IA32_ENERGY_PERF_BIAS............(0x1B0) : 0x5
------------------------------------------
 - Power Policy Preference.............. : 5 (balanced performance and energy saving)

MSR_POWER_CTL....................(0x1FC) : 0x2104005B
------------------------------------------
 - Bi-Directional Processor Hot......... : 1 (enabled)
 - C1E Enable........................... : 1 (enabled)

MSR_RAPL_POWER_UNIT..............(0x606) : 0xA0E03
------------------------------------------
 - Power Units.......................... : 3 (1/8 Watt)
 - Energy Status Units.................. : 14 (61 micro-Joules)
 - Time Units .......................... : 10 (976.6 micro-Seconds)

MSR_PKG_POWER_LIMIT..............(0x610) : 0x7FFD00014EA82
------------------------------------------
 - Package Power Limit #1............... : 3408 Watt
 - Enable Power Limit #1................ : 1 (enabled)
 - Package Clamping Limitation #1....... : 0 (disabled)
 - Time Window for Power Limit #1....... : 10 (2560 milli-Seconds)
 - Package Power Limit #2............... : 4090 Watt
 - Enable Power Limit #2................ : 1 (enabled)
 - Package Clamping Limitation #2....... : 1 (allow going below OS-requested P/T state setting Time Window for Power Limit #2)
 - Time Window for Power Limit #2....... : 3 (20 milli-Seconds)
 - Lock................................. : 0 (MSR not locked)

MSR_PKG_ENERGY_STATUS............(0x611) : 0x8AF4C51
------------------------------------------
 - Total Energy Consumed................ : 8893 Joules (Watt = Joules / seconds)

MSR_CONFIG_TDP_NOMINAL...........(0x648) : 0x1E
MSR_CONFIG_TDP_LEVEL1............(0x649) : 0x940000001B0460
MSR_CONFIG_TDP_LEVEL2............(0x64a) : 0x94000000000000
MSR_CONFIG_TDP_CONTROL...........(0x64b) : 0x0
MSR_TURBO_ACTIVATION_RATIO.......(0x64c) : 0x0
MSR_PKGC3_IRTL...................(0x60a) : 0x0
MSR_PKGC6_IRTL...................(0x60b) : 0x0
MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x49A452DEE0
MSR_PKG_C3_RESIDENCY.............(0x3f8) : 0x30E5A1C
MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x49A452DEE0
MSR_PKG_C3_RESIDENCY.............(0x3f8) : 0x30E5A1C
MSR_PKG_C6_RESIDENCY.............(0x3f9) : 0x5475EB2E94

IA32_TSC_DEADLINE................(0x6E0) : 0x18BA92F14287

CPU Ratio Info:
------------------------------------------
Base Clock Frequency (BLCK)............. : 100 MHz
Maximum Efficiency Ratio/Frequency...... : 12 (1200 MHz)
Maximum non-Turbo Ratio/Frequency....... : 30 (3000 MHz)
Maximum Turbo Ratio/Frequency........... : 43 (4300 MHz)
P-State ratio * 100 = Frequency in MHz
------------------------------------------
CPU P-States [ 42 (43) ]
CPU C3-Cores [ 0 2 4 6 8 11 ]
CPU C6-Cores [ 0 2 5 6 8 10 12 14 ]
CPU P-States [ (12) 40 42 43 ]
CPU C3-Cores [ 0 2 4 6 8 10 11 ]
CPU C6-Cores [ 0 2 4 5 6 8 10 12 14 ]
CPU P-States [ 12 33 40 42 (43) ]
CPU C6-Cores [ 0 2 4 5 6 8 10 12 13 14 15 ]
CPU P-States [ (12) 28 33 40 42 43 ]
CPU C3-Cores [ 0 1 2 4 6 8 10 11 ]
CPU P-States [ (12) 28 29 33 40 42 43 ]
CPU C3-Cores [ 0 1 2 4 6 8 9 10 11 ]
CPU C6-Cores [ 0 2 4 5 6 7 8 10 12 13 14 15 ]
CPU P-States [ (12) 27 28 29 33 40 42 43 ]
CPU C3-Cores [ 0 1 2 3 4 6 8 9 10 11 ]
CPU C6-Cores [ 0 2 4 5 6 7 8 9 10 12 13 14 15 ]
CPU P-States [ (12) 27 28 29 32 33 40 42 43 ]
CPU P-States [ (12) 27 28 29 30 32 33 40 42 43 ]
CPU P-States [ 12 27 28 29 30 32 33 35 40 42 (43) ]
CPU P-States [ 12 27 28 29 30 31 32 33 35 40 42 (43) ]
CPU C3-Cores [ 0 1 2 3 4 5 6 8 9 10 11 ]
CPU C3-Cores [ 0 1 2 3 4 5 6 7 8 9 10 11 ]
CPU P-States [ (12) 27 28 29 30 31 32 33 35 39 40 42 43 ]
CPU P-States [ (12) 27 28 29 30 31 32 33 34 35 39 40 42 43 ]
CPU C6-Cores [ 0 2 3 4 5 6 7 8 9 10 12 13 14 15 ]
CPU C6-Cores [ 0 1 2 3 4 5 6 7 8 9 10 12 13 14 15 ]
CPU P-States [ 12 27 28 29 30 31 32 33 34 35 37 39 40 42 (43) ]

 

Enjoy.:)

Edited by nmano
Link to comment
Share on other sites

Hello

 

  Just want to understand is there any difference between enabling in opencore Kernel -> Quirk & manual kernel patching?

 

  I myself is using opencore quirk in Catalina 10.15.4 & using manual patch previously in 10.15.3. Now in Opencore quirk, the I set the options related to xcpm as below: 

            <key>AppleCpuPmCfgLock</key>
            <false/>
            <key>AppleXcpmCfgLock</key>
            <false/>
            <key>AppleXcpmExtraMsrs</key>
            <true/>
            <key>AppleXcpmForceBoost</key>
            <false/>
 

  As I have a customized bios which unlock MSR E2 registry, I set first two options false.

 

  The thing is that I observe slight performance drop after upgrading to 10.15.4.

 

  With manual kernel patch in 10.15.3(but the quirk section is still exactly the same as above), I got a CPU single thread score around 1100 in Geekbench 5.

  However, with opencore quirk in 10.15.4(basically just remove all manual kernel patch), I got a CPU single thread score around 950 in Geekbench 5.

  I also tried the manual patching way in 10.15.4 and the result seems similar to the opencore quirk.

 

  So before having a deeper investigation on the performance, I would like to understand if there is any difference between these 2 ways.

 

Link to comment
Share on other sites

XCPM 10.15.4 patched update.

 

#Kernel->Emulate->

#FakeCPUID         0x050654  Skylake-X/Skylake-H 0x0406E3

Cpuid1Data   <->  E3060400 00000000 00000000 00000000 
Cpuid1Mask  <->   FFFFFFFF 00000000 00000000 00000000
  
#FakeCPUID         0x0306F2   Haswell-E/Haswell 0x0306C3

Cpuid1Data   <->  C3060300 00000000 00000000 00000000
Cpuid1Mask  <->   FFFFFFFF 00000000 00000000 00000000 

#FakeCPUID         0x040674   Broadwell-E/Broadwell 0x0306D4

Cpuid1Data   <-> D4060300 00000000 00000000 00000000
Cpuid1Mask  <->  FFFFFFFF 00000000 00000000 00000000 



XCPM Patches 10.15.4  Modify By N.Mano



#1

Base: xcpm_core_scope_msrs
Comment: xcpm_core_scope_msrs (c) Pike R. Alpha Modify By N.Mano
Count: 1
Enabled: YES
Find: 31D2E857 D2FFFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0


#2

Base:  _xcpm_pkg_scope_msrs
Comment:  _xcpm_pkg_scope_msrs (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 31D2E8E9 F9FEFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#3

Base: _xcpm_SMT_scope_msrs #1
Comment: _xcpm_SMT_scope_msrs #1 (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: BE060000 005DE908 000000
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: BE060000 005DC390 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0


#4

Base: _xcpm_SMT_scope_msrs_2
Comment: _xcpm_SMT_scope_msrs_2 (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 31D2E838 FDFFFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#5

Base: _xcpm_enable_pstate
Comment: _xcpm_enable_pstate_patch (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 41C1E608 4963D689 D048C1EA 20
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 41C1E608 B800FF00 0031D290 90
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#6 This patch for X99(Not for X299)Find 48 63 04 81 48 01 C8 FF E0 C7 05

Base: _xcpm_bootstrap
Comment: xcpm_bootstrap_HASwell_E (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 80C3C480 FB42
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 80C3C180 FB42
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0




#7

Base: xcpm MSR Patch 4206
Comment:xcpm MSR Patch 4206 (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find:    42060000 DC330600 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000 
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 42060000 00000000 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000 
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0
#8

Base: xcpm E2 Patch 
Comment:C6/C7_If=E2-Enabled=0x7E000403  (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: E2000000 4C000000 00000000 00000000 0F040000 00000000 0500001E 
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: E2000000 4C000000 00000000 00000000 0F040000 00000000 0304007E 
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#9

Base: xcpm 3A06 Patch 
Comment: xcpm support /0x82D390/MSR_PP0_POLICY 0x63a (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 3A060000 DC330600 00000000 00000000 1F 
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 3A060000 00000000 00000000 00000000 1F 
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

 

Link to comment
Share on other sites

On 3/24/2020 at 5:49 PM, Isidore Isou said:

没有人!抱歉,我们正在寻找寻求帮助的最佳地点,但是我会在这里写信。

  • 技嘉X99-UD4
  • 5820k
  • 64GB DDR4
  • 华硕RX 580

现在,我将Clover与10.14.6一起使用,没有任何XCPM,仅与NullCPUPM.kext一起使用。从来没有能够做得更好。

现在,当我看到《 Haswell-E Opencore指南》时,我做了一次尝试,以获取适当的XCPM和睡眠。

我使用了本指南:https : //khronokernel-2.gitbook.io/opencore-vanilla-desktop-guide/intel-hedt-config.plist/haswell-e

 

在opencore菜单之后,尝试进行OpenCore安装时出现内核恐慌。似乎是CPU的恐慌。

恐慌似乎没有显示在OC日志txt文件上。

我已经尝试了什么:

  • 仅使用1根RAM
  • 删除与蓝牙相关的kext
  • 删除USB映射kext
  • 使用USB 2端口
  • 拔出除USB安装钥匙以外的所有驱动器
  • 另一个SMBIOS
  • 每次尝试引导时删除VRAM

现在我认为我应该添加内核补丁程序才能启动吗?但是,哪个与10.14.6有关,这就是我所不知道的

我也曾在reddit上寻求帮助:https : //www.reddit.com/r/hackintosh/comments/fn21k0/kernel_panic_when_trying_an_opencore_install/

 

谢谢你的帮助。

opencore-2020-03-23-163732.txt

panic.jpg

me too,Excuse me, have you solved this problem? I had the same problem, using the same guidelines

 

 

oc x99 6800k.zip

E0C67CCD14D3D3B40A13290382ADED92.jpg

Edited by xiaovie
Link to comment
Share on other sites

17 hours ago, xiaovie said:

me too,Excuse me, have you solved this problem? I had the same problem, using the same guidelines

 

Hello,

 

I did resolve the Kernel Panic by doing this:

  • DevirtualiseMmio = False

You should also check this:

Good luck

Link to comment
Share on other sites

Is there somewhere a list of what patches exactly are present in Kernel > Quirks > AppleXcpmExtraMsrs in Opencore 0.5.6? I though I did find one the other day but impossible to find it back. It should be usefull to know.

 

I found this but not exactly a complete list: https://github.com/acidanthera/bugtracker/issues/365

Link to comment
Share on other sites

XCPM 10.15.4 X99/X299

 

Its New method. 

If you are using _xcpm_bootstrap patch you have to Emulate Original CPUID

 

#Kernel->Emulate->Your CPU Original ID

 

#CPUID         0x050657  Cascade Lake-X

 

Cpuid1Data   <->  57060500 00000000 00000000 00000000

Cpuid1Mask  <->   FFFFFFFF 00000000 00000000 00000000

 

#CPUID         0x050654  Skylake-X/Skylake-H 0x0406E3

 

Cpuid1Data   <->  54060500 00000000 00000000 00000000

Cpuid1Mask  <->   FFFFFFFF 00000000 00000000 00000000

 

#CPUID         0x0306F2   Haswell-E/Haswell 0x0306C3

 

Cpuid1Data   <->  F2060300 00000000 00000000 00000000

Cpuid1Mask  <->   FFFFFFFF 00000000 00000000 00000000 

 

#CPUID         0x0406F1   Broadwell-E/Broadwell 0x0306D4

 

Cpuid1Data   <-> F1060400 00000000 00000000 00000000

Cpuid1Mask  <->  FFFFFFFF 00000000 00000000 00000000

 

XCPM Patches 10.15.4   By N.Mano

 

#1

Base: xcpm_core_scope_msrs
Comment: xcpm_core_scope_msrs (c) Pike R. Alpha Modify By N.Mano
Count: 1
Enabled: YES
Find: 31D2E857 D2FFFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0


#2

Base:  _xcpm_pkg_scope_msrs
Comment:  _xcpm_pkg_scope_msrs (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 31D2E8E9 F9FEFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#3

Base: _xcpm_SMT_scope_msrs #1
Comment: _xcpm_SMT_scope_msrs #1 (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: BE060000 005DE908 000000
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: BE060000 005DC390 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0


#4

Base: _xcpm_SMT_scope_msrs_2
Comment: _xcpm_SMT_scope_msrs_2 (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 31D2E838 FDFFFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#5

Base: _xcpm_enable_pstate
Comment: _xcpm_enable_pstate_patch (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 41C1E608 4963D689 D048C1EA 20
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 41C1E608 B800FF00 0031D290 90
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#6 This patch for X99(Haswell-E)

Base: _xcpm_bootstrap
Comment: xcpm_bootstrap HASwell-E (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find: 80C3C480 FB42
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 80C3C180 FB42
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#7 This patch for X299(Skylake-X/Cascade Lake-X)

Base: _xcpm_bootstrap
Comment: xcpm_bootstrap Skylake-X/Cascade Lake-X (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find:   80C3C480 FB42
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 80C3BD80 FB42
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#8 This patch for X99(Broadwell-E)

Base: _xcpm_bootstrap
Comment: xcpm_bootstrap Broadwell-E (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find:    80C3C480 FB42
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 80C3BC80 FB42
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0


#9

Base: xcpm MSR Patch 4206
Comment:xcpm MSR Patch 4206 (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find:    42060000 DC330600 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000 
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 42060000 00000000 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000 
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#10

Base: xcpm E2 Patch 
Comment:C6/C7_If=E2-Enabled=0x7E000403  (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find:   E2000000 4C000000 00000000 00000000 0F040000 00000000 0500001E 
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: E2000000 4C000000 00000000 00000000 0F040000 00000000 0304007E 
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#11

Base: xcpm 3A06 Patch 
Comment: xcpm support /0x82D390/MSR_PP0_POLICY 0x63a (c) Pike R. Alpha Modify By N.Mano
Count: 0
Enabled: YES
Find:   3A060000 DC330600 00000000 00000000 1F 
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
Replace: 3A060000 00000000 00000000 00000000 1F 
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

 

Link to comment
Share on other sites

Hey @nmano, please can you share your OpenCore folder without sensitive data for the GA-x299 board, i can't get it working for both OpenCore and Clover, as we have the same hardware. Thanks

Edited by ammoune78
Link to comment
Share on other sites

Hi Nmano,

 

I just wanted to make sure the Broadwell-E patches are correct as you’ve linked to a few different versions i this thread.

 

#CPUID         0x0406F1   Broadwell-E/Broadwell 0x0306D4

 

Cpuid1Data   <-> F1060400 00000000 00000000 00000000

Cpuid1Mask  <->  FFFFFFFF 00000000 00000000 00000000

 

cheers 

Link to comment
Share on other sites

Open Core Guide page 23

8 minutes ago, ekwipt said:

Hi Nmano,

 

I just wanted to make sure the Broadwell-E patches are correct as you’ve linked to a few different versions i this thread.

 

#CPUID         0x0406F1   Broadwell-E/Broadwell 0x0306D4

 

Cpuid1Data   <-> F1060400 00000000 00000000 00000000

Cpuid1Mask  <->  FFFFFFFF 00000000 00000000 00000000

 

cheers 

Open Core Guide page 23

Link to comment
Share on other sites

×
×
  • Create New...