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 updated] Measure transition latency at driver initialization
@ 2005-12-03  0:50 Pallipadi, Venkatesh
  0 siblings, 0 replies; 19+ messages in thread
From: Pallipadi, Venkatesh @ 2005-12-03  0:50 UTC (permalink / raw)
  To: Eric Piel, Mattia Dongili; +Cc: CPUFreq Mailing List, Dominik Brodowski, davej


Patch looks good to me.

Thanks,
Venki 

>-----Original Message-----
>From: Eric Piel [mailto:Eric.Piel@tremplin-utc.net] 
>Sent: Friday, December 02, 2005 3:43 PM
>To: Mattia Dongili
>Cc: CPUFreq Mailing List; Dominik Brodowski; davej@redhat.com; 
>Pallipadi, Venkatesh
>Subject: Re: [PATCH 2/2 updated] Measure transition latency at 
>driver initialization
>
>02.12.2005 21:59, Mattia Dongili wrote/a écrit:
>
>> here it is:
>> the attached patch introduces runtime latency measurement 
>for ICH[234]
>> based chipsets instead of using CPUFREQ_ETERNAL. It includes
>> some sanity checks in case the measured value is out of range and
>> assigns a safe value of 500uSec that should still be enough on
>> problematics chipsets (current testing report values ~200uSec). The
>> measurement is currently done in speedstep_get_freqs in 
>order to avoid
>> further unnecessary transitions and in the hope it'll come 
>handy for SMI
>> also.
>
>It looks fine for me :-) Dave, Venki, do you have any 
>objections? Please 
>apply those two patchs to finally get over the transition latency 
>problem on speedstep-ich.
>
>cheers,
>Eric
>

^ 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-12-03  0:50 [PATCH 2/2 updated] 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.