[Virtual-pkg-base-maintainers] Bug#778219: base: haswell processors doesn't go under pc3 sleep state

Quentin Deldycke quentindeldycke at gmail.com
Thu Feb 12 12:41:39 UTC 2015


Package: base
Severity: important

Hi,

Using these machines:

- DELL Optiplex 790 (i5 2500)
- DELL Optiplex 9020 (i7 4770)
- PC1 (i7 4790k + Asrock Z97 Extreme 6)
- PC2 (i5 2500k + Gigabyte H67N-USB3-B3)
- ACER Aspire V7-582pg (i5 4200U)

Additionnal informations:
- All PC use igp for display
- PC1 have a R9 290, but it is used in combination with vfio + kvm. Not used by linux.
- Acer aspire is an optimus laptop with GT 750M
- DELL pcs use kernel 3.16
- other ones uses kernel 3.18

Bug:
- According to turbostat, all "haswell" processors can't reach sleep state deeper than pc3. ex with acer laptop turbostat:

turbostat v3.7 Feb 6, 2014 - Len Brown <lenb at kernel.org>
CPUID(0): GenuineIntel 13 CPUID levels; family:model:stepping 0x6:45:1 (6:69:1)
CPUID(6): APERF, DTS, PTM, EPB
RAPL: 17476 sec. Joule Counter Range, at 15 Watts
cpu0: MSR_NHM_PLATFORM_INFO: 0x8083df3011700
8 * 100 = 800 MHz max efficiency
23 * 100 = 2300 MHz TSC frequency
cpu0: MSR_IA32_POWER_CTL: 0x0004005d (C1E auto-promotion: DISabled)
cpu0: MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x1e008405 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, locked: pkg-cstate-limit=5: pc7s)
cpu0: MSR_NHM_TURBO_RATIO_LIMIT: 0x1717171a
23 * 100 = 2300 MHz max turbo 4 active cores
23 * 100 = 2300 MHz max turbo 3 active cores
23 * 100 = 2300 MHz max turbo 2 active cores
26 * 100 = 2600 MHz max turbo 1 active cores
cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x00000006 (balanced)
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x00000078 (15 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x804280c800dd80c8 (locked)
cpu0: PKG Limit #1: ENabled (25.000000 Watts, 28.000000 sec, clamp ENabled)
cpu0: PKG Limit #2: ENabled (25.000000 Watts, 0.002441* sec, clamp DISabled)
cpu0: MSR_PP0_POLICY: 0
cpu0: MSR_PP0_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: Cores Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_PP1_POLICY: 0
cpu0: MSR_PP1_POWER_LIMIT: 0x00000000 (UNlocked)
cpu0: GFX Limit: DISabled (0.000000 Watts, 0.000977 sec, clamp DISabled)
cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x05640000 (100 C)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x88330800 (49 C)
cpu0: MSR_IA32_THERM_STATUS: 0x88360800 (46 C +/- 1)
cpu2: MSR_IA32_THERM_STATUS: 0x88360800 (46 C +/- 1)
    Core     CPU Avg_MHz   %Busy Bzy_MHz TSC_MHz     SMI  CPU%c1  CPU%c3  CPU%c6  CPU%c7 CoreTmp  PkgTmp Pkg%pc2 Pkg%pc3 Pkg%pc6 Pkg%pc7 Pkg%pc8 Pkg%pc9 Pk%pc10 PkgWatt CorWatt GFXWatt
           -       -      71    4.32    1655    2292       0    8.03    2.81    0.56   84.28      45      48   24.73   54.83    0.00    0.00    0.00    0.00    0.00    3.12    0.39    0.00
           0       0      68    4.15    1634    2292       0    6.91    2.64    0.45   85.84      45      48   24.73   54.83    0.00    0.00    0.00    0.00    0.00    3.12    0.39    0.00
           0       1      67    3.68    1831    2292       0    7.38
           1       2      75    4.79    1565    2292       0    8.84    2.99    0.67   82.71      45
           1       3      75    4.64    1627    2292       0    8.99


- While all "Sandy Bridge" can reach deeper states. Example with the 2500k processor.

turbostat v3.7 Feb 6, 2014 - Len Brown <lenb at kernel.org>
CPUID(0): GenuineIntel 13 CPUID levels; family:model:stepping 0x6:2a:7 (6:42:7)
CPUID(6): APERF, DTS, PTM, EPB
RAPL: 690 sec. Joule Counter Range, at 95 Watts
cpu0: MSR_NHM_PLATFORM_INFO: 0x100060012100
16 * 100 = 1600 MHz max efficiency
33 * 100 = 3300 MHz TSC frequency
cpu0: MSR_IA32_POWER_CTL: 0x0004005d (C1E auto-promotion: DISabled)
cpu0: MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x1e000403 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, UNlocked: pkg-cstate-limit=3: pc6)
cpu0: MSR_NHM_TURBO_RATIO_LIMIT: 0x22232425
34 * 100 = 3400 MHz max turbo 4 active cores
35 * 100 = 3500 MHz max turbo 3 active cores
36 * 100 = 3600 MHz max turbo 2 active cores
37 * 100 = 3700 MHz max turbo 1 active cores
cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x00000006 (balanced)
cpu0: MSR_RAPL_POWER_UNIT: 0x000a1003 (0.125000 Watts, 0.000015 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0xa03c001e002f8 (95 W TDP, RAPL 60 - 120 W, 0.009766 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0xa580001483c0 (UNlocked)
cpu0: PKG Limit #1: ENabled (120.000000 Watts, 1.000000 sec, clamp DISabled)
cpu0: PKG Limit #2: ENabled (1200.000000 Watts, 0.000977* sec, clamp DISabled)
cpu0: MSR_PP0_POLICY: 15
cpu0: MSR_PP0_POWER_LIMIT: 0x001483c0 (UNlocked)
cpu0: Cores Limit: ENabled (120.000000 Watts, 1.000000 sec, clamp DISabled)
cpu0: MSR_PP1_POLICY: 0
cpu0: MSR_PP1_POWER_LIMIT: 0x001483c0 (UNlocked)
cpu0: GFX Limit: ENabled (120.000000 Watts, 1.000000 sec, clamp DISabled)
cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x00621200 (98 C)
cpu0: MSR_IA32_PACKAGE_THERM_STATUS: 0x883a0000 (40 C)
cpu0: MSR_IA32_THERM_STATUS: 0x883b0000 (39 C +/- 1)
cpu1: MSR_IA32_THERM_STATUS: 0x883a0000 (40 C +/- 1)
cpu2: MSR_IA32_THERM_STATUS: 0x883a0000 (40 C +/- 1)
cpu3: MSR_IA32_THERM_STATUS: 0x883b0000 (39 C +/- 1)
    Core     CPU Avg_MHz   %Busy Bzy_MHz TSC_MHz     SMI  CPU%c1  CPU%c3  CPU%c6  CPU%c7 CoreTmp  PkgTmp Pkg%pc2 Pkg%pc3 Pkg%pc6 Pkg%pc7 PkgWatt CorWatt GFXWatt
           -       -      62    3.79    1647    3293       0    6.53    1.20   88.48    0.00      39      39   10.76    2.04   60.26    0.00    5.51    1.72    0.28
           0       0      69    4.21    1643    3293       0    8.32    1.78   85.70    0.00      39      39   10.76    2.04   60.26    0.00    5.51    1.72    0.28
           1       1      64    3.88    1651    3293       0    7.46    1.51   87.16    0.00      39
           2       2      59    3.60    1648    3293       0    4.84    0.74   90.82    0.00      39
           3       3      57    3.47    1645    3293       0    5.51    0.77   90.25    0.00      39


- All pcs uses intel_pstate. powersave mode + powertop --auto-tune.

Expected behavior:
 - Haswell processors should be able to reach pc6 - pc7 and, for the 4200U processors, pc10.

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.18.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Virtual-pkg-base-maintainers mailing list