Re: Cherryview wake up events

From: Mika Westerberg
Date: Mon Dec 05 2016 - 06:08:33 EST


On Sun, Dec 04, 2016 at 07:52:19PM +0100, Johannes Stezenbach wrote:
> Hi,
>
> On Wed, Oct 05, 2016 at 04:05:11PM +0300, Mika Westerberg wrote:
> > On Wed, Oct 05, 2016 at 02:46:48PM +0200, Johannes Stezenbach wrote:
> > > On Fri, Sep 23, 2016 at 11:19:04AM +0300, Mika Westerberg wrote:
> > > > David (CC'd) is working on getting the Dollar Cove PMIC driver
> > > > upstreamed to the mainline kernel.
> > >
> > > May I ask when to expect a patch? I'm ready if you
> > > have something to test, even if it's not in
> > > shape for mainline yet.
> >
> > It typically takes quite some time to get all the legal stuff done
> > before the code can be published. And if people are busy with other
> > things it takes even more time.
> >
> > So please be patient, it will happen sooner or later ;-)
>
> I don't want to nag, but just so it doesn't drop off
> the TODO list due to "lack of interest": What's the
> status? Will Santa bring the the TI Dollar Cove PMIC driver?

David, do you have any estimate?

> While I'm at it, I also have questions about S0ix support
> in Linux which I didn't find answers to by web search.
> Does S0ix depend on the PMIC driver? And will it be
> used during run time or only in "sleep" state
> (which would mean "echo freeze >/sys/power/state"
> since ACPI S3 isn't supported)?

AFAIK it is dependent only on components on the SoC. If all goes well
freeze mode will enter S0ix (or it can be entered runtime as well if all
drivers support runtime PM and have moved devices into D3).

> Now all I know is it doesn't seem to be used so far (running 4.9.0-rc7+):
>
> /sys/kernel/debug/pmc_atom/sleep_state:S0IR Residency: 0us
> /sys/kernel/debug/pmc_atom/sleep_state:S0I1 Residency: 0us
> /sys/kernel/debug/pmc_atom/sleep_state:S0I2 Residency: 0us
> /sys/kernel/debug/pmc_atom/sleep_state:S0I3 Residency: 0us
> /sys/kernel/debug/pmc_atom/sleep_state:S0 Residency: 160934496us

Yeah, seems that the system has not entered S0ix.