View topic - QNX Power modes using sysmgr_cpumode() API

QNX Power modes using sysmgr_cpumode() API

For discussion of realtime and/or embedded programming.

QNX Power modes using sysmgr_cpumode() API

Postby Anant Pai » Mon Apr 17, 2017 10:54 am

Hi All,

We are working on Application using Power Mode provided by QNX 6.6 Power Management Framework on ARM CortexA7 based Board and for one of our
application we need to put the processor into sleep, standby etc., modes supported by QNX. So, here looking at QNX referral document we found that
sysmgr_cpumode(int mode) does the job for us. But, wanted to know more on this function i.e., specifically the mode value, what are these mode values to be passed
while calling the API. Are these mode values are defined in QNX Library. If so, where? If not how can we handle CPU Modes using this function.

On reading more about this API, we understood that QNX Power Callout will be called by QNX Kernel when this API is called from User Space. Does QNX kernel
call Power Callout whenever sysmgr_cpumode API is called irrespective of the mode value or it depends on any specific mode values. Like,
MODE Value = GOTOSTANDBY -- Calls Power Callout which changes CPU Mode to Standby
MODE Value = GOTOIDLE -- Calls Power Callout which changes CPU Mode to IDLE and so on.

Can anyone help me in understanding the QNX Power Mode API’s.

FYI, The PMU unit is controlled by Cortex-M3 core and the A7 communicates with it via IPC.

Best Regards,

Anant Pai
Anant Pai
Active Member
 
Posts: 19
Joined: Wed Mar 01, 2017 2:25 pm

Re: QNX Power modes using sysmgr_cpumode() API

Postby sshah91 » Thu Aug 02, 2018 3:18 pm

Hi,

Were you find anything regarding this. I am also working on a application where I need to put the processor in one of the power savings mode.
I did test sysmgr_cpumode with 0-10 values but nothing seems to happen. Do I need to write additional code in assembly for these states to work?
I am using QNX 7 framework and my target processor is x86. Any information will really be helpful.

Thank you
sshah91
New Member
 
Posts: 1
Joined: Wed Aug 01, 2018 9:36 pm



Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 3 guests

cron