xiaoxiang781216 commented on PR #10496:
URL: https://github.com/apache/nuttx/pull/10496#issuecomment-1763059015

   > This operation causes a deadlock because of the critical section of 
[`esp32s3_phy_enable`](https://github.com/apache/nuttx/blob/1989749850eff1b57bf543983ddffbdc8307d071/arch/xtensa/src/esp32s3/esp32s3_wireless.c#L468).
 The CPU pause will hang 
[here](https://github.com/apache/nuttx/blob/1989749850eff1b57bf543983ddffbdc8307d071/arch/xtensa/src/common/xtensa_cpupause.c#L196):
 not because of the CPU pause operation (the other CPU was already resumed), 
but because this `enter_critical_section` will keep looping in 
[`irq_waitlock`](https://github.com/apache/nuttx/blob/1989749850eff1b57bf543983ddffbdc8307d071/sched/irq/irq_csection.c#L123)
 because it can't acquire the spinlock (owned by `esp32s3_phy_enable`).
   > 
   
   Do you handle up_cpu_pausereq in arch/chip specific code correctly?


-- 
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