All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Frank <mflt1@micrologica.com.hk>
To: Luigi Belli <lbelli@crema.unimi.it>, cpufreq@www.linux.org.uk
Subject: Re: Cpufreq: powernow-k7 weirdness
Date: Mon, 7 Jul 2003 12:16:10 +0800	[thread overview]
Message-ID: <200307071129.46683.mflt1@micrologica.com.hk> (raw)
In-Reply-To: <200307062356.01561.lbelli@crema.unimi.it>

On Monday 07 July 2003 05:56, Luigi Belli wrote:
> On Sunday 06 July 2003 08:48 pm, Ducrot Bruno wrote:
> > Things should be a little bit more smooth, but there is still deadlock
> > when for example you switch from max freq. to min.
>
> Never had problems switching max to min (and I do it every time I boot the

You CPU can't scream oooouch...

> system), min to max instead often freezes everything (and I'm undervolted,
> so virtually less stable).
>
>

Some of the problems refereed to in this thread are likely hardware related,
may occur with all CPU's where voltage/frequency is scaled and are more 
pronounced with high-power CPUs such as PIII, Duron and up.

On power supplies
-----------------
Computer power supplies generally use buck type regulators where a choke
is in series with the output and is somewhat slow in regulation.
Further, modern mainboards core-voltage (also buck) regulator is electrically 
in series with the (mostly 12V)  output of the main PSU. When powersupplies 
are heavily loaded with several disks and an "oversize/upgraded"  main board,
regulation becomes marginal.

Inner resistance increases and regulation deteriorates with age as capacitors 
"dry out" and loose a substantial part of their capacity. 

The 10$ 300W PSU is a poor joke. Using a quality and even oversize powersupply 
is better for regulation, brownout protection and system stability. Saving a 
few bucks here is not worthwhile ;). BTW, a decent 300W PSU is much heavier than
the 10$ version.

On notebooks, when batteries a low/older, inner resistance is higher leading 
to similar problems with "Bigger CPUs" such as reset prior to low-charge 
shutdown.

On scaling CPU frequency/core voltage
-------------------------------------
Be warned: Semiconductors exhibit a disproportional (exponential to
avalanche) relationship between voltage and stress/~reliability. 

When switching  max to min, voltages will _overshoot_, possibly crashing and 
in extreme cases even damaging/destroying the CPU as the CPU core voltage is  
already high (close to the limit) at that time. Voltage overshoot is also 
bad for other parts of the system and unfortunately does not trigger any 
warning. I am not aware of crowbar protected Vcore on mainboards.

When switching min to max, voltages will _collapse_ very likely leading to 
a crash, and possibly even triggering the undervoltage circuit in the 
main power supply leading to a reset.

Switching speeds should be done incrementally, with a few (2-10) ms
between steps. Taking longer won't do any harm. 

The actual minimum time between steps depends on systems design and can 
only be established by watching the (core) voltage on an oscilloscope 
while modulating cpufreq/ACPI settings. The time used should be double 
or triple the minimum for longterm stability. It would be better if 
Mainboard manufacturers would specify this minimum time.

Would one want to make the interstep time userspace selectable from 1 - 50 ms?

Regards
Michael

-- 
Powered by linux-2.5.74-mm1. Compiled with gcc-2.95-3 - mature and rock solid

My current linux related activities:
- 2.5 yenta_socket testing
- Test development and testing of swsusp and ACPI S3
- Everyday usage of 2.5 kernel

More info on 2.5 kernel: http://www.codemonkey.org.uk/post-halloween-2.5.txt

  reply	other threads:[~2003-07-07  4:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-06  1:00 Cpufreq: powernow-k7 weirdness Juliusz Chroboczek
2003-07-06  1:21 ` Ducrot Bruno
2003-07-06 17:11   ` Carl Thompson
2003-07-06 17:28     ` Jay Goodman Tamboli
2003-07-06 17:43       ` Carl Thompson
2003-07-06 18:48         ` Ducrot Bruno
2003-07-06 21:56           ` Luigi Belli
2003-07-07  4:16             ` Michael Frank [this message]
2003-07-07 13:12               ` Ducrot Bruno
2003-07-07 15:06                 ` Michael Frank
2003-07-07 16:32                   ` Daniel Thor Kristjansson
2003-07-07 12:58   ` Juliusz Chroboczek
2003-07-07 13:32     ` Ducrot Bruno
2003-07-07 17:32       ` Dave Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200307071129.46683.mflt1@micrologica.com.hk \
    --to=mflt1@micrologica.com.hk \
    --cc=cpufreq@www.linux.org.uk \
    --cc=lbelli@crema.unimi.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.