All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Piel <Eric.Piel@tremplin-utc.net>
To: Mattia Dongili <malattia@linux.it>
Cc: CPUFreq Mailing List <cpufreq@lists.linux.org.uk>,
	Dominik Brodowski <linux@dominikbrodowski.net>,
	davej@redhat.com
Subject: Re: [PATCH 2/2 updated] Measure transition latency at driver	initialization
Date: Thu, 01 Dec 2005 22:05:31 +0100	[thread overview]
Message-ID: <438F659B.3070103@tremplin-utc.net> (raw)
In-Reply-To: <20051201193147.GB4432@inferi.kami.home>

01.12.2005 20:31, Mattia Dongili wrote/a écrit:
> ok, updated patch attached (with a shiny diffstat!!). Looks a lot
> nicer now :)
> 
> Oh, what do you think of the request to report out-of-range frequencies
> and set CPUFREQ_ETERNAL instead of setting an arbitrary high value? If
> ok, shall I use my email address instead of the list's?
> 
I was about to say this is fairly reasonable... until I tried it on my 
laptop and notice that _I_ got this message :-( Transition measured: 
4500 nSec. It's probably because the clock source on my laptop is the 
TSC, which on this old processor stops during transition. Therefore, 
after being in the shoe of the poor user still not having the ondemand 
governor working, I'd tend to prefer if the fallback transition latency 
could be a high and safe, but still usable, value. Anyway, we _know_ 
that those processors are not so slugish to do transition that it should 
be considered "eternal" :-)

So what about putting it to 500 uSec, knowing that on my 1GHz PIII it 
took something like 200uSec, it should be safe everywhere:


:
> +	/* sanytize the latency measurement if too high or too low
> +	 * and ask for reports of out-of-range values
> +	 */
> +	if (*transition_latency > 10000000 || *transition_latency < 50000) {
> +		printk (KERN_ERR "CPUFreq: measured latency of the frequency transition out "
> +				"of range, please report the following value to "
> +				"cpufreq@lists.linux.org.uk\n%u nSec\n", *transition_latency);
> +		*transition_latency = CPUFREQ_ETERNAL;
> +	}
It would be something like:
*transition_latency = 500000;
KERN_WARNING "speedstep: frequency transition measured seems out of "
              "range, falling back to a safe one of %u nSec.\n", 
*transition_latency


Eric

  reply	other threads:[~2005-12-01 21:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29 23:58 [RFC][PATCH 0/0] measure speedstep-ich transition latency at CPU initialization Mattia Dongili
2005-11-29 23:58 ` [PATCH 1/2] Move PMBASE reading away and do it only once at initialization time Mattia Dongili
2005-11-29 23:58   ` [PATCH 2/2] Measure transition latency at driver initialization Mattia Dongili
2005-11-30 11:46     ` Eric Piel
2005-11-30 22:30       ` Mattia Dongili
2005-11-30 23:41         ` Eric Piel
2005-12-01 19:31           ` [PATCH 2/2 updated] " Mattia Dongili
2005-12-01 21:05             ` Eric Piel [this message]
2005-12-01 23:34               ` Mattia Dongili
2005-12-02 11:37                 ` Eric Piel
2005-12-02 13:34                   ` Mattia Dongili
2005-12-02 20:59                     ` Mattia Dongili
2005-12-02 23:43                       ` Eric Piel
2005-12-04 17:00                       ` Dominik Brodowski
2005-12-02  4:38               ` Ville Syrjälä
2005-11-30 11:02   ` [PATCH 1/2] Move PMBASE reading away and do it only once at initialization time Eric Piel
2005-11-30 21:00     ` Mattia Dongili
2005-12-04 16:58       ` Dominik Brodowski
  -- strict thread matches above, loose matches on Subject: below --
2005-12-03  0:50 [PATCH 2/2 updated] Measure transition latency at driver initialization Pallipadi, Venkatesh

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=438F659B.3070103@tremplin-utc.net \
    --to=eric.piel@tremplin-utc.net \
    --cc=cpufreq@lists.linux.org.uk \
    --cc=davej@redhat.com \
    --cc=linux@dominikbrodowski.net \
    --cc=malattia@linux.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.