All of lore.kernel.org
 help / color / mirror / Atom feed
* How to use generic power domains (pm_genpd)
@ 2012-11-22 14:38 Rickard Andersson
  0 siblings, 0 replies; only message in thread
From: Rickard Andersson @ 2012-11-22 14:38 UTC (permalink / raw)
  To: linux-pm

Hi,

I am currently looking at genpd to see if it can be used in my case
(U8500) and I have some questions.

I want to model a powerdomain that is tied to the CPU (the CPU can not
be turned on without this power domain being on) so I would like to use
pm_genpd_attach_cpuidle(..). One problem with using this function is
that my powerdomain can be attached to several cpuidle sleep states and
genpd does not seem to handle that case? (genpd does only seem to handle
being connected to one cpuidle state.)

Another thing that I am trying to find out is if genpd works ok if a
driver in the power domain does pm_runtime_get_sync(..) in interrupt
context? When looking at pm_genpd_runtime_resume(..) it looks like the
function will never call __pm_genpd_poweron(..) in the interrupt context
case. If I understand it correctly this means that the cpuidle
connection code "genpd->cpu_data->idle_state->disabled = true" is never
executed?
Also in __pm_genpd_poweron(..) it seems non otimal from power
consumption point of view to call cpuidle_pause_and_lock(..) as soon as
the cpuidle connected power domain is turned on because
cpuidle_pause_and_lock(..) calls kick_all_cpus_sync(). This means that
all CPU's in sleep will be woken up just because another CPU enables
this power domain.

Thanks in advance
Rickard


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-22 19:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 14:38 How to use generic power domains (pm_genpd) Rickard Andersson

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.