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

   
   ## Summary
   
   Long OP-TEE calls would starve the Normal World tasks. OP-TEE foreign 
interrupts were delivered to NW but we would resume OP-TEE immediately without 
giving any potentially unblocked tasks a chance to run. This breaks real-time 
guarantees.
   
   Fix it by calling `sched_yield()` during OP-TEE return with reason foreign 
interrupts (`OPTEE_SMC_RETURN_RPC_FOREIGN_INTR`).
   
   ## Impact
   
   Users of `CONFIG_DEV_OPTEE_SMC`:
    - Better cooperation with OP-TEE's foreign interrupt delivery mechanism. 
Fixes scheduling during long OP-TEE calls with the SMC driver.
   
   Other users:
    - No impact.
   
   ## Testing
   
   Tested on custom i.MX93 board and i.MX93 EVK with `imx93-evk:koptee` to fix 
the issue of starving normal world tasks during CPU-heavy OP-TEE calls.
   
   
   


-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to