Skip to content

Conversation

@anchao
Copy link
Contributor

@anchao anchao commented Oct 24, 2024

Summary

arm/armv8-r: fix unable to switch context in ISR context

Regression by #13651:

| commit 35c8c80a00a99ff0e19d51eaa74165bd830a36f8
| Author: ligd <liguiding1@xiaomi.com>
| Date:   Fri Jul 26 23:14:13 2024 +0800
|
| arch: change nxsched_suspend/resume_scheduler() called position

Signed-off-by: chao an anchao@lixiang.com

Impact

N/A

Testing

CI-CHECK

Regression by:
| commit 35c8c80
| Author: ligd <liguiding1@xiaomi.com>
| Date:   Fri Jul 26 23:14:13 2024 +0800
|
| arch: change nxsched_suspend/resume_scheduler() called position

Signed-off-by: chao an <anchao@lixiang.com>
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small labels Oct 24, 2024
@anchao anchao requested review from GUIDINGLI and acassis October 24, 2024 13:53
Copy link
Contributor

@GUIDINGLI GUIDINGLI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SMP is another questions, so you should split to another patch or PR

@anchao
Copy link
Contributor Author

anchao commented Oct 25, 2024

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.

@anchao
Copy link
Contributor Author

anchao commented Oct 25, 2024

@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

@xiaoxiang781216 xiaoxiang781216 merged commit ea4c4ef into apache:master Oct 25, 2024
@GUIDINGLI
Copy link
Contributor

@anchao
Why NOT two patches fix two questions ?

@anchao
Copy link
Contributor Author

anchao commented Oct 28, 2024

@anchao Why NOT two patches fix two questions ?

@GUIDINGLI #14514 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants