[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2128774.ZZqv5COSxS@vostro.rjw.lan>
Date: Sun, 07 Feb 2016 15:34:29 +0100
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: Viresh Kumar <viresh.kumar@...aro.org>
Cc: Linux PM list <linux-pm@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Juri Lelli <juri.lelli@....com>,
Steve Muckle <steve.muckle@...aro.org>,
Saravana Kannan <skannan@...eaurora.org>
Subject: Re: [PATCH v2 9/10] cpufreq: governor: Rearrange governor data structures
On Sunday, February 07, 2016 02:59:11 PM Viresh Kumar wrote:
> On 05-02-16, 23:47, Rafael J. Wysocki wrote:
> > On Friday, February 05, 2016 02:43:57 PM Viresh Kumar wrote:
> > > Value of policy_dbs->policy was used to verify the state machine of
> > > the governor and so was updated only in start/stop.
> > >
> > > You have moved it to INIT first (which shouldn't have been part of
> > > this patch at the least),
> >
> > Why?
>
> Because it doesn't match $SUBJECT at all..
>
> > > and then there is no reasoning given on why
> > > that isn't required as part of the state machine now, which I believe
> > > is still required the way it was.
> >
> > No, it isn't required. The whole "state machine" isn't required IMO.
>
> The state machine wasn't required if the core wasn't buggy. Its buggy because we
> drop policy->rwsem during set-policy, before calling EXIT. And other
> __cpufreq_governor() calls can shoot up at that point of time.
>
> We have seen lots of crashes earlier and so the state machine was introduced to
> get them fixed.
>
> It might not be required (after making sure things are working fine now), after
> applying my patch series of 7 patches. As that fixes the lock-drop issue ..
>
> > The only user of this is the cpufreq core, so why does the code here have to
> > double check what the core is doing?
>
> Because, core doesn't guarantee the order today.
OK, so I have reworked this. I have a series of 3 patches now instead of it
that I'm going to post shortly.
Thanks,
Rafael
Powered by blists - more mailing lists