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

[PR] stm32h7/serial: Do not wait on TXDMA semaphore [nuttx]

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

   ## Summary
   
   If using flow control with a high CTS the thread may be blocked forever on the second transmit attempt due to waiting on the txdma semaphore. The calling thread can then never make progress and release any resources it has taken, thus may cause a deadlock in other parts of the system.
   
   The implementation differs in behavior from interrupt-driven TX and the STM32F7 TXDMA . It should not implicitly wait on a taken semaphore but return immediately and let the upper layers decide on what to do next.
   
   See a more detailed analysis here: https://github.com/PX4/PX4-Autopilot/pull/22302
   
   cc @davids5 


-- 
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] stm32h7/serial: Do not wait on TXDMA semaphore [nuttx]

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


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