jlaitine commented on PR #16673: URL: https://github.com/apache/nuttx/pull/16673#issuecomment-3188189174
@tmedicci , @fdcavalcanti , I believe the issue which broke the esp32 spiflash driver, which uses fixed affinity for some of the threads, should now be fixed. In qemu the tasks start properly now even without modifications to the spiflash driver; however, my observation about starting the task and setting the affinity is still valid. There is a possibility for the task to start on a wrong CPU before the affinity gets set (because the kthread_create also starts the task). This only depends on the timings, how fast the task spawns on the other CPU before the affinity gets set. This can be overcome by the critical_section or by creating the task and setting affinity before activating it ( I quickly tried this, which does that: https://github.com/tiiuae/nuttx/commit/b4f195b1a7d7d7a2baed597d446e33ac9860db9e ) -- 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