Re: [EXT] Re: Project specific power management configuration

2021-03-19 Thread Xiang Xiao
s > > E-mail: cis.van.mie...@nxp.com <mailto:cis.van.mierlo%40nxp.com> > > Internet: http://www.nxp.com > > > > -Original Message- > > From: Matias N. mailto:matias%40imap.cc>> > > Sent: Thursday, March 11, 2021 4:55 PM > > To: dev@nuttx.ap

Re: [EXT] Re: Project specific power management configuration

2021-03-19 Thread Matias N.
riginal Message- > From: Matias N. mailto:matias%40imap.cc>> > Sent: Thursday, March 11, 2021 4:55 PM > To: dev@nuttx.apache.org <mailto:dev%40nuttx.apache.org> > Subject: RE: [EXT] Re: Project specific power management configuration > > Caution: EXT Email >

Re: [EXT] Re: Project specific power management configuration

2021-03-19 Thread Gregory Nutt
2. Add a procfs option to the PM driver that exposes /procfs/power/state which can be modified from the user space as well. Currently the procfs is read-only, but there is no reason that I can thinkĀ  of that we could no extended to support writing.

RE: [EXT] Re: Project specific power management configuration

2021-03-19 Thread Cis Van Mierlo
High Tech Campus 46, room 0.64, 5656 AE Eindhoven, The Netherlands E-mail: cis.van.mie...@nxp.com Internet: http://www.nxp.com -Original Message- From: Matias N. Sent: Thursday, March 11, 2021 4:55 PM To: dev@nuttx.apache.org Subject: RE: [EXT] Re: Project specific power management con

RE: [EXT] Re: Project specific power management configuration

2021-03-11 Thread Matias N.
Calling those functions from applications would be a violation of OS/application isolation, as these are OS level calls. The general idea is that a driver only knows what to do on each sleep level and the IDLE loop uses those functions to drive the change of states of PM system. >From application

RE: [EXT] Re: Project specific power management configuration

2021-03-11 Thread Cis Van Mierlo
Subject: Re: [EXT] Re: Project specific power management configuration Caution: EXT Email The interaction between hardware on/off and sleep states usually occurs on IDLE loop. I'm not sure if you are aware of this option but you can have a board specific idle loop implementation. This is wha

Re: [EXT] Re: Project specific power management configuration

2021-03-10 Thread Matias N.
The interaction between hardware on/off and sleep states usually occurs on IDLE loop. I'm not sure if you are aware of this option but you can have a board specific idle loop implementation. This is what I usually do to implement project specific handling of sleep states. Best, Matias On Wed,

RE: [EXT] Re: Project specific power management configuration

2021-03-10 Thread Cis Van Mierlo
Hi Matias, I indeed saw that there are several governors. I implemented PM switches in the application code (you could see this as a governor), there is for example a sleep state of the application, there the PM_SLEEP state is used to set the MCU in a very low power state. Another one is the PM