From: Peter De Schrijver <pdeschrijver@nvidia.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: "Shilimkar, Santosh" <santosh.shilimkar@ti.com>,
Kevin Hilman <khilman@ti.com>, Len Brown <len.brown@intel.com>,
Trinabh Gupta <g.trinabh@gmail.com>,
Russell King <linux@arm.linux.org.uk>,
Stephen Warren <swarren@wwwdotorg.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Deepthi Dharwar <deepthi@linux.vnet.ibm.com>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
Colin Cross <ccross@android.com>, Olof Johansson <olof@lixom.net>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Arjan van de Ven <arjan@linux.intel.com>
Subject: Re: [RFC PATCH] cpuidle: allow per cpu latencies
Date: Tue, 10 Apr 2012 13:28:57 +0300 [thread overview]
Message-ID: <20120410102857.GA22721@tbergstrom-lnx.Nvidia.com> (raw)
In-Reply-To: <4F7F0D52.8080305@linaro.org>
On Fri, Apr 06, 2012 at 05:35:46PM +0200, Daniel Lezcano wrote:
> On 04/06/2012 12:32 PM, Shilimkar, Santosh wrote:
> > Peter,
> >
> > On Thu, Apr 5, 2012 at 7:07 PM, Arjan van de Ven<arjan@linux.intel.com> wrote:
> >> On 4/5/2012 2:53 AM, Peter De Schrijver wrote:
> >>> This patch doesn't update all cpuidle device registrations. I will do that
> >>
> >> question is if you want to do per cpu latencies, or if you want to have
> >> both types of C state in one big table, and have each of the tegra cpyu
> >> types pick half of them...
> >>
> >>
> > Indeed !! That should work.
> > I thought the C-states are always per CPU based and during the
> > cpuidle registration you can register C-state accordingly based on the
> > specific CPU types with different latencies if needed.
> >
> > Am I missing something ?
>
> That was the case before the cpuidle_state were moved from the
> cpuidle_device to the cpuidle_driver structure [1].
>
> That had the benefit of using a single latencies array instead of
> multiple copy of the same array, which was the case until today.
>
> I looked at the white paper for the tegra3 and understand this is no
> longer true because of the 4-plus-1 architecture [2].
>
The reason is not so much 4-plus-1, but in 4 CPU mode, only CPUs 1 - 3 can
be powergated individually. To turn off CPU0, the external regulator for
the entire cluster is turned off. This means latencies for CPU0 are different
from the other CPUs.
> With the increasing number of SoCs, we have a lot of new cpuidle drivers
> and each time we modify something in the cpuidle core, that impacts all
> the cpuidle drivers.
>
> My feeling is we are going back and forth when patching the cpuidle core
> and may be it is time to define a clear semantic before patching again
> the cpuidle, no ?
>
> What could nice is to have:
>
> * in case of the same latencies for all cpus, use a single array
>
> * in case of different latencies, group the same latencies into a
> single array (I assume this is the case for 4-plus-1, right ?)
>
> May be we can move the cpuidle_state to a per_cpu pointer like
> cpuidle_devices in cpuidle.c and then add:
>
> register_latencies(struct cpuidle_latencies l, int cpu);
>
> If we have the same latencies for all the cpus, then we can register the
> same array, which is only a pointer.
Maybe we also want to make the 'disabled' flag per CPU then or provide some
other way the number of C states can be different per CPU?
Cheers,
Peter.
next prev parent reply other threads:[~2012-04-10 10:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-05 9:53 [RFC PATCH] cpuidle: allow per cpu latencies Peter De Schrijver
2012-04-05 13:37 ` Arjan van de Ven
2012-04-06 10:32 ` Shilimkar, Santosh
2012-04-06 15:35 ` Daniel Lezcano
2012-04-10 10:28 ` Peter De Schrijver [this message]
2012-04-16 15:34 ` Peter De Schrijver
2012-04-19 9:14 ` Daniel Lezcano
2012-04-19 10:23 ` Peter De Schrijver
2012-04-10 10:31 ` Peter De Schrijver
-- strict thread matches above, loose matches on Subject: below --
2012-04-05 10:44 Peter De Schrijver
2012-04-05 11:25 Peter De Schrijver
2012-04-05 12:03 ` Peter 'p2' De Schrijver
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=20120410102857.GA22721@tbergstrom-lnx.Nvidia.com \
--to=pdeschrijver@nvidia.com \
--cc=arjan@linux.intel.com \
--cc=ccross@android.com \
--cc=daniel.lezcano@linaro.org \
--cc=deepthi@linux.vnet.ibm.com \
--cc=g.trinabh@gmail.com \
--cc=khilman@ti.com \
--cc=len.brown@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=olof@lixom.net \
--cc=santosh.shilimkar@ti.com \
--cc=swarren@wwwdotorg.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox