You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "zyfeier (via GitHub)" <gi...@apache.org> on 2023/10/17 11:46:59 UTC

[PR] sched: support smp function call [nuttx]

zyfeier opened a new pull request, #10934:
URL: https://github.com/apache/nuttx/pull/10934

   ## Summary
   
   The smp function call allows specifying a function to be executed by another core. The wait parameter can be used to choose whether to wait or not for the other core to finish executing, it should be noted that there should be no waiting operations in the executed function.
   
   This PR include:
   1. Add smp function call support in sched;
   2. ARM64 support smp function call, other architectures will be added gradually;
   
   ## Impact
   
   NA
   
   ## Testing
   
   board: 
   qemu-armv8a:nsh_smp enable CONFIG_SMP_CALL
   
   test code:
   
   ```
   int test_smp_call_func(void *arg)
   {
     syslog(0, "test_smp_call_func:%d\n", up_cpu_index());
     syslog_flush();
     return 0;
   }
   
   int test_smp_call(int argc, FAR char *argv[])
   {
     nxsched_smp_call_single(1, test_smp_call_func, NULL, false);
     nxsched_smp_call_single(1, test_smp_call_func, NULL, true);
     nxsched_smp_call(0xf, test_smp_call_func, NULL, false);
     nxsched_smp_call(0xf, test_smp_call_func, NULL, true);
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] sched: support smp function call [nuttx]

Posted by "zyfeier (via GitHub)" <gi...@apache.org>.
zyfeier commented on PR #10934:
URL: https://github.com/apache/nuttx/pull/10934#issuecomment-1767448953

   > @zyfeier I think a similar testing should be included into ostest (including some why to detect it was ran in the right core) and executed when CONFIG_SMP_CALL is enabled.
   
   Ok, i'll add test case to ostest.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] sched: support smp function call [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #10934:
URL: https://github.com/apache/nuttx/pull/10934


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] sched: support smp function call [nuttx]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #10934:
URL: https://github.com/apache/nuttx/pull/10934#issuecomment-1767083594

   @zyfeier I think a similar testing should be included into ostest (including some why to detect it was ran in the right core) and executed when CONFIG_SMP_CALL is enabled.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org