What is the minimum time required to place a BoardIoctl call from M4 core to scfw (board.c)?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is the minimum time required to place a BoardIoctl call from M4 core to scfw (board.c)?

579 Views
ShivaShankarKonda
Contributor II

Hello NXP team,

I am facing a timing issue with scfw requests from M4 core.  Including the "ipc open" and "ipc close" commands, it is taking 4ms. Is this time duration as expected? Any method to reduce the time?

At scfw board.c , we did not implement any immediate action, instead we copy the arguments and exit from "boarl_ioctl" function so that M4 need not wait till the action is done. The request processing is done only in the next iteration of board_tick(). So wrt M4, the scfw request is asynchronous. Still, it is consuming 4ms. 

Processor is MIMX8DX5AVLFZAC

Please find the attachments for more details.

1. Screenshot of the code in M4 where time measurement points are marked

2. Screenshot of the implementation in "board_ioctl"

Thanks and Regards,

Shiva

0 Kudos
4 Replies

457 Views
ShivaShankarKonda
Contributor II

Thanks for the reply. The 4ms time was taken due to the debug prints added in board.c. It's resolved now. Kindly close this ticket.

0 Kudos

458 Views
ShivaShankarKonda
Contributor II

Thank you for the reply. The long execution time was due to the debug prints added in board.c. Its resolved now. Please close this query.

0 Kudos

520 Views
brian14
NXP TechSupport
NXP TechSupport

Hi @ShivaShankarKonda

Thank you for your patience.

I have reviewed this case, and this is an expected time based on clocks configured for this function.
You can try to manipulate these clocks, but it is not recommended.

If you have any questions or concerns, please let me know.

Have a great day!

0 Kudos

527 Views
ShivaShankarKonda
Contributor II
Kindly reply.
0 Kudos