Skip to contentSkip to conversation

New: CPU0 locked at slower speed, regardless of governor

Bug 19262 [email protected] 1 participant 15 messages Sep 28, 2010 – Dec 9, 2010

lore
Share & tools
lore
#0 lore raw

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

Summary: CPU0 locked at slower speed, regardless of governor
Product: Power Management
Version: 2.5
Kernel Version: 2.6.36-rc5-00226-g050026f
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: cpufreq
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: Yes

Created an attachment (id=31732)
--> (https://bugzilla.kernel.org/attachment.cgi?id=31732)
output of cat /proc/cpuinfo

Hardware: Intel Q6600 2.4Ghz (clocked at 2.8Ghz)
Software: Gentoo Linux ~amd64, running Linus's HEAD.

Problem description:
The first core appears to be locked at a slower speed. The CPU has two potential speeds: the maximum speed and and the maximum speed divided by 1.5. CPU2, 3, and 4 all operate correctly at 2.8Ghz, while CPU0 remains stuck at 1.87Ghz. The problem is observed at stock speeds. I don't remember when it first appeared, but I believe it was 2.6.34.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

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

--- Comment #1 from Jason Lynch <[email protected]> 2010-09-28 19:10:22 --- Created an attachment (id=31742)
--> (https://bugzilla.kernel.org/attachment.cgi?id=31742)
sysfs information

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

In reply to [email protected]

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

--- Comment #2 from Jason Lynch <[email protected]> 2010-09-28 19:11:26 --- Created an attachment (id=31752)
--> (https://bugzilla.kernel.org/attachment.cgi?id=31752)
dmesg with cpufreq.debug=7

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

In reply to [email protected]

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

Jason Lynch <[email protected]> changed:

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

  Attachment #31732|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

In reply to [email protected]

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

Jason Lynch <[email protected]> changed:

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

  Attachment #31742|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

In reply to [email protected]

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

Jason Lynch <[email protected]> changed:

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

  Attachment #31752|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

In reply to [email protected]

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

Thomas Renninger <[email protected]> changed:

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

             Status|NEW                         |ASSIGNED
                 CC|                            |[email protected],
                   |                            |[email protected]
         AssignedTo|[email protected]     |[email protected]

--- Comment #3 from Thomas Renninger <[email protected]> 2010-09-30 08:51:40 --- Looks like the passive temperature threshold is exceeded for CPU0. Hm, typically there is one thermal sensor/device connected to all CPUs, but if this is related to the problem, CPU0 would have its own thermal device. Can you provide:
for x in /proc/acpi/thermal_zone/*/*;do
echo $x
cat $x
echo
done

Signature · 4 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
#7 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

In reply to [email protected]

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

--- Comment #4 from Jason Lynch <[email protected]> 2010-09-30 09:46:37 --- Here is the requested information:

/proc/acpi/thermal_zone/THRM/cooling_mode
0 - Active; 1 - Passive

/proc/acpi/thermal_zone/THRM/polling_frequency
<polling disabled>

/proc/acpi/thermal_zone/THRM/state
state: ok

/proc/acpi/thermal_zone/THRM/temperature
temperature: 20 C

/proc/acpi/thermal_zone/THRM/trip_points

critical (S5):           255 C
passive:                 0 C: tc1=4 tc2=3 tsp=60 devices=CPU0
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#8 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

In reply to [email protected]

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

Thomas Renninger <[email protected]> changed:

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

          Component|cpufreq                     |Power-Thermal
         AssignedTo|[email protected]               |acpi_power-thermal@kernel-b
                   |                            |ugs.osdl.org
            Product|Power Management            |ACPI

--- Comment #5 from Thomas Renninger <[email protected]> 2010-09-30 12:35:45 --- ... and this is the bug, probably BIOS related:

/proc/acpi/thermal_zone/THRM/trip_points
passive: 0 C: tc1=4 tc2=3 tsp=60 devices=CPU0

Please also attach dmesg and acpidump output.

The param to workaround this issue is:
thermal.psv = 50
to e.g. let the CPU get throttled at 50 C.

There already is a blacklist in drivers/acpi/thermal.c:
static struct dmi_system_id thermal_dmi_table[] __initdata = {
...

        {
         .callback = thermal_psv,
         .ident = "AOpen i915GMm-HFS",
         .matches = {
                DMI_MATCH(DMI_BOARD_VENDOR, "AOpen"),
                DMI_MATCH(DMI_BOARD_NAME, "i915GMm-HFS"),
                },
        },

Also attach dmidecode, if we do not find a generic kernel workaround/fix the BIOS can get blacklisted to not use the passive trip point by default.

Reassigning to ACPI component -> this is an acpi problem.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#9 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

In reply to [email protected]

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

--- Comment #6 from Jason Lynch <[email protected]> 2010-09-30 21:23:06 --- Created an attachment (id=32122)
--> (https://bugzilla.kernel.org/attachment.cgi?id=32122)
acpidump

I had previously attached dmesg. If there's something I missed, or if I didn't do the acpidump correctly (just ran acpidump with no parameters), let me know.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#10 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor

In reply to [email protected]

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

--- Comment #7 from Jason Lynch <[email protected]> 2010-09-30 21:24:29 --- Created an attachment (id=32132)
--> (https://bugzilla.kernel.org/attachment.cgi?id=32132)
dmidecode

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#11 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor on IP35 Pro(Intel P35-ICH9R)

In reply to [email protected]

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

Thomas Renninger <[email protected]> changed:

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

             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |DOCUMENTED
            Summary|CPU0 locked at slower       |CPU0 locked at slower
                   |speed, regardless of        |speed, regardless of
                   |governor                    |governor on IP35 Pro(Intel
                   |                            |P35-ICH9R)

--- Comment #8 from Thomas Renninger <[email protected]> 2010-10-01 15:12:07 --- Best is you go with the mentioned boot param workaround.
There is something rather fishy with the implementation of the thermal trip points. There are some iasl errors/warnings which point to thermal/temp:
DSDT.dsl 5685: Store (GAHC (Arg0, Arg1), Local4)
Warning 1093 - ^ Called method may not always return a value

DSDT.dsl 5723: Method (GAHC, 2, NotSerialized)
Warning 1088 - ^ Not all control paths return a value (GAHC)

DSDT.dsl 5798: Store (GAHS (0x00), Local6)
Error 4061 - Called method returns no value ^

The code there does not make much sense to me:
- Passive cooling device only CPU0
- Quite some storing of the same things:
GAHC():

        Store (0x01, DTAP)
        Stall (0x7F)
        Store (0x6C, DTAP)
        Stall (0x7F)
        Store (DTAP, Local5)
        Stall (0x7F)
        Store (DTAP, Local6)
        Stall (0x7F)
        Store (DTAP, Local7)

-> Ok, there is IO behind, still this cannot make much sense...

The temperature should also be 20C fixed, because of

    Method (GAHS, 1, NotSerialized)
    {
    }

_TMP():

    Store (GAHS (0x00), Local6)
    And (Local6, 0x01, Local6)
    If (LEqual (Local6, 0x01)) {..}

etc., etc....

The thermal ACPI stuff is really totally messed up on this system, best is to use thermal.psv=-1 (afaik) to disable passive cooling.

-> Closing resolved documented, not much that can be done from OS side.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#12 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor on IP35 Pro(Intel P35-ICH9R)

In reply to [email protected]

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

--- Comment #9 from Thomas Renninger <[email protected]> 2010-10-01 15:15:52 --- Eh, you might want to write a tiny a patch to blacklist this machine to not use passive cooling automatically as described in comment #5 and send it to the acpi list. You can read out needed info from dmidecode.
If you do this, please let me know and the bug can be set fixed.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#13 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor on IP35 Pro(Intel P35-ICH9R)

In reply to [email protected]

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

Zhang Rui <[email protected]> changed:

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

--- Comment #10 from Zhang Rui <[email protected]> 2010-10-19 00:54:57 --- As the _TMP returns fixed value, I suggest Jason to either update the BIOS to see if the situation is improved, or disable the ACPI thermal driver because it will never work with this BIOS.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#14 lore raw

[Bug 19262] CPU0 locked at slower speed, regardless of governor on IP35 Pro(Intel P35-ICH9R)

In reply to [email protected]

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

Len Brown <[email protected]> changed:

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

             Status|RESOLVED                    |CLOSED
                 CC|                            |[email protected]
          Component|Power-Thermal               |BIOS
         AssignedTo|acpi_power-thermal@kernel-b |[email protected].
                   |ugs.osdl.org                |org
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.