Contribute
Register

Mavericks: Native CPU/IGPU Power Management

Joined
Oct 17, 2013
Messages
277
Motherboard
Gigabyte GA-Z97X-UD5H
CPU
i7-4770K
Graphics
GTX 770
what got my attention is why on your intel power gadget screen the Power Watts are way higher than mine. ?
 

Attachments

  • Screen Shot 2014-05-27 at 9.59.13 PM.png
    Screen Shot 2014-05-27 at 9.59.13 PM.png
    138.5 KB · Views: 132
Joined
Jul 30, 2013
Messages
45
Motherboard
<< need non-Apple model # >> See Forum Rules !!
CPU
i7 4790K
Graphics
580GTX
Mac
  1. iMac
Classic Mac
  1. Portable
Mobile Phone
  1. Android
Joined
Jan 19, 2013
Messages
271
Motherboard
Mac mini
CPU
i[5/7]
Graphics
HD[3/4]000
Mac
Classic Mac
Mobile Phone
I applied those changes (and logIGPStyle to false). Now I see fewer P-States in log file. I'm attaching console output and screenshots
What else could I try?
User error. I said: "The first turbo ratio should be set to 36…" but you've set the fourth turbo ratio to 36. Basically limiting the turbo ratios. Look here:

AICPUPMI: CPU Maximum Turbo Frequency........: 3600 MHz

And you get fewer P-States now, which is correct, but the reason for it is that logIGPStyle (TRUE) logs all ratio changes. Even ratio changes that are not initiated by Apple's power management. To mitigate this 'problem' you have to change one or two settings in your UEFI BIOS. Which was only very recently discovered so please guys, don't shoot the messenger (Toleda) because remember, it was me who said to enable it… but only after so many of you kept asking for more P-States. Even when I said that more is less in terms of efficiency, because Apple changed the rules with Mavericks, and they (will) keep on changing stuff.

Also. Remember this. In the world of Apple there is no over clocking and all sorts of weird turbo ratios, so if you want power management the Apple way… you better follow their rules, or sit on it trying to get it going without their or my help. If everything works, eventually, only then you can start modding the turbo ratios.

Now back to the number of P-States. Read my blog article about MSR 0x601, 0x610 and 0x638 fix, because only then you will get what you should see. The things is. Nobody, including me, knew why this was happening, but at least now we know how to remedy it.

And remember this. Your UEFI BIOS (version) may react differently, so if what I asked you to do is not working, then by all means use what you want. I'm only not convinced that most people (here) even know what they are doing. No disrespect whatsoever, but if I can make errors, so can anybody.
 
Joined
Jan 19, 2013
Messages
271
Motherboard
Mac mini
CPU
i[5/7]
Graphics
HD[3/4]000
Mac
Classic Mac
Mobile Phone
I tried this on my 4770K. I set Uncore back to 35/Auto. I then set Turbo ratios to 39, 39, 38, 37 (1, 2, 3, 4 cores respectfully). I chose these values since they're the defaults for the 4770K vs the 4670K you were originally referencing. See attached IPG; not the same result I got when manually setting Uncore, a little worse. Let me know what else I can provide to help.

Also, can you elaborate on your recent post here? Should we now be manually setting the bios settings as you've described? Thanks.
Right. This shows me that the UEFI BIOS error you reported here, is not there.

And yes please. Do fix the UEFI BIOS settings, until boot loaders start to do this for you, but remember what I said: set the first turbo ratio to clock frequency + 1 which in your case is 36 is it not?

Also. Don't forget that your Watts/Amps used to be wrong, so don't expect things to be exactly the same. Not to mention that things may change in the (near) future.

Note:

I don't think that Toleda is getting irritated, but power management is one of the most difficult things to fix, and people like Toleda are trying to solve the puzzle, ever since 2009. Just to put things in proper perspective. That is simply how difficult it is, so please should be respectful to him because where would you folks be without him?

Thank you toleda for your hard work, here and elsewhere. Respect !!!
 
Joined
Nov 9, 2011
Messages
212
Motherboard
Gigabyte Z390 Aorus Master
CPU
i9-9900K
Graphics
Vega 56
Mobile Phone
  1. Android
  2. iOS
Do fix the UEFI BIOS settings, until boot loaders start to do this for you, but remember what I said: set the first turbo ratio to clock frequency + 1 which in your case is 36 is it not?

Okay, I'll manually change Turbos to 36, 37, 38, 39 and report back in a few hours.

I don't think that Toleda is getting irritated, but power management is one of the most difficult things to fix, and people like Toleda are trying to solve the puzzle, ever since 2009. Just to put things in proper perspective. That is simply how difficult it is, so please should be respectful to him because where would you folks be without him?

Graciously noted. I'm grateful for this thread that Toleda put together. As well as your threads and blog that I subscribe to. Appreciate both of your hard work!
 
Joined
Dec 8, 2012
Messages
48
Motherboard
GA-B75M-D3P
CPU
i5 3570K 3.4Ghz
Graphics
GT 650
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. iMac
  2. Power Mac
Mobile Phone
I have exact the same setup, but I have this error message:

Code:
[FONT=Menlo]imac:pm madman$ cat /var/log/system.log | grep "XCPM"[/FONT]
[FONT=Menlo]May 28 01:52:04 localhost kernel[0]: XCPM: registered[/FONT]
[FONT=Menlo]May 28 01:52:25 imac kernel[0]: IOPPF: XCPM mode[/FONT]
[FONT=Menlo]May 28 01:52:25 imac kernel[0]: XCPM: P-state table mismatch (error:0x12)[/FONT]
[FONT=Menlo]May 28 01:52:25 imac kernel[0]: X86PlatformShim::sendPStates - pmCPUControl (XCPMIO_SETPSTATETABLE) returned 0x12[/FONT]

I still have CPU Low Frequency Mode.............: 1600 MHz

Yeah I had that for a while too. When I get home I will look into it.
until then:
-you are using clover
-using -xcpm flag
-AppleLPC is loaded

also what are you using to test p-states? only AICPMI.kext and IPG are valid for XCPM. not HWmonitor
 
Joined
Aug 17, 2012
Messages
479
Motherboard
GA-Z77X-UD5H
CPU
i5-3570K
Graphics
RX 570
Mac
  1. MacBook
Mobile Phone
  1. iOS
Yes this is what I am using.

Attached is my config.plist clover file. Is there something wrong?

Code:
[FONT=Menlo]80    0 0xffffff7f81ef6000 0x3000     0x3000     com.apple.driver.AppleLPC (1.7.0) <57 11 5 4 3>[/FONT]

I use the Intel tools and it does not look like in the post from Toleda.

thx
 

Attachments

  • config.plist
    4.8 KB · Views: 173
Joined
Aug 17, 2012
Messages
479
Motherboard
GA-Z77X-UD5H
CPU
i5-3570K
Graphics
RX 570
Mac
  1. MacBook
Mobile Phone
  1. iOS
Hi Toleda,

I am not sure, if native PM is now working with my hack. Idle is still with 1,6 GHz which I believe is too high.

It is a Z77X-UD5H (F15 BIOS), i3570k with Asus GTX650, OSX 10.9.3

I still get an error regarding XCPM.

X86PlatformShim::sendPStates - pmCPUControl (XCPMIO_SETPSTATETABLE) returned 0x12


Please see attached files.

Thanks!
Madman


 

Attachments

  • debug.tar.gz
    744.8 KB · Views: 65
Top