Matthew Garrett ([personal profile] mjg59) wrote2016-04-13 12:46 pm
Entry tags:

Skylake's power management under Linux is dreadful and you shouldn't buy one until it's fixed

(Edit to add: this issue is restricted to the mobile SKUs. Desktop parts have very different power management behaviour)

Linux 4.5 seems to have got Intel's Skylake platform (ie, 6th-generation Core CPUs) to the point where graphics work pretty reliably, which is great progress (4.4 tended to lose all my windows every so often, especially over suspend/resume). I'm even running Wayland happily. Unfortunately one of the reasons I have a laptop is that I want to be able to do things like use it on battery, and power consumption's an important part of that. Skylake continues the trend from Haswell of moving to an SoC-type model where clock and power domains are shared between components that were previously entirely independent, and so you can't enter deep power saving states unless multiple components all have the correct power management configuration. On Haswell/Broadwell this manifested in the form of Serial ATA link power management being involved in preventing the package from going into deep power saving states - setting that up correctly resulted in a reduction in full-system power consumption of about 40%[1].

I've now got a Skylake platform with a nice shiny NVMe device, so Serial ATA policy isn't relevant (the platform doesn't even expose a SATA controller). The deepest power saving state I can get into is PC3, despite Skylake supporting PC8 - so I'm probably consuming about 40% more power than I should be. And nobody seems to know what needs to be done to fix this. I've found no public documentation on the power management dependencies on Skylake. Turning on everything in Powertop doesn't improve anything. My battery life is pretty poor and the system is pretty warm.

The best thing about this is the following statement from page 64 of the 6th Generation Intel ® Processor Datasheet for U-Platforms:

Caution: Long term reliability cannot be assured unless all the Low-Power Idle States are enabled.

which is pretty concerning. Without support for states deeper than PC3, Linux is running in a configuration that Intel imply may trigger premature failure. That's obviously not good. Until this situation is improved, you probably shouldn't buy any Skylake systems if you're planning on running Linux.

[1] These patches never went upstream. Someone reported that they resulted in their SSD throwing errors and I couldn't find anybody with deeper levels of SATA experience who was interested in working on the problem. Intel's AHCI drivers for Windows do the right thing, but I couldn't find anybody at Intel who could get any information from their Windows driver team.

Skylake PC8 or PC10?

[identity profile] http://openid-provider.appspot.com/e.tomell 2016-11-05 03:41 pm (UTC)(link)
Hello,
I own a Dell XPS 15 9550, I hit sometimes PC8, but it's unreliable, I actually thought it never got below PC3 (with F25 beta).
In the second paragraph you wrote:
"The deepest power saving state I can get into is PC3, despite Skylake supporting PC8"
Where does this come from? I've checked the datasheet you linked, on page 66 (paragraph 4.2.5) there is this: "The processor supports C0, C1/C1E, C3, C6, C7, C8, C9 and C10 power states". Is badly worded, it should say PC{0..10}, on page 69 there even is a description of Package C10 State. On page 70 there is a nice table, PC10 can be reached if PSR is enabled, otherwise only PC8 is supported.
I checked then the intel datasheet for H-series mobile processors [1] (like the i7-6700hq I have), the relevant pages are 73-76 (but the table was omitted), but it looks the same. I'm also having an email exchange with another xps 15 9550 linux user, he wrote to me that his system does reach down to PC10, so now I'm trying to get to the bottom of this (I think he's running F24 or 25).
[1] http://www.intel.com/content/www/us/en/processors/core/6th-gen-core-family-mobile-h-processor-lines-datasheet-vol-1.html

Re: Skylake PC8 or PC10?

(Anonymous) 2016-12-13 10:42 pm (UTC)(link)
My Thinkpad P50 can only reach PC3 occasionally on Kernel 4.8.12 with Ubuntu 16.04. Most of the time it's on PC2. I guess the distribution of Linux also plays a role in some detailed configurations?