Hi,
I want to reduce power consumption on our platform, but I don't know below information.
1. How to get the DSP (C6x) usage when AAC encoder is running?
2. How to disable SGX and HDMI clock when I load M3 to memory?
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I want to reduce power consumption on our platform, but I don't know below information.
1. How to get the DSP (C6x) usage when AAC encoder is running?
2. How to disable SGX and HDMI clock when I load M3 to memory?
Thanks
1. How to get the DSP (C6x) usage when AAC encoder is running?
- Vsys_printDetailedStatistics() prints the load of all cores including C6x on the console. There is no API to programmatically get the processor load though.
For second question it may help if you make a separate post.
Hi,
I modify MultiCh_prfLoadPrint as below:
Int32 MultiCh_prfLoadPrint(Bool printTskLoad,Bool resetTskLoad)
{
UInt32 numProcs, procId;
numProcs = sizeof(gMultiCh_enabledProcs)/sizeof(gMultiCh_enabledProcs[0]);
for(procId=0; procId<numProcs; procId++)
{
SystemCommon_PrintStatus printStatus;
OSA_printf("display cpu usage(%d)\n",gMultiCh_enabledProcs[procId]);
memset(&printStatus, 0, sizeof(printStatus));
printStatus.printCpuLoad = TRUE;
printStatus.printTskLoad = printTskLoad;
System_linkControl(
gMultiCh_enabledProcs[procId],
SYSTEM_COMMON_CMD_PRINT_STATUS,
&printStatus,
sizeof(printStatus),
TRUE);
if (resetTskLoad)
{
System_linkControl(
gMultiCh_enabledProcs[procId],
SYSTEM_COMMON_CMD_CPU_LOAD_CALC_RESET,
NULL,
0,
TRUE);
}
OSA_waitMsecs(500); // allow for print to complete
}
return 0;
}
Then I call Vsys_printDetailedStatistics to display cpu usage. but it cannot print DSP usage.
[host] display cpu usage(536870975)
[m3vpss ]
[m3vpss ] 13117317: LOAD: CPU: 9.9% HWI: 1.5%, SWI:1.6%
[m3vpss ]
[m3vpss ] 13117318: LOAD: TSK: IPC_OUT_M30 : 0.8%
[m3vpss ] 13117318: LOAD: TSK: IPC_FRAMES_OUT1 : 0.5%
[m3vpss ] 13117318: LOAD: TSK: CAPTURE : 0.5%
[m3vpss ] 13117318: LOAD: TSK: NSF0 : 0.5%
[m3vpss ] 13117319: LOAD: TSK: DEI3 : 1.0%
[m3vpss ] 13117320: LOAD: TSK: DUP0 : 0.1%
[m3vpss ] 13117320: LOAD: TSK: Scalar0 : 0.7%
[m3vpss ] 13117320: LOAD: TSK: Scalar1 : 0.6%
[m3vpss ] 13117321: LOAD: TSK: MERGE0 : 0.2%
[m3vpss ] 13117321: LOAD: TSK: MISC : 1.9%
[m3vpss ]
[host] display cpu usage(268435519)
[m3video]
[m3video] 13117822: LOAD: CPU: 5.8% HWI: 0.6%, SWI:0.8%
[m3video]
[m3video] 13117822: LOAD: TSK: IPC_IN_M30 : 0.2%
[m3video] 13117823: LOAD: TSK: IPC_BITS_OUT0 : 0.6%
[m3video] 13117823: LOAD: TSK: ENC0 : 1.3%
[m3video] 13117823: LOAD: TSK: ENC_PROCESS_TSK_0 : 2.0%
[m3video] 13117823: LOAD: TSK: MISC : 0.3%
[m3video]
[host] display cpu usage(63)
*** Encode Bitstream Received Statistics ***