Jump to content
30960 posts in this topic

Recommended Posts

I  try KernelIvyXCPM=true  alone, and panic cpu as I say before  :) 

You need also this key

<key>KernelPm</key>

<true/>
 
maybe your config.plist not good ?
or Clover révision ?

 

 

You need also this key

<key>KernelPm</key>

<true/>
 
maybe your config.plist not good ?
or Clover révision ?

 

With KernelIVyXCPM+KernelPm, ----> panic cpu as I said in post #14131

For me it works on 10.12.6 and 10.13 PB5

 

Here is my config.plist you might need to add nvidia flags because I use and AMD GPU

 

I try it tomorrow morning. Because I have to take care of my nephew. Thanks 

@Matgen84

do you use xcpm_bootstrap? if so disable it and try again.

I just added these patches and I get kernel panic:

Find: 8d43c483 f822    Replace: 8d43c183 f822    xcpm bootstrap  derived from Pike R. Alpha's Ivy Bridge patch
  • Like 1

@PMheart

I perform a fresh Install High Sierra BETA 5 in my Probook

I post result and boot log soon

EDI*** Done with the Clover boot Log

Here you go fresh install High Sierra Beta 5 

Full XCPM Support  :w00t:  :thumbsup_anim:

Congrats this is working so perfect !!!

 

 

sans_t30.jpg

 

 

 

Clover Boot Log.txt.zip

  • Like 2

 

@Matgen84

do you use xcpm_bootstrap? if so disable it and try again.

I just added these patches and I get kernel panic:

Find: 8d43c483 f822    Replace: 8d43c183 f822    xcpm bootstrap  derived from Pike R. Alpha's Ivy Bridge patch

For one of my test, I just use PMHeart patch not xcpm bootstrap.

@PMHeart @cyberdevs @Chris1111

 

With r4156, KernelIVyXCPM+KernelPm=true all work fine with Sierra config.plist from my HDD.

 

I don't know why. Perhaps because all my testing were done with r4154; sorry, I forgot that.

 

 

post-1110743-0-82730400-1502433841_thumb.png

  • Like 3

I guess that explains why KernelIvyXCPM only worked on 10.11.6 here.

 

While we're talking about all this stuff, it would be nice if Clover integrated stinga11's patches for SNB-E. Maybe two-thirds of the config.plist on my X79 consists of the patches that enable this from 10.9-10.13.

 

 

Does Clover include the patch for Ivy Bridge-E PM?  I have the Xeon E5-2697v2 and only need the 10.12 X79PlatformPlugin.kext no need for CPU patching.  Would I still need this kext or is there some setting in clover that will apply this as well?

Does Clover include the patch for Ivy Bridge-E PM?  I have the Xeon E5-2697v2 and only need the 10.12 X79PlatformPlugin.kext no need for CPU patching.  Would I still need this kext or is there some setting in clover that will apply this as well?

No. Ivy-E is an XCPM unsupported model. AICPUPM should be the best solution I guess. (Note that there's even AICPUPM workaround mode for Ivy-E like they did for MacPro6,1, this is the only way to get a frequency lower than 1600Mhz with AICPUPM as far as I know) Although XCPM could also be enabled properly on Ivy-E in principle...

 

AFAIK, only SNB-E needs patching. IVB-E is natively supported.

 

I don't use the X79PlatformPlugin kext here as that's only for MP6,1 and I use MP5,1.

True.

Sigh... MP5,1 doesn't even have X86 support, so the data is missing undoubtedly. Maybe it's better to fill the data, for example something from MP6,1. (Remove pmspFile to prevent KP)

If you prefer Clover kext injection for that, I think CPUFriend might help you.

  • Like 2

Yes, all the scripts should be 755.

 

@syscl, PMheart, Sherlocks, whoever else commited after 4128:

 

There are a ton of mistakes. Please look back over your code and correctly use UINTN, UINT32, UINT64. Also you cannot place declarations after a statement, so those declarations of patches need to be moved outside the functions or to the beginning before any statements. You should disable GCC C extensions as they make the compiler act like C++ instead of C, which causes all sorts of problems when another compiler is used.

 

EDIT: In case you are wondering, no, I cannot build if I don't use GCC...

  • Like 2

Yes, all the scripts should be 755.

 

@syscl, PMheart, Sherlocks, whoever else commited after 4128:

 

There are a ton of mistakes. Please look back over your code and correctly use UINTN, UINT32, UINT64. Also you cannot place declarations after a statement, so those declarations of patches need to be moved outside the functions or to the beginning before any statements. You should disable GCC C extensions as they make the compiler act like C++ instead of C, which causes all sorts of problems when another compiler is used.

 

EDIT: In case you are wondering, no, I cannot build if I don't use GCC...

Just wondering... you're using a C compiler that doesn't support C99?

https://en.wikipedia.org/wiki/C99

Just wondering... you're using a C compiler that doesn't support C99?

https://en.wikipedia.org/wiki/C99

 

Yes, of course, but not by default, almost every compiler is by default ANSI C89/90. Except for GCC which is C90 with GCC-specific extensions.

Yes, of course, but not by default, almost every compiler is by default ANSI C89/90. Except for GCC which is C90 with GCC-specific extensions.

If the intention is to build Clover without C99, perhaps it should be disabled when building with Xcode. Then you don't have to worry about devs adding code that depend on it.

 

IMHO, Seems ok to rely on tech (C99) that was ratified more than 17 years ago.

irc, there was a terminal command to unload all non-apple kext at once.

anyone can recall it?

I'm on mobile, but something like this maybe:

for i in $(ls /System/Library/Extensions/|grep -v -i apple);do kextunload "$i";done

Edit: Caution, even if it works, it would only unload kexts whose name doesn't contain the word "apple"...

  • Like 1

@Sherlocks: your latest commit r4162 broke the vram reading for me...

Upload clover full log.

 

나의 LG-F800S 의 Tapatalk에서 보냄

 

my log

8:632  0:000  mem_detected 2048Mb
8:632  0:000  read_nVidia_ROM
8:632  0:000  Using PRAMIN fixups
8:729  0:096  PROM
8:933  0:203  version 80.28.A6.00.58
8:933  0:000  nVidia Gigabyte GeForce GT 710  2048MB NV106 [10DE:128B] :: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0) => device #1
8:933  0:000  Nvidia: VideoPorts: undefined, default to: 2

 

Upload clover full log.

 

나의 LG-F800S 의 Tapatalk에서 보냄

 

my log

8:632  0:000  mem_detected 2048Mb
8:632  0:000  read_nVidia_ROM
8:632  0:000  Using PRAMIN fixups
8:729  0:096  PROM
8:933  0:203  version 80.28.A6.00.58
8:933  0:000  nVidia Gigabyte GeForce GT 710  2048MB NV106 [10DE:128B] :: PciRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0) => device #1
8:933  0:000  Nvidia: VideoPorts: undefined, default to: 2

Here is with your latest revision:

3:703  0:000  mem_detected 256Mb
3:703  0:000  Apply NvidiaGeneric
3:703  0:000  read_nVidia_ROM
3:703  0:000  Using PRAMIN fixups
3:915  0:212  version 70.10.55.00.01
3:915  0:000  nVidia NVIDIA GeForce GTX 570 HD  256MB NVC8 [10DE:1086] :: PcieRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0) => device #1
3:915  0:000  Nvidia: VideoPorts: undefined, default to: 2
3:915  0:000  default NVCAP: 04000000-00000300-3C000000-00000007-00000000
3:915  0:000  Apply NvidiaGeneric
3:915  0:000  read_nVidia_ROM
3:915  0:000  Using PRAMIN fixups
3:975  0:059  PROM
4:035  0:059  ERROR: Unable to locate nVidia Video BIOS
4:035  0:000   there are no ROM loaded and no VBIOS read from hardware
4:035  0:000  nVidia NVIDIA GeForce GTX 570 HD  256MB NV1FF [10DE:1086] :: PcieRoot(0x0)\Pci(0x1,0x1)\Pci(0x0,0x0) => device #2
4:035  0:000  Nvidia: VideoPorts: undefined, default to: 2
4:035  0:000  default NVCAP: 04000000-00000300-3C000000-00000007-00000000
4:035  0:000   setting specified layout-id=1 (0x1)
4:036  0:000  stringlength = 5236
4:036  0:000  CurrentMode: Width=1920 Height=1080

Mind, I do have two gtx570's...

 

Here without your changes in Nvidia.c:

3:903  0:000  mem_detected 1280Mb
3:903  0:000  Apply NvidiaGeneric
3:903  0:000  read_nVidia_ROM
3:903  0:000  Using PRAMIN fixups
4:114  0:211  version 70.10.55.00.01
4:114  0:000  nVidia NVIDIA GeForce GTX 570 HD  1280MB NVC8 [10DE:1086] :: PcieRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0) => device #1
4:114  0:000  Nvidia: VideoPorts: undefined, default to: 2
4:114  0:000  default NVCAP: 04000000-00000300-3C000000-00000007-00000000
4:114  0:000  Apply NvidiaGeneric
4:114  0:000  read_nVidia_ROM
4:114  0:000  Using PRAMIN fixups
4:174  0:059  PROM
4:233  0:059  ERROR: Unable to locate nVidia Video BIOS
4:233  0:000   there are no ROM loaded and no VBIOS read from hardware
4:233  0:000  nVidia NVIDIA GeForce GTX 570 HD  1280MB NV1FF [10DE:1086] :: PcieRoot(0x0)\Pci(0x1,0x1)\Pci(0x0,0x0) => device #2
4:233  0:000  Nvidia: VideoPorts: undefined, default to: 2
4:233  0:000  default NVCAP: 04000000-00000300-3C000000-00000007-00000000
4:234  0:000   setting specified layout-id=1 (0x1)
4:234  0:000  stringlength = 5236
4:234  0:000  CurrentMode: Width=1920 Height=1080

Edit: I also don't understand, why just removing some piece of code would solve the problem with the newer Nvidia cards...

 

You are removing this:

@@ -2115,6 +2115,8 @@
 		vram_size &= 0xffffffff00ll;
 	} else { // >= NV_ARCH_C0
 		vram_size = LShiftU64(REG32(nvda_dev->regs, NVC0_MEM_CTRLR_RAM_AMOUNT), 20);
+    //		vram_size *= REG32(nvda_dev->regs, NVC0_MEM_CTRLR_COUNT);
+    vram_size = MultU64x32(vram_size, REG32(nvda_dev->regs, NVC0_MEM_CTRLR_COUNT));
 	}
   

 

Here is with your latest revision:

3:703  0:000  mem_detected 256Mb
3:703  0:000  Apply NvidiaGeneric
3:703  0:000  read_nVidia_ROM
3:703  0:000  Using PRAMIN fixups
3:915  0:212  version 70.10.55.00.01
3:915  0:000  nVidia NVIDIA GeForce GTX 570 HD  256MB NVC8 [10DE:1086] :: PcieRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0) => device #1
3:915  0:000  Nvidia: VideoPorts: undefined, default to: 2
3:915  0:000  default NVCAP: 04000000-00000300-3C000000-00000007-00000000
3:915  0:000  Apply NvidiaGeneric
3:915  0:000  read_nVidia_ROM
3:915  0:000  Using PRAMIN fixups
3:975  0:059  PROM
4:035  0:059  ERROR: Unable to locate nVidia Video BIOS
4:035  0:000   there are no ROM loaded and no VBIOS read from hardware
4:035  0:000  nVidia NVIDIA GeForce GTX 570 HD  256MB NV1FF [10DE:1086] :: PcieRoot(0x0)\Pci(0x1,0x1)\Pci(0x0,0x0) => device #2
4:035  0:000  Nvidia: VideoPorts: undefined, default to: 2
4:035  0:000  default NVCAP: 04000000-00000300-3C000000-00000007-00000000
4:035  0:000   setting specified layout-id=1 (0x1)
4:036  0:000  stringlength = 5236
4:036  0:000  CurrentMode: Width=1920 Height=1080

Mind, I do have two gtx570's...

 

Here without your changes in Nvidia.c:

3:903  0:000  mem_detected 1280Mb
3:903  0:000  Apply NvidiaGeneric
3:903  0:000  read_nVidia_ROM
3:903  0:000  Using PRAMIN fixups
4:114  0:211  version 70.10.55.00.01
4:114  0:000  nVidia NVIDIA GeForce GTX 570 HD  1280MB NVC8 [10DE:1086] :: PcieRoot(0x0)\Pci(0x1,0x0)\Pci(0x0,0x0) => device #1
4:114  0:000  Nvidia: VideoPorts: undefined, default to: 2
4:114  0:000  default NVCAP: 04000000-00000300-3C000000-00000007-00000000
4:114  0:000  Apply NvidiaGeneric
4:114  0:000  read_nVidia_ROM
4:114  0:000  Using PRAMIN fixups
4:174  0:059  PROM
4:233  0:059  ERROR: Unable to locate nVidia Video BIOS
4:233  0:000   there are no ROM loaded and no VBIOS read from hardware
4:233  0:000  nVidia NVIDIA GeForce GTX 570 HD  1280MB NV1FF [10DE:1086] :: PcieRoot(0x0)\Pci(0x1,0x1)\Pci(0x0,0x0) => device #2
4:233  0:000  Nvidia: VideoPorts: undefined, default to: 2
4:233  0:000  default NVCAP: 04000000-00000300-3C000000-00000007-00000000
4:234  0:000   setting specified layout-id=1 (0x1)
4:234  0:000  stringlength = 5236
4:234  0:000  CurrentMode: Width=1920 Height=1080

Edit: I also don't understand, why just removing some piece of code would solve the problem with the newer Nvidia cards...

 

You are removing this:

@@ -2115,6 +2115,8 @@
 		vram_size &= 0xffffffff00ll;
 	} else { // >= NV_ARCH_C0
 		vram_size = LShiftU64(REG32(nvda_dev->regs, NVC0_MEM_CTRLR_RAM_AMOUNT), 20);
+    //		vram_size *= REG32(nvda_dev->regs, NVC0_MEM_CTRLR_COUNT);
+    vram_size = MultU64x32(vram_size, REG32(nvda_dev->regs, NVC0_MEM_CTRLR_COUNT));
 	}
   

 

okay

some latest nvidia graphic has ram display issue.

http://www.insanelymac.com/forum/topic/306156-clover-bugissue-report-and-patch/page-107?do=findComment&comment=2443062

http://www.insanelymac.com/forum/topic/306156-clover-bugissue-report-and-patch/page-104?do=findComment&comment=2433537

 

also me too.

 

i will see more detail. can you inform me your corrected ram size?.

 

EDIT1.

okay. i found it

×
×
  • Create New...