You are not logged in.

#1 2016-12-08 18:34:07

compul
Member
Registered: 2016-12-08
Posts: 23

Skylake power management

Hi,

I am new to arch (used to debian) on my new laptop, an ASUS ROG GL502VS. It sports a skylake i7 6700HQ and a gtx1070 (gsync; no bumblebee stuff, no intel graphics available).

$ uname -r
4.8.12-2-ARCH

But powertop seems to indicate that only PC2 is being reached, even after I enabled all "bad" configurations through powertop (SATA notably, not usb mouse autosuspend though):

          Package   |             Core    |            CPU 0       CPU 4
                    |                     | C0 active   1.9%        0.5%
                    |                     | POLL        0.0%    0.0 ms  0.0%    0.0 ms
                    |                     | C1E-SKL     0.8%    1.2 ms  0.0%    0.1 ms
C2 (pc2)   76.5%    |                     |
C3 (pc3)    0.0%    | C3 (cc3)    0.3%    | C3-SKL      0.3%    0.5 ms  0.0%    0.6 ms
C6 (pc6)    0.0%    | C6 (cc6)    3.6%    | C6-SKL      3.9%    0.7 ms  0.2%    1.2 ms
C7 (pc7)    0.0%    | C7 (cc7)   88.8%    | C7s-SKL     0.0%    0.3 ms  0.0%    0.0 ms
C8 (pc8)    0.0%    |                     | C8-SKL     27.0%    4.7 ms  5.9%    5.0 ms
C9 (pc9)    0.0%    |                     | C9-SKL      0.0%    0.0 ms  0.0%    0.0 ms
C10 (pc10)  0.0%    |                     | C10-SKL    63.2%   14.8 ms 92.1%   34.8 ms

                    |             Core    |            CPU 1       CPU 5
                    |                     | C0 active   1.1%        0.6%
                    |                     | POLL        0.0%    0.0 ms  0.0%    0.0 ms
                    |                     | C1E-SKL     0.8%    0.6 ms  0.0%    0.3 ms
                    |                     |
                    | C3 (cc3)    0.1%    | C3-SKL      0.2%    0.3 ms  0.0%    0.0 ms
                    | C6 (cc6)    6.6%    | C6-SKL      5.2%    1.4 ms  2.7%    0.9 ms
                    | C7 (cc7)   87.2%    | C7s-SKL     0.0%    0.0 ms  0.0%    1.6 ms
                    |                     | C8-SKL     16.3%    3.6 ms 15.1%    5.8 ms
                    |                     | C9-SKL      0.0%    0.0 ms  0.0%    0.0 ms
                    |                     | C10-SKL    74.1%   18.5 ms 80.1%   32.8 ms

                    |             Core    |            CPU 2       CPU 6
                    |                     | C0 active   1.4%        0.7%
                    |                     | POLL        0.0%    0.0 ms  0.0%    0.0 ms
                    |                     | C1E-SKL     2.5%    1.9 ms  0.1%    0.4 ms
                    |                     |
                    | C3 (cc3)    0.1%    | C3-SKL      0.2%    0.3 ms  0.0%    1.5 ms
                    | C6 (cc6)    1.9%    | C6-SKL      2.2%    0.8 ms  0.1%    0.9 ms
                    | C7 (cc7)   90.3%    | C7s-SKL     0.0%    0.4 ms  0.0%    0.0 ms
                    |                     | C8-SKL     19.3%    3.8 ms 11.7%    6.1 ms
                    |                     | C9-SKL      0.0%    0.0 ms  0.0%    0.0 ms
                    |                     | C10-SKL    72.5%   27.4 ms 86.2%   30.2 ms

                    |             Core    |            CPU 3       CPU 7
                    |                     | C0 active   1.7%        0.5%
                    |                     | POLL        0.1%    8.9 ms  0.0%    0.0 ms
                    |                     | C1E-SKL     3.4%    2.6 ms  1.3%    4.1 ms
                    |                     |
                    | C3 (cc3)    0.1%    | C3-SKL      0.1%    0.2 ms  0.0%    0.2 ms
                    | C6 (cc6)    4.6%    | C6-SKL      4.5%    1.5 ms  0.5%    0.8 ms
                    | C7 (cc7)   84.6%    | C7s-SKL     0.0%    0.0 ms  0.0%    0.0 ms
                    |                     | C8-SKL     15.1%    4.0 ms 10.4%    6.4 ms
                    |                     | C9-SKL      0.0%    0.0 ms  0.0%    0.0 ms
                    |                     | C10-SKL    71.9%   22.5 ms 86.0%   33.1 ms

I am not sure why this is the case. Any ideas or tips what to try? Should I even bother?

Thanks

EDIT: Just to clarify, I've seen these, but they did not help: https://bbs.archlinux.org/viewtopic.php?id=214810 https://bbs.archlinux.org/viewtopic.php?id=217105 https://bbs.archlinux.org/viewtopic.php?id=214810

Also not certain if this is the correct subforum. If not, please help me move it. smile

Last edited by compul (2016-12-08 18:39:37)

Offline

#2 2016-12-08 21:37:21

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Skylake power management

If you have already "fixed" all the bad tunables reported by powertop and you still can't get lower than PC2 then I guess there isn't much more you can do. Do check if there are any bios/fw updates and make sure you enable any power saving related options the the bios/fw setup.

If you should care or bother to get it "fixed", if taking what is in the cpu's datasheet at face value then yes, this is what the datasheet has to say: "Caution: Long term reliability cannot be assured unless all the Low-Power Idle States are enabled."


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2016-12-08 21:39:19

rudzha
Member
Registered: 2012-06-25
Posts: 19

Re: Skylake power management

Hey, after you pointed it out in the "Laptops which run Arch", I too noticed that even though cores sepnd most of the time in C7 state, package state higher than C2 is never reached.
I do own the same laptop.

Offline

#4 2016-12-08 22:40:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Skylake power management

Try linux 4.9-rc8?  Perhaps better support has been mainlined?

https://aur.archlinux.org/packages/linux-mainline

Last edited by graysky (2016-12-08 22:48:50)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2016-12-09 04:05:26

compul
Member
Registered: 2016-12-08
Posts: 23

Re: Skylake power management

rudzha wrote:

Hey, after you pointed it out in the "Laptops which run Arch", I too noticed that even though cores sepnd most of the time in C7 state, package state higher than C2 is never reached.
I do own the same laptop.

I have the FHD version though, not sure if that makes any difference (prolly little).

BIOS is the newest, not sure about any firmware. (how am I to check?)

EDIT: barely any options in BIOS, nothing I thought related to power management (except maybe "wake on lid open"). I'll try the 4.9 kernel.

EDIT: In fact I just noticed a new BIOS update came out just two days ago. I'll try that too.

UPDATE: Neither helped. I could not get the nvidia module to load under the mainline kernel (?!), but powertop with everything optimized (except usb autosuspend and the nvidia option) still only showed PC2, while all cores were >90% in C7. Does that even make sense? There's got to be some overlap then that there is a package which is in C7 in all cores, which would make it PC7, no? Am I wrong?

Last edited by compul (2016-12-09 05:59:19)

Offline

#6 2016-12-14 15:58:12

rudzha
Member
Registered: 2012-06-25
Posts: 19

Re: Skylake power management

Hey, as for Nvidia driver not loading on 4.9, you should grab the nvidia-dkms.

I also found this: http://mjg59.dreamwidth.org/41713.html
Which basically suggests it's an issue with NVMe power management.

According to this: http://www.phoronix.com/scan.php?page=n … vings-APST
NVMe power management changes might come with Linux 4.9, though looking at the github mirror for Linux kernel, I didn't find any NVMe power management related changes for tag v4.9

Offline

#7 2017-05-05 12:26:05

compul
Member
Registered: 2016-12-08
Posts: 23

Re: Skylake power management

I thought it might be interesting to mention that I now get P-state C3, IF I enable the SATA tunables in powertop AND I don't standby. (Can't reach the higher states anymore after waking.)

Offline

#8 2017-05-05 13:49:38

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Skylake power management

Have u tried 4.11 yet?  U can build it from our own PKGBUILD if it isn't yet in testing


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2017-05-07 11:56:48

compul
Member
Registered: 2016-12-08
Posts: 23

Re: Skylake power management

No -- I will try as soon as it is in core / testing. (I am new to arch and currently don't have the time to fiddle around just to find out what I'll know anyways in a while.)

Offline

#10 2017-06-06 07:46:59

compul
Member
Registered: 2016-12-08
Posts: 23

Re: Skylake power management

Follow-up: 4.11.3-1 and still only PC3

Offline

#11 2017-06-07 12:36:45

fabledpig
Member
Registered: 2013-03-15
Posts: 24

Re: Skylake power management

I can confirm this, I also have an i7-6700HQ and can also only get into PC3 (if I enable SATA tunables in powertop). However I can get into deeper states if I disable disable the card reader and LAN in bios.

Offline

#12 2017-07-11 17:12:51

ayr0
Member
Registered: 2010-08-12
Posts: 94

Re: Skylake power management

I had a similar issue with my laptop.  I updated my bios and the issue went away on my Thinkpad T460.  Now i sit at PC6 most of the time with PC7 showing up during idle.  I have an i5-6200U.

Offline

#13 2017-07-19 18:05:37

fabledpig
Member
Registered: 2013-03-15
Posts: 24

Re: Skylake power management

I managed it to go down to PC7 with this patched module: https://github.com/KastB/r8169. So it seems the problem is caused by the Realtek card. I hope it gets fixed with the 4.12 kernel, waiting for it to land in core.
My boot parameters:

quiet pcie_aspm=force acpi_osi=! acpi_osi=\"Windows 2009\"

Offline

#14 2017-11-30 07:47:39

compul
Member
Registered: 2016-12-08
Posts: 23

Re: Skylake power management

4.13.12-1-ARCH, still doesn't appear to be fixed. I'll try your patch at some point...

Offline

#15 2017-11-30 08:22:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: Skylake power management

I'm still convinced (sadly don't have any surefire resources to back it up) that HQ processors by nature are unable to attain the higher pstates, if they were able to there would be no reason for the U version of the models to exist, that's the tradeoff you make, these perform better at the cost of battery life.

Would of course, be interested in being proven wrong here.

Offline

#16 2017-11-30 11:59:19

compul
Member
Registered: 2016-12-08
Posts: 23

Re: Skylake power management

I really don't care about battery life. I'm just worried about the life of the CPU.

Offline

#17 2017-11-30 19:55:11

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Skylake power management

Your battery will die way before your CPU will ...


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#18 2017-11-30 22:07:19

fabledpig
Member
Registered: 2013-03-15
Posts: 24

Re: Skylake power management

Mine problem was caused by ASPM bein disabled in the r8619 driver.
Try using the r8618 driver, blacklist the r8619 and try these kernel parameters:

pcie_aspm=force r8168.aspm=1

These are working for me.

Offline

Board footer

Powered by FluxBB