[Bugme-new] [Bug 10734] New: CPU Frequency scaling gone on CPU1 after resume-from-sleep

bugme-daemon at bugzilla.kernel.org bugme-daemon at bugzilla.kernel.org
Sat May 17 12:30:04 PDT 2008


http://bugzilla.kernel.org/show_bug.cgi?id=10734

           Summary: CPU Frequency scaling gone on CPU1 after resume-from-
                    sleep
           Product: ACPI
           Version: 2.5
     KernelVersion: 2.6.26-rc2
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Power-Processor
        AssignedTo: acpi_power-processor at kernel-bugs.osdl.org
        ReportedBy: dennis.noordsij at helsinki.fi


Latest working kernel version: unknown
Earliest failing kernel version: at least 2.6.22
Distribution: Ubuntu Hardy (confirmed bug with mainline 2.6.26-rc2) 
Hardware Environment: Dell Latitude D630
Software Environment: Ubuntu Hardy
Problem Description: 

Normally, cpufreq-info reports:

cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux at brodo.de, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 800 MHz - 2.20 GHz
  available frequency steps: 2.20 GHz, 2.20 GHz, 1.60 GHz, 1.20 GHz, 800 MHz
  available cpufreq governors: powersave, ondemand, conservative, userspace,
performance
  current policy: frequency should be within 800 MHz and 2.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 800 MHz - 2.20 GHz
  available frequency steps: 2.20 GHz, 2.20 GHz, 1.60 GHz, 1.20 GHz, 800 MHz
  available cpufreq governors: powersave, ondemand, conservative, userspace,
performance
  current policy: frequency should be within 800 MHz and 2.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.


However, after resuming from sleep the following is reported in dmesg:

[  296.435243] Back to C!
[  296.435243] Extended CMOS year: 2000
[  296.435243] Enabling non-boot CPUs ...
[  296.435243] CPU0 attaching NULL sched-domain.
[  296.435243] SMP alternatives: switching to SMP code
[  296.441457] Booting processor 1/1 ip 6000
[  296.448433] Initializing CPU#1
[  296.448433] Calibrating delay using timer specific routine.. 4389.13
BogoMIPS (lpj=8778260)
[  296.448433] CPU: L1 I cache: 32K, L1 D cache: 32K
[  296.448433] CPU: L2 cache: 4096K
[  296.448433] CPU: Physical Processor ID: 0
[  296.448433] CPU: Processor Core ID: 1
[  296.529004] CPU1: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz stepping
0b
[  296.529035] CPU0 attaching sched-domain:
[  296.529038]  domain 0: span 0-1
[  296.529039]   groups: 0 1
[  296.529042] CPU1 attaching sched-domain:
[  296.529043]  domain 0: span 0-1
[  296.529045]   groups: 1 0
[  296.448433] ACPI Error (psloop-0136): Found unknown opcode FE at AML address
f883c7ca offset 3, ignoring [20080321]
[  296.448433] ACPI Error (psloop-0136): Found unknown opcode 1F at AML address
f883c7cd offset 6, ignoring [20080321]
[  296.448433] ACPI Error (psloop-0136): Found unknown opcode 2 at AML address
f883c7d4 offset D, ignoring [20080321]
[  296.448433] ACPI Error (psloop-0136): Found unknown opcode C2 at AML address
f883c7d6 offset F, ignoring [20080321]
[  296.448433] ACPI Error (psargs-0358): [E] Namespace lookup failure,
AE_NOT_FOUND
[  296.448433] ACPI Error (psparse-0530): Method parse/execution failed
[\_PR_.CPU1._PCT] (Node f4c17930), AE_NOT_FOUND
[  296.448433] ACPI Exception (processor_perflib-0191): AE_NOT_FOUND,
Evaluating _PCT [20080321]
[  296.448433] CPU1 is up
[  296.552171] Switched to high resolution mode on CPU 1

and cpufreq-info reports:

cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux at brodo.de, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 2.20 GHz
  available frequency steps: 2.20 GHz, 2.20 GHz, 1.60 GHz, 1.20 GHz, 800 MHz
  available cpufreq governors: powersave, ondemand, conservative, userspace,
performance
  current policy: frequency should be within 800 MHz and 2.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU


At this point, CPU scaling is effectively gone, (stuck in either mode, perhaps
now movies will stutter at playback, battery life might go down a lot,
cpu-frequency applets go crazy, etc)

One "fix" is to
  rmmod -f acpi_cpufreq && modprobe acpi_cpufreq
but this obviously introduces instability (I have experienced sudden hard
lockups), and is otherwise not really a workable solution as most distribution
kernels do not support forceful module unloading by default.

This has been Ubuntu bug 183033 since January, but it's considered low priority
and afaict nobody has made any real effort to find the cause; however it
affects many people (everyone with a core 2 duo?), so I decided to report it
here. It has been happening with every Ubuntu kernel since at least then, but I
just confirmed it with mainline kernel 2.6.26-rc2 without any binary modules or
otherwise tainted modules; everything happens exactly the same.

/proc/cpuinfo:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz
stepping        : 11
cpu MHz         : 800.000
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc
arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
ida
bogomips        : 4393.93
clflush size    : 64

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz
stepping        : 11
cpu MHz         : 2194.587
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc
arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
ida
bogomips        : 4387.19
clflush size    : 64

Some additional info can be found at:
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/183033

Additional ACPI info:

[    0.000000] DMI 2.4 present.
[    0.000000] ACPI: RSDP 000FBB00, 0024 (r2 DELL  )
[    0.000000] ACPI: XSDT 7FE5D200, 0064 (r1 DELL    M08     27D8021C ASL      
 61)
[    0.000000] ACPI: FACP 7FE5D09C, 00F4 (r4 DELL    M08     27D8021C ASL      
 61)
[    0.000000] ACPI: DSDT 7FE5D800, 6152 (r2 INT430 SYSFexxx     1001 INTL
20050624)
[    0.000000] ACPI: FACS 7FE6C000, 0040
[    0.000000] ACPI: HPET 7FE5D300, 0038 (r1 DELL    M08            1 ASL      
 61)
[    0.000000] ACPI: APIC 7FE5D400, 0068 (r1 DELL    M08     27D8021C ASL      
 47)
[    0.000000] ACPI: ASF! 7FE5D000, 007E (r32 DELL    M08     27D8021C ASL     
  61)
[    0.000000] ACPI: MCFG 7FE5D3C0, 003E (r16 DELL    M08     27D8021C ASL     
  61)
[    0.000000] ACPI: TCPA 7FE5D700, 0032 (r1                        0 ASL      
  0)
[    0.000000] ACPI: SLIC 7FE5D49C, 0176 (r1 DELL    M08     27D8021C ASL      
 61)
[    0.000000] ACPI: SSDT 7FE5B9C0, 04CC (r1  PmRef    CpuPm     3000 INTL
20050624)
[    0.000000] ACPI: PM-Timer IO Port: 0x1008
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] BIOS bug, APIC version is 0 for CPU#0! fixing up to 0x10. (tell
your hw vendor)
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
[    0.000000] BIOS bug, APIC version is 0 for CPU#0! fixing up to 0x10. (tell
your hw vendor)
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[    0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Enabling APIC mode:  Flat.  Using 1 I/O APICs
...
[    0.864975] Setting up standard PCI resources
[    0.864975] ACPI: EC: Look up EC in DSDT
[    0.864975] ACPI: BIOS _OSI(Linux) query ignored
[    0.864975] ACPI: DMI System Vendor: Dell Inc.
[    0.864975] ACPI: DMI Product Name: Latitude D630
[    0.864975] ACPI: DMI Product Version:
[    0.864975] ACPI: DMI Board Name:
[    0.864975] ACPI: DMI BIOS Vendor: Dell Inc.
[    0.864975] ACPI: DMI BIOS Date: 02/28/2008
[    0.864975] ACPI: Please send DMI info above to linux-acpi at vger.kernel.org
[    0.864975] ACPI: If "acpi_osi=Linux" works better, please notify
linux-acpi at vger.kernel.org
[    0.895022] ACPI: SSDT 7FE6C080, 0043 (r1  LMPWR  DELLLOM     1001 INTL
20050624)
[    0.910567] ACPI: Interpreter enabled
[    0.910571] ACPI: (supports S0 S3 S4 S5)
[    0.912626] ACPI: Using IOAPIC for interrupt routing
[    0.985417] ACPI: PCI Root Bridge [PCI0] (0000:00)
[    0.985417] pci 0000:00:1f.0: quirk: region 1000-107f claimed by ICH6
ACPI/GPIO/TCO
[    0.985417] pci 0000:00:1f.0: quirk: region 1080-10bf claimed by ICH6 GPIO
[    0.985417] PCI: Transparent bridge - 0000:00:1e.0
[    0.985417] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.985417] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCIE._PRT]
[    0.985575] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
[    0.985672] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
[    0.985788] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP02._PRT]
[    0.985906] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP06._PRT]
[    1.005473] ACPI: PCI Interrupt Link [LNKA] (IRQs 9 10 11) *5
[    1.005473] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 7) *10
[    1.005473] ACPI: PCI Interrupt Link [LNKC] (IRQs 9 10 11) *0, disabled.
[    1.005473] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 7 9 10 11) *3
[    1.005473] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 *11 12 14
15)
[    1.005473] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 *10 11 12 14
15)
[    1.005473] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 *9 10 11 12 14
15)
[    1.005473] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11 12 14
15) *0, disabled.

I should also note that "acpi_osi=Linux" breaks resume altogether, so I have
not pursued if it works with that options.



Steps to reproduce:

Suspend-to-RAM. Resume. Observe.


Please free to request any more information or tests I can do.


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the Bugme-new mailing list