All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot set max cpu frequency
@ 2007-07-23 16:43 Andy Spencer
  2007-07-24 13:23 ` Thomas Renninger
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Spencer @ 2007-07-23 16:43 UTC (permalink / raw)
  To: cpufreq

For the last few days I have been unable set the maximum frequency for my
processor (Intel Pentium M). A few days ago it worked correctly so I am
assuming it is a hardware problem, but I have not been able to confirm that
whatsoever. Does anyone have any suggestions for debugging this?

Here's what actually happens. I boot up my laptop and the ondemand governor
is set to range between 800MHz and 2.00GHz. At first this works correctly,
but after a few minutes the range will be reset to 800MHz-800Mhz and I am
unable to change it without rebooting. I've tried changing it using '$
cpufreq-set -u 2.00GHz' as well as 'echo -n 2000000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq' (I'm not even sure if
the 2nd one 'should' work). Changing to the 'userspace' governor has no
effect.

Here's a bunch of logs in case anyone can find anything useful. (I haven't
been able to, but I'm no expert)

=== $ dmesg | grep -i acpi ===
ACPI: AC Adapter [AC] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Battery Slot [BAT1] (battery absent)
ACPI: Lid Switch [LID]
ACPI: Power Button (CM) [PBTN]
ACPI: Sleep Button (CM) [SBTN]
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3] C4[C3])
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: Thermal Zone [THM] (49 C)
ACPI: PCI Interrupt 0000:00:1e.3[B] -> GSI 17 (level, low) -> IRQ 18
ACPI: PCI interrupt for device 0000:00:1e.3 disabled
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
Time: acpi_pm clocksource has been installed.
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 17 (level, low) -> IRQ 18
ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 17 (level, low) -> IRQ 18
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 19
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 19 (level, low) -> IRQ 17
ACPI: PCI Interrupt 0000:00:1e.2[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:03:03.0[A] -> GSI 17 (level, low) -> IRQ 18


=== $ cpufreq-info ===
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@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.00 GHz
  available frequency steps: 2.00 GHz, 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
  available cpufreq governors: conservative, ondemand, powersave, userspace,
performance
  current policy: frequency should be within 800 MHz and 800 MHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz.


=== $ x86info --mhz === (note, the estimate ranges from 100MHz-350Mhz)
x86info v1.20.  Dave Jones 2001-2006
Feedback to <davej@redhat.com>.

Found 1 CPU
--------------------------------------------------------------------------
Family: 6 Model: 13 Stepping: 8 Type: 0 Brand: 6
CPU Model: Pentium M (Dothan) [C-0] Original OEM
Feature flags:
 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflsh ds
acpi mmx fxsr sse sse2 ss tm pbe est tm2
Extended feature flags:
 xd
Cache info
 L1 Instruction cache: 32KB, 8-way associative. 64 byte line size.
 L1 Data cache: 32KB, 8-way associative. 64 byte line size.
 L2 unified cache: 2MB, sectored, 8-way associative. 64 byte line size.
TLB info
 Instruction TLB: 4K pages, 4-way associative, 128 entries.
 Instruction TLB: 4MB pages, fully associative, 2 entries
 Data TLB: 4K pages, 4-way associative, 128 entries.
 Data TLB: 4MB pages, 4-way associative, 8 entries
 64 byte prefetching.
150MHz processor (estimate).


=== $ cat /proc/cpuinfo ===
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : Intel(R) Pentium(R) M processor 2.00GHz
stepping        : 8
cpu MHz         : 800.000
cache size      : 2048 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx est tm2
bogomips        : 826.66
clflush size    : 64

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot set max cpu frequency
  2007-07-23 16:43 Cannot set max cpu frequency Andy Spencer
@ 2007-07-24 13:23 ` Thomas Renninger
  2007-07-25  3:58   ` Andy Spencer
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Renninger @ 2007-07-24 13:23 UTC (permalink / raw)
  To: Andy Spencer; +Cc: cpufreq

On Mon, 2007-07-23 at 16:43 +0000, Andy Spencer wrote:
> For the last few days I have been unable set the maximum frequency for my
> processor (Intel Pentium M). A few days ago it worked correctly so I am
> assuming it is a hardware problem, but I have not been able to confirm that
> whatsoever. Does anyone have any suggestions for debugging this?
> 
> Here's what actually happens. I boot up my laptop and the ondemand governor
> is set to range between 800MHz and 2.00GHz. At first this works correctly,
> but after a few minutes the range will be reset to 800MHz-800Mhz and I am
> unable to change it without rebooting. I've tried changing it using '$
> cpufreq-set -u 2.00GHz' as well as 'echo -n 2000000 >
> /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq' (I'm not even sure if
> the 2nd one 'should' work). Changing to the 'userspace' governor has no
> effect.

It could be that cpufreq gets limited, because of temperature limits.
But this is unlikely (49 C and so much freq steps, making sure the fan
slots are clean is still a good idea).
I more looks like a BIOS issue. You may want to search your BIOS and
disable anything that could point to BIOS controlled frequency
switching.
Does "dmesg |grep -i acpi" show any warnings/errors?
Which kernel version is this about?
Do you run the latest BIOS, if not better update to the latest first.
Maybe it works if you do not load a specific ACPI module (only
processor, do not load fan, button, battery, ac, thermal modules)?
If it still happens with without ACPI modules, I'd compile a kernel with
ACPI_DEBUG enalbed (still only load the processor module), then increase
ACPI debug level: "echo 0x1F >/proc/acpi/debug_level". With some luck
you can catch the ACPI code processed, causing this.
Hmm, before doing that, maybe you should just open a bug at
kernel.bugzilla.org, attach acpidump output (based on latest BIOS) and
whatever you find out... Not sure whether to file the bug against
cpufreq or an ACPI component I have the strong feeling this is an ACPI
or BIOS bug (pls CC me there).

   Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot set max cpu frequency
  2007-07-24 13:23 ` Thomas Renninger
@ 2007-07-25  3:58   ` Andy Spencer
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Spencer @ 2007-07-25  3:58 UTC (permalink / raw)
  To: trenn; +Cc: cpufreq

> It could be that cpufreq gets limited, because of temperature limits.
> But this is unlikely (49 C and so much freq steps, making sure the fan
> slots are clean is still a good idea).

A couple hours after posting that message I noticed that the battery
light was blinking orange/green. According to the Dell website that
means that the battery was to hot to charge. I think this may have
been the problem, however I'm at a loss to what exactly happened. I
had my computer plugged in the whole time so I don't know why it would
be hot or trying to charge. All the other temperature sensors
(thm,sda,i8k,gpu) were within normal ranges. To be honest I didn't
even know there was a temperature sensor on the battery.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-25  3:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-23 16:43 Cannot set max cpu frequency Andy Spencer
2007-07-24 13:23 ` Thomas Renninger
2007-07-25  3:58   ` Andy Spencer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.