hujun260 commented on PR #9065: URL: https://github.com/apache/nuttx/pull/9065#issuecomment-1521146578
> @hujun260 > > I think that 'cpu: ' in the commit log is too generic and would lead to misunderstanding. My recommendation is to use 'arm64: ' instead. > > ``` > commit 6063c0516e9899230d6de9e1c9ac8ca1bfbd0143 (tag: nuttx-20230424-015132) > Author: hujun5 <[email protected]> > Date: Fri Apr 7 17:11:33 2023 +0800 > > cpu: in SMP pthread_cancel occasionally deadlock > > In smp when cpu0 calls up_cpu_resume to release the cpu1 lock, another locked cpu1 did not execute immediately, > and soon cpu0 called up_cpu_resume again, now cpu1 unable to respond to the interrupt at this time, resulting in a deadlock. > Our solution is to restore cpu1 execution from asynchronous to synchronous to ensure that cpu1 is restored. > > Signed-off-by: hujun5 <[email protected]> > ``` The deadlock problem caused by up_cpu_resume widely exists in the SMP mode. My patch only fixes the problem under the arm64 architecture, and other architecture repair methods are similar -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
