Jump to content

Open CORE Kernel & Kext patch for X99/X299 motherboard


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

400 posts in this topic

Recommended Posts

I've tried these patches on Asus X99-S  5820K , with Big Sur, and it Kernel Panics after PCI Configuration. Worked fine with Catalina, any ideas?

Edited by MacPato
1 minute ago, StephanCA said:

@MacPato I have similar hardware and exact same problem. Also looking for any ideas.

panic.png

yeah i get the same error, its XCPM related from what i can see, but then opencore patches it fine on Catalina, so i think Big Sur is a no go on this platform for now

On 7/1/2020 at 1:33 AM, Cclown98 said:

 

thank you so much, those ones worked like a charm just the HASWELL-E bootstraps patch is missing, i used to get about 3.3ghz with that one but without it my processor wont go further than 3.1Ghz

Would you mind to share your EFI I have the same processor!

Thanks in advance!!

47 minutes ago, Cclown98 said:

I can confirm that all the mac os 11.0 DP1 patches are working perfectly on DP2

Please share the files for review,

I have a panic when loading .

XCPM 10.15.6 X99/X299

Before test  uncheck your Config.plist

Kernel-> Quirks->

AppleCpuPmCfgLock-No

AppleXcpmExtraMsrs-No

AppleXcpmForceBoost-No

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

 

#Kernel->Emulate->Your CPU Original ID

 

#CPUID          Cascade Lake-X 0x050657

 

Cpuid1Data   <->  57060500 00000000 00000000 00000000

Cpuid1Mask  <->   FFFFFFFF 00000000 00000000 00000000

 

#CPUID           Skylake-X 0x050654  /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.6 Modify By N.Mano

#1 xcpm_core_scope_msrs © Pike R. Alpha Modify N.Mano  

Comment    String  <-> xcpm_core_scope_msrs Modify By N.Mano
Count:  0
Enabled   Boolean <-> Yes
Find       Data<-> 31D2E857 D2FFFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace    Data<-> 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

 #2 _xcpm_pkg_scope_msrs (c) Pike R. Alpha Modify By N.Mano

Comment    String  <-> _xcpm_pkg_scope_msrs  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 31D2E8E9 F9FEFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#3 

Comment    String  <-> _xcpm_SMT_scope_msrs #1  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> BE060000 005DE908 000000
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> BE060000 005DC390 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#4

Comment    String  <-> _xcpm_SMT_scope_msrs_2  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 31D2E838 FDFFFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#5

Comment    String  <-> __xcpm_enable_pstate_patch  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 41C1E608 4963D689 D048C1EA 20
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 41C1E608 B800FF00 0031D290 90
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#6 This patch for X99(Haswell-E)

Comment    String  <-> xcpm_bootstrap HASwell-E  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 8D43C43C 427722
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 8D43C13C 427722
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

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


Comment    String  <-> xcpm_bootstrap Skylake-X/Cascade Lake-X  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 8D43C43C 427722
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 8D43BD3C 427722
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#8 This patch for X99(Broadwell-E)

Comment    String  <-> xcpm_bootstrap Broadwell-E  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 8D43C43C 427722
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 8D43BC3C 427722
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#9

Comment    String  <-> xcpm_bootstrap IvyBridge E  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 8D43C43C 427722
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 8D43C63C 427722
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

 #10

Comment    String  <-> _C6/C7_If=E2-Enabled=0x7E000403  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> E2000000 4C000000 00000000 00000000 0F040000 00000000 0500001E
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> E2000000 4C000000 00000000 00000000 0F040000 00000000 0304007E
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#11

Comment    String  <-> xcpm MSR Patch 4206  By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 42060000 DC330600 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 42060000 00000000 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#12

Comment    String  <-> xcpm support /0x82D390/MSR_PP0_POLICY 0x63a  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 3A060000 DC330600 00000000 00000000 1F
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 3A060000 00000000 00000000 00000000 1F
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0


#13 Disable panic kext logging on 10.15.6/10.16.x Release kernel +0x7700 Modify By N.Mano

Comment    String  <-> Disable panic kext logging on Modify By N.Mano 10.15.6/10.16.x
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 8A0284C0 740D
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 8A0284C0 EB0D
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

 

  • Like 1
  • 2 weeks later...

Sorry, but what are all these patches for? My signature hardware works great without all these patches. I use only PMDrvr.kext for PM from here.

What is the difference between them?

Edited by AslashA
On 7/31/2020 at 6:27 PM, Cclown98 said:

I can confirm that all patches are working on Big Sur DP 3 except 


 xcpm_core_scope_msrs Modify By N.Mano

 

Same on DP 4, just one patch is missing

 

xcpm_core_scope_msrs Modify By N.Mano

 

all the others work like a charm

  • Like 1
6 hours ago, Cclown98 said:

 

Same on DP 4, just one patch is missing

 

xcpm_core_scope_msrs Modify By N.Mano

 

all the others work like a charm

Please update DP4 Kernel I will check.

is anyone know what is this error? I am stuck on PCI Configuration begin, my mobo is  i7-6900K and GA-X99-Designare EX? 

 

I cant find 4g settings in my bios and also tried npci=0x2000 and npci=0x3000

IMG_2914.JPG

I’ve used your EFI folder and this is the error message now: apfs_vfsop_unmount:1941: all done. going home.

I’ve used your EFI folder and this is the error message now: apfs_vfsop_unmount:1941: all done. going home.

On 7/3/2020 at 5:07 AM, MacPato said:

I've tried these patches on Asus X99-S  5820K , with Big Sur, and it Kernel Panics after PCI Configuration. Worked fine with Catalina, any ideas?

For me works perfectly on Big Sur DP4, Asus X99 Deluxe with MSR=E2 unlocked and latest Intel Microcode, bios version 4101, Intel 5820k. 

EFI.zip

  • Like 3
  • Thanks 1
11 hours ago, dMatik said:

У меня отлично работает на Big Sur DP4, Asus X99 Deluxe с разблокированным MSR = E2 и последней версией Intel Microcode, BIOS версии 4101, Intel 5820k. 

EFI.zip

Good afternoon. Can you share the unlocked BIOS? I have exactly the same fee. only the E5-2640 v3 processor. I would be very grateful.

1 hour ago, Антико said:

Good afternoon. Can you share the unlocked BIOS? I have exactly the same fee. only the E5-2640 v3 processor. I would be very grateful.

HERE IT IS, USE WITH CAUTION ONLY ON !!! ASUS X99 DELUXE !!!

 

Also forgot to mention by using the uefipatch bellow I have native nvram support too on my asus x99 deluxe mobo.

 

# AMI APTIO V NvramSmiDxe (Socket 2011-v3 MB: C612, X99) NVRAM whitelist unlock
54B070F3-9EB8-47CC-ADAF-39029C853CBB 10 P:0F84B300000041F6:90E9B300000041F6

 

I will attach the patches.txt used aswell. Let me know how it works for you. Peace 

 

X99D.cap.zip

patches.txt

  • Like 1
  • Thanks 1
On 8/11/2020 at 4:37 PM, Thameem said:

is anyone know what is this error? I am stuck on PCI Configuration begin, my mobo is  i7-6900K and GA-X99-Designare EX? 

 

I cant find 4g settings in my bios and also tried npci=0x2000 and npci=0x3000

IMG_2914.JPG

 

DevirtualiseMmio = No but should normally be Yes

I couldn't boot with this set to yes, it seems like a common problem for X99, so the guide might want to change or reference this IMO

Kernel - Add

XHCI-unsupported.kext you probably don't need this

Pretty sure I still need this for X99

Patch - Quirks

IncreasePciBarSize = Yes but should normally be No

I need this set to yes to boot

(Description: Increases 32-bit PCI bar size in IOPCIFamily from 1 to 4 GBs.Note: This option should be avoided whenever possible. In general the necessity of this option means misconfigured or broken firmware.)

boot-args = slide=128 npci=0x2000

(I originally had it st to -v debug=0x100 dart=0 slide=128 keepsyms=1 npci=0x2000, but got it down to this)

On 8/13/2020 at 4:15 AM, ekwipt said:

 

DevirtualiseMmio = No but should normally be Yes

I couldn't boot with this set to yes, it seems like a common problem for X99, so the guide might want to change or reference this IMO

Kernel - Add

XHCI-unsupported.kext you probably don't need this

Pretty sure I still need this for X99

Patch - Quirks

IncreasePciBarSize = Yes but should normally be No

I need this set to yes to boot

(Description: Increases 32-bit PCI bar size in IOPCIFamily from 1 to 4 GBs.Note: This option should be avoided whenever possible. In general the necessity of this option means misconfigured or broken firmware.)

boot-args = slide=128 npci=0x2000

(I originally had it st to -v debug=0x100 dart=0 slide=128 keepsyms=1 npci=0x2000, but got it down to this)

Check my EFI above. With DevirtualizaMmio = Yes you need to add adress: 4278190080 Comment: Generic: PCI root is a 0x1000 page memory region under Mmio Whitelist in booter section. Use OpenCore Configurator, it makes life a little bit easier 

  • Like 1

I have applied the following patches

#8 This patch for X99(Broadwell-E)

Comment    String  <-> xcpm_bootstrap Broadwell-E  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 80C3C480 FB420F
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 80C3BC80 FB420F
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0



#1 xcpm_core_scope_msrs © Pike R. Alpha Modify N.Mano  

Comment    String  <-> xcpm_core_scope_msrs Modify By N.Mano
Count:  0
Enabled   Boolean <-> Yes
Find       Data<-> 31D2E857 D2FFFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace    Data<-> 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0


 #2 _xcpm_pkg_scope_msrs (c) Pike R. Alpha Modify By N.Mano

Comment    String  <-> _xcpm_pkg_scope_msrs  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 31D2E8E9 F9FEFF
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 31D29090 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0



#3 

Comment    String  <-> _xcpm_SMT_scope_msrs #1  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> BE060000 005DE908 000000
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> BE060000 005DC390 909090
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#4

Comment    String  <->_xcpm_SMT_scope_msrs_2 (c) Pike R. Alpha Modify By N.Mano
Disabled   Boolean <-> No
Find       Data<->  31D2E838 FDFFFF
MatchOS    String <-> 10.15.x
Replace    Data<-> 31D29090 909090


#5

Comment    String  <->__xcpm_enable_pstate_patch (c) Pike R. Alpha Modify By N.Mano
Disabled   Boolean <-> No
Find       Data<->   41C1E608 4963D689 D048C1EA 20
MatchOS    String <-> 10.15.x
Replace    Data<->   41C1E608 B800FF00 0031D290 90

 #10

Comment    String  <->_C6/C7_If=E2-Enabled=0x7E000403 Pike R. Alpha Modify By N.Mano
Disabled   Boolean <-> No
Find       Data<-> E2000000 4C000000 00000000 00000000 0F040000 00000000 0500001E 
MatchOS    String <-> 10.12.x,10.13.x,10.14.x,10.15.x
Replace    Data<-> E2000000 4C000000 00000000 00000000 0F040000 00000000 0304007E 



#11

Comment    String  <-> xcpm MSR Patch 4206  By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 42060000 DC330600 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 42060000 00000000 00000000 00000000 1F000000 00000000 18000000 00000000 00000000 00000000 00000000 00000000
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#12

Comment    String  <-> xcpm support /0x82D390/MSR_PP0_POLICY 0x63a  Modify By N.Mano
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 3A060000 DC330600 00000000 00000000 1F
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 3A060000 00000000 00000000 00000000 1F
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

#13 Disable panic kext logging on 10.15.6/10.16.x Release kernel +0x7700 Modify By N.Mano

Comment    String  <-> Disable panic kext logging on Modify By N.Mano 10.16.x
Count:  0
Enabled Boolean <-> Yes
Find        Data<-> 8A0284C0 740D
Identifier: kernel
Limit: 0
Mask: (LEAVE THIS EMPTY)
MatchKernel: 
MinKernel:
Replace     Data<-> 8A0284C0 EB0D
ReplaceMask: (LEAVE THIS EMPTY)
Skip: 0

My hardware: 

 

Motherboard: Gigabyte GA-X99-Designare EX (rev. 1.0)
CPU: Core i7-6900K
RAM: 64GB
G.Skill Ripjaws V Series 32GB (2 x 16GB)
G.Skill Ripjaws V Series 32GB (2 x 16GB)

Graphics: GIGABYTE GTX650 2GB 128Bit GDDR5

Wifi + Bluetooth: Fenvi 7

 

I'm getting good benchmark results, but the only problem is the Requested frequency in Intel Power Gadget shows as 25.50, is that a problem?

benchmarks.jpeg

config.plist

Screen Shot 2020-08-15 at 9.20.23 PM.png

Hello,

 

I tried Big Sur patches and still avec KP. I'm using FakeCPUID for Broadwell-e as I have boot freeze when I use xcpm_bootstrap and original CPUID.

 

Do you have any idea ?

 

Thanks

 

Edit: I tried with OC 0.6.1 and I had instant reboot with same KP.

Edited by nyu1985
On 8/12/2020 at 5:50 AM, dMatik said:

For me works perfectly on Big Sur DP4, Asus X99 Deluxe with MSR=E2 unlocked and latest Intel Microcode, bios version 4101, Intel 5820k. 

EFI.zip

Thanks for your EFI.

Can I watch your ioreg Big Sur and Cataline?

What is the "-hbfx-disable-patch-pci" argument for?

  • Allan unpinned this topic
×
×
  • Create New...