You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "anchao (via GitHub)" <gi...@apache.org> on 2024/10/24 11:49:19 UTC

[PR] arm/armv8-r: fix unable to switch context in ISR context [nuttx]

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

   ## Summary
   
   arm/armv8-r: fix unable to switch context in ISR context
   
   Regression by:
   | commit 35c8c80a00a99ff0e19d51eaa74165bd830a36f8
   | Author: ligd <li...@xiaomi.com>
   | Date:   Fri Jul 26 23:14:13 2024 +0800
   |
   | arch: change nxsched_suspend/resume_scheduler() called position
   
   Signed-off-by: chao an <an...@lixiang.com>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   CI-CHECK
   
   


-- 
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] arm/armv8-r: fix unable to switch context in ISR context [nuttx]

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

   @GUIDINGLI @hujun260 
   
   After your and hujun's changes:
   1. any irq_dispatch() call needs to properly refresh tcb to check if context switch has occurred
   2. The trace location also needs to be updated carefully
   3. new current registers must be update and return from ISR.
   
   but your previous changes completely missed on some arm-specific chips:
   
   
   ![image](https://github.com/user-attachments/assets/5df7ea92-1faa-4898-839d-e020e9869fb0)
   


-- 
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] arm/armv8-r: fix unable to switch context in ISR context [nuttx]

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


-- 
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] arm/armv8-r: fix unable to switch context in ISR context [nuttx]

Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on code in PR #14498:
URL: https://github.com/apache/nuttx/pull/14498#discussion_r1815039129


##########
arch/arm/src/armv8-r/arm_doirq.c:
##########
@@ -58,7 +58,9 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
    * and we will use this_task(). Therefore, it cannot be overridden.
    */
 
+#ifdef CONFIG_SMP

Review Comment:
   no, this is regression of arm_doirq()



-- 
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] arm/armv8-r: fix unable to switch context in ISR context [nuttx]

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

   > The SMP is another questions, so you should split to another patch or PR
   
   You should check your submission carefully if which have any rookie mistakes.


-- 
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] arm/armv8-r: fix unable to switch context in ISR context [nuttx]

Posted by "GUIDINGLI (via GitHub)" <gi...@apache.org>.
GUIDINGLI commented on code in PR #14498:
URL: https://github.com/apache/nuttx/pull/14498#discussion_r1815001447


##########
arch/arm/src/armv8-r/arm_doirq.c:
##########
@@ -58,7 +58,9 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
    * and we will use this_task(). Therefore, it cannot be overridden.
    */
 
+#ifdef CONFIG_SMP

Review Comment:
   split to another PR



-- 
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] arm/armv8-r: fix unable to switch context in ISR context [nuttx]

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

   @anchao 
   Why NOT two patches fix two questions ?


-- 
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] arm/armv8-r: fix unable to switch context in ISR context [nuttx]

Posted by "GUIDINGLI (via GitHub)" <gi...@apache.org>.
GUIDINGLI commented on code in PR #14498:
URL: https://github.com/apache/nuttx/pull/14498#discussion_r1815199524


##########
arch/arm/src/armv8-r/arm_doirq.c:
##########
@@ -58,7 +58,9 @@ uint32_t *arm_doirq(int irq, uint32_t *regs)
    * and we will use this_task(). Therefore, it cannot be overridden.
    */
 
+#ifdef CONFIG_SMP

Review Comment:
   Why not, this not the introduce by https://github.com/apache/nuttx/pull/13651/files#diff-723f44e76d5ebc519459ee93d6d0e42a7cea30ad0343b61e3ab48a491f2aaf58



-- 
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] arm/armv8-r: fix unable to switch context in ISR context [nuttx]

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

   > @anchao Why NOT two patches fix two questions ?
   
   @GUIDINGLI  https://github.com/apache/nuttx/issues/14514 :)


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