Skip to contentSkip to conversation

New: Cores stuck at max frequency after resume from suspend (Haswell)

Bug 65301 [email protected] 1 participant 13 messages Nov 21, 2013 – Dec 9, 2013

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=65301

Bug ID: 65301
Summary: Cores stuck at max frequency after resume from suspend
(Haswell)
Product: Power Management
Version: 2.5
Kernel Version: v3.12
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: cpufreq
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Created attachment 115381
--> https://bugzilla.kernel.org/attachment.cgi?id=115381&action=edit
ver_linux, cpuinfo and lspci outputs

The problem is that even though CPU usage is at ~0%, the cores are always stuck at their max frequency after resume.

I thought this was related to https://bugzilla.kernel.org/show_bug.cgi?id=58971

However, I cloned the kernel git repo and checked out the commit that fixed that bug (7dcd2677ea912573d9ed4bcd629b0023b2d11505), and the fix had no effect (maybe SNB only?). So, this seems like it might have a different cause.

I have attached my system information.

As I've only had this laptop since around the time linux 3.11 came out, I'm not really sure when the last time this didn't happen, though that commit seems to have been made on top of one of the linux 3.10 rc's.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

[Bug 65301] Cores stuck at max frequency after resume from suspend (Haswell)

https://bugzilla.kernel.org/show_bug.cgi?id=65301

tomasi <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from tomasi <[email protected]> ---
I can confirm on Lenovo T440s with Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz

after resume cpu is set on max

bio@dell-xps:/sys/devices/system/cpu/cpu0/cpufreq$ sudo cat cpuinfo_cur_freq
2543476

Linux dell-xps 3.12.0-031200-generic #201311031935 SMP Mon Nov 4 00:36:54 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#2 lore raw

[Bug 65301] Cores stuck at max frequency after resume from suspend (Haswell)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=65301

Lan Tianyu <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |NEEDINFO
                 CC|                            |[email protected]

--- Comment #2 from Lan Tianyu <[email protected]> --- Did the cpufreq work normally after system resume before?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#3 lore raw

[Bug 65301] Cores stuck at max frequency after resume from suspend (Haswell)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=65301

--- Comment #3 from Mykal Valentine <[email protected]> ---
I'm not really sure. I know it definitely didn't work normally in 3.11 or that version of 3.10rc that I pulled that had the i915 bug fix either.

I think versions before that commit would run into the i915 bug, though. which I think also causes the frequency for the cores to stay high after resume.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#4 lore raw

[Bug 65301] Cores stuck at max frequency after resume from suspend (Haswell)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=65301

--- Comment #4 from Lan Tianyu <[email protected]> ---
This origin bug is introduced by commit 15239099 "drm/i915: enable irqs earlier when resuming." which is merged v3.9-rc5. So the v3.8 or v3.9-rc1~rc4 maybe safe to test.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#5 lore raw

[Bug 65301] Cores stuck at max frequency after resume from suspend (Haswell)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=65301

--- Comment #5 from Mykal Valentine <[email protected]> ---
Just tried, it doesn't seem like I'm able to boot with 3.8 or 3.9 rc kernels... Not really sure why? The screen turns black at some point during boot sequence, some point after fsck.

Maybe those kernels miss some commits needed for haswell IGPs or something...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#6 lore raw

[Bug 65301] Cores stuck at max frequency after resume from suspend (Haswell)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=65301

--- Comment #6 from tomasi <[email protected]> ---
Hi,
Whole CPU frequency managment is broken somehow.
i5-4200U CPU @ 1.60GHz CPU should support 800 Mhz, But i see it's running at least on 1.6 Ghz. (After suspend/resume It's running in Turbo mode)

bio@dell-xps:/sys/devices/system/cpu/intel_pstate$ cpufreq-info
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to [email protected], please.
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 0.97 ms.
  hardware limits: 800 MHz - 2.60 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 800 MHz and 2.60 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#7 lore raw

[Bug 65301] Cores stuck at max frequency after resume from suspend (Haswell)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=65301

Marcin Konarski <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from Marcin Konarski <[email protected]> --- I can confirm on Lenovo T420i with Intel(R) Core(TM) i3-2370M CPU @ 2.40GHz, after resume from hibernation CPU is stuck at 2.4GHz although top show that system has 0% load.

When system is stuck at maximum frequency I can unstuck it by performing suspend to RAM and waking up.

Linux ubiquitous 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux

Regards.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#8 lore raw

[Bug 65301] Cores stuck at max frequency after resume from suspend (Haswell)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=65301

--- Comment #8 from Mykal Valentine <[email protected]> ---
Marcin: I'm not sure if that's the exact same problem, given that resuming from suspend to RAM was what I was filing the bug on, which seems to function as a workaround for another issue that you're seeing.

Unfortunately, I wasn't very clear with the original bug report to state that. Incidentally, I haven't tested resume from hibernate.

Also, since there was a bug in i915 for SNB, you should make sure that you're not hitting that bug. I wasn't sure what version that bug fix got in (either 3.11 or 3.12), but I would recommend trying 3.12 on your system to see if the problem persists, just in case 3.11 didn't have the fix. Or checking out/compiling commit 7dcd2677ea912573d9ed4bcd629b0023b2d11505 to see if that fixes your problem.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#12 lore raw

[Bug 65301] Cores stuck at max frequency after resume from suspend (Haswell)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=65301

Lan Tianyu <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEEDINFO                    |CLOSED
         Resolution|---                         |DUPLICATE

--- Comment #12 from Lan Tianyu <[email protected]> --- Ok. Let's reply all in the bug 66581 and mark this bug as duplicate.

*** This bug has been marked as a duplicate of bug 66581 ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.