* [Query] How to measure the entry-latency-us and exit-latency-us on arm PSCI system
@ 2015-11-16 12:10 Jisheng Zhang
2015-11-16 16:05 ` Lorenzo Pieralisi
0 siblings, 1 reply; 3+ messages in thread
From: Jisheng Zhang @ 2015-11-16 12:10 UTC (permalink / raw)
To: linux-arm-kernel
Hi all,
Now, I'd like to add cpuidle support to Marvell berlin arm64 soc via
drivers/cpuidle/dt_idle_states.c. The system is PSCI-1.0 compatible.
Per my understanding:
The entry-latency-us: the time from beginning of cpuidle_idle_call()
to the firmware's last WFI instruction. Should test more times to find
the longest time.
The exit-latency-us: the time from the first instruction of waken up cpu
to the end of cpuidle_idle_call(). Should test more times to find the longest
time.
If cpufreq is available, we should fix the cpufreq to the lowest freq to do
the above test.
Even I have a look at idle-states binding doc, I'm still not sure whether my
solution to measure the entry-latency-us and exit-latency-us is correct or not,
could you please give suggestions?
Thanks in advance,
Jisheng
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Query] How to measure the entry-latency-us and exit-latency-us on arm PSCI system
2015-11-16 12:10 [Query] How to measure the entry-latency-us and exit-latency-us on arm PSCI system Jisheng Zhang
@ 2015-11-16 16:05 ` Lorenzo Pieralisi
2015-11-17 3:56 ` Jisheng Zhang
0 siblings, 1 reply; 3+ messages in thread
From: Lorenzo Pieralisi @ 2015-11-16 16:05 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Nov 16, 2015 at 08:10:55PM +0800, Jisheng Zhang wrote:
> Hi all,
>
> Now, I'd like to add cpuidle support to Marvell berlin arm64 soc via
> drivers/cpuidle/dt_idle_states.c. The system is PSCI-1.0 compatible.
>
> Per my understanding:
>
> The entry-latency-us: the time from beginning of cpuidle_idle_call()
> to the firmware's last WFI instruction. Should test more times to find
> the longest time.
>
> The exit-latency-us: the time from the first instruction of waken up cpu
> to the end of cpuidle_idle_call(). Should test more times to find the longest
> time.
>
> If cpufreq is available, we should fix the cpufreq to the lowest freq to do
> the above test.
>
> Even I have a look at idle-states binding doc, I'm still not sure whether my
> solution to measure the entry-latency-us and exit-latency-us is correct or not,
> could you please give suggestions?
It is correct and yes for the time being they represent the global worst
case so your assumption on cpufreq is reasonable, you should set the
system in the worst case conditions.
If the entry phase is interruptible on pending irq (which means that
your firmware has checkpoints in the power down sequence) please define
wakeup-latency according to the docs, it might be < entry+exit,
otherwise your measurements are just fine.
Thanks,
Lorenzo
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Query] How to measure the entry-latency-us and exit-latency-us on arm PSCI system
2015-11-16 16:05 ` Lorenzo Pieralisi
@ 2015-11-17 3:56 ` Jisheng Zhang
0 siblings, 0 replies; 3+ messages in thread
From: Jisheng Zhang @ 2015-11-17 3:56 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, 16 Nov 2015 16:05:13 +0000
Lorenzo Pieralisi wrote:
> On Mon, Nov 16, 2015 at 08:10:55PM +0800, Jisheng Zhang wrote:
> > Hi all,
> >
> > Now, I'd like to add cpuidle support to Marvell berlin arm64 soc via
> > drivers/cpuidle/dt_idle_states.c. The system is PSCI-1.0 compatible.
> >
> > Per my understanding:
> >
> > The entry-latency-us: the time from beginning of cpuidle_idle_call()
> > to the firmware's last WFI instruction. Should test more times to find
> > the longest time.
> >
> > The exit-latency-us: the time from the first instruction of waken up cpu
> > to the end of cpuidle_idle_call(). Should test more times to find the longest
> > time.
> >
> > If cpufreq is available, we should fix the cpufreq to the lowest freq to do
> > the above test.
> >
> > Even I have a look at idle-states binding doc, I'm still not sure whether my
> > solution to measure the entry-latency-us and exit-latency-us is correct or not,
> > could you please give suggestions?
>
> It is correct and yes for the time being they represent the global worst
> case so your assumption on cpufreq is reasonable, you should set the
> system in the worst case conditions.
>
> If the entry phase is interruptible on pending irq (which means that
> your firmware has checkpoints in the power down sequence) please define
> wakeup-latency according to the docs, it might be < entry+exit,
> otherwise your measurements are just fine.
>
Got it. Thanks for detailed explanations
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-17 3:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-16 12:10 [Query] How to measure the entry-latency-us and exit-latency-us on arm PSCI system Jisheng Zhang
2015-11-16 16:05 ` Lorenzo Pieralisi
2015-11-17 3:56 ` Jisheng Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).