You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "tmedicci (via GitHub)" <gi...@apache.org> on 2023/05/22 19:50:33 UTC

[GitHub] [nuttx] tmedicci opened a new pull request, #9361: esp32s3: add dedicated interrupt stack for ESP32-S3 by default

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

   ## Summary
   
   This config prevents crashes due to the commit 6be363f (introduced by https://github.com/apache/nuttx/pull/9292), which fixes a race condition in multi-threaded write/read of the serial driver, but increases stack size.
   
   ## Impact
   
   Avoids stack overflow by creating a separate stack for interrupts (which is also a good practice, since the arch supports it and it's already used by the `smp` defconfig)
   
   ## Testing
   
   Internal CI testing + esp32s3:nsh running commands in the serial console (like `ps`).


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


[GitHub] [nuttx] tmedicci commented on pull request #9361: esp32s3: add dedicated interrupt stack for ESP32-S3 by default

Posted by "tmedicci (via GitHub)" <gi...@apache.org>.
tmedicci commented on PR #9361:
URL: https://github.com/apache/nuttx/pull/9361#issuecomment-1559101209

   Considering the `esp32-devkitc:nsh` with `CONFIG_STACK_COLORATION=y`, we have:
   
   **Before https://github.com/apache/nuttx/pull/9292**:
   
   ```
   nsh> ps                                                                                                               
     PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK           STACK   USED  FILLED COMMAND
       0     0   0 FIFO     Kthread N-- Ready              0000000000000000 003040 000688  22.6%  Idle Task
       1     1 100 RR       Task    --- Running            0000000000000000 001976 001600  80.9%! nsh_main
   ```
   
   **After https://github.com/apache/nuttx/pull/9292**:
   
   ```
   nsh> ps
     PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK           STACK   USED  FILLED COMMAND
       0     0   0 FIFO     Kthread N-- Ready              0000000000000000 003040 000768  25.2%  Idle Task
       1     1 100 RR       Task    --- Running            0000000000000000 001976 001920  97.1%! nsh_main
   ```


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


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #9361: esp32s3: add dedicated interrupt stack for ESP32-S3 by default

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #9361:
URL: https://github.com/apache/nuttx/pull/9361#issuecomment-1558559864

   @tmedicci is strange that https://github.com/apache/nuttx/pull/9292 could increase the consumption of stack size.


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


[GitHub] [nuttx] xiaoxiang781216 commented on pull request #9361: esp32s3: add dedicated interrupt stack for ESP32-S3 by default

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #9361:
URL: https://github.com/apache/nuttx/pull/9361#issuecomment-1559178990

   > > @tmedicci is strange that #9292 could increase the consumption of stack size.
   > 
   > Doesn't it make sense since it's now looping [6be363f#diff-703cb4a77befaa2ae94d7ad605b536fc1219cfa374afbf18db4f3c5d82adbe16R1789-R1792](https://github.com/apache/nuttx/commit/6be363ff35ffef41d6b0b2c46cd860d061f9ee7f#diff-703cb4a77befaa2ae94d7ad605b536fc1219cfa374afbf18db4f3c5d82adbe16R1789-R1792) ?
   
   but the loop is very simple, the addition consumption should be very small. It's very likely that nxsem_post consume the additional stack space.


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


[GitHub] [nuttx] xiaoxiang781216 merged pull request #9361: esp32s3: add dedicated interrupt stack for ESP32-S3 by default

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


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


[GitHub] [nuttx] tmedicci commented on pull request #9361: esp32s3: add dedicated interrupt stack for ESP32-S3 by default

Posted by "tmedicci (via GitHub)" <gi...@apache.org>.
tmedicci commented on PR #9361:
URL: https://github.com/apache/nuttx/pull/9361#issuecomment-1559094519

   > @tmedicci is strange that #9292 could increase the consumption of stack size.
   
   Doesn't it make sense since it's now looping https://github.com/apache/nuttx/commit/6be363ff35ffef41d6b0b2c46cd860d061f9ee7f#diff-703cb4a77befaa2ae94d7ad605b536fc1219cfa374afbf18db4f3c5d82adbe16R1789-R1792 ?


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