All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 0/0] measure speedstep-ich transition latency at CPU initialization
@ 2005-11-29 23:58 Mattia Dongili
  2005-11-29 23:58 ` [PATCH 1/2] Move PMBASE reading away and do it only once at initialization time Mattia Dongili
  0 siblings, 1 reply; 19+ messages in thread
From: Mattia Dongili @ 2005-11-29 23:58 UTC (permalink / raw)
  To: CPUFreq Mailing List

Hello,                                      
a foreword: this is my first patch here, it surely needs more work but I'd
appreciate some comments before going too far on the wrong lane.  Oh, I'm also
trying to use some git automation to send the patch, hopefully you won't
receive too many dups :)

The 2 patches are trying to implement the suggested runtime measurement
of transition latency on speedstep ich chipsets to offer the
allow the usage of the dynamic governors to ICH[234]-M owners (like me).

The first patch moves away PMBASE reading and only performs it at
cpufreq_register_driver time by exiting with -ENODEV if unable to read
the value. (git seems a little confused, I hope it's readable)

The second patch (could be split in 2 if necessary) introduces
__speedstep_set_state that performs the frequency transition without
disabling interrupts to be used in speedstep_measure_latency and
speedstep_get_freqs (IRQs are already disabled here).
It also implements the transition measurement if the parameter
'measure_latency' is set to a value other than 0.

The measurement is performed by means of do_gettimeofday as suggested by
Mr. Pallipadi.

Known problems:
- the patch is still missing a sanity check on the measured value
- it also introduces 2 more transitions at init time (2 in
  speedstep_get_freqs + 2 in speedstep_measure_latency) because I don't
  know if makes sense to rely (and hack) on speedstep_get_freqs to perform
  measurements.

thanks
--
mattia
:wq!

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: [PATCH 2/2] Measure transition latency at driver initialization
@ 2005-11-30 23:59 Pallipadi, Venkatesh
  0 siblings, 0 replies; 19+ messages in thread
From: Pallipadi, Venkatesh @ 2005-11-30 23:59 UTC (permalink / raw)
  To: Eric Piel, Mattia Dongili; +Cc: CPUFreq Mailing List, Dominik Brodowski, davej

 

>-----Original Message-----
>From: cpufreq-bounces@lists.linux.org.uk 
>[mailto:cpufreq-bounces@lists.linux.org.uk] On Behalf Of Eric Piel
>30.11.2005 23:30, Mattia Dongili wrote/a écrit:
>
>> I also had to modify speedstep-smi that still doesn't benefit 100% of
>> the times of the feature.
>Indeed, only buggy systems will benefit of it, quite weird! 
>Well, let's 
>keep the things simple for now. If Venki and/or Dave approve your 
>patches, then in a second time, we could try to generalise 
>this idea (to 
>all speedstep-smi and even more).
>

I am all for "OS measuring the latency itself". Infact, the idea can be extended to acpi-cpufreq driver as well, where currently BIOS reports the latency and more often than not, it reports the latency wrongly. OK. OK. Going by the Eric's words, we need to stay concentrated here. :)

Thanks,
Venki

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

end of thread, other threads:[~2005-12-04 17:00 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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-11-30 23:59 [PATCH 2/2] Measure transition latency at driver initialization Pallipadi, Venkatesh

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.