-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sched/semaphore: fix priority boost restoration for priority inheritance #6318
Conversation
fa71756
to
739356c
Compare
@pkarashchenko please include more details about the issue you are trying to fix |
The issue is #6310 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see how the priority is boosted but I don't see how it is restored. It would be helpful to have an explanation of how this works...
2a98a68
to
8494203
Compare
8494203
to
d8a2cd7
Compare
afe8c96
to
c5c0773
Compare
c5c0773
to
ba8d32d
Compare
Sadly, no joy with Although I am beginning to wonder if the problem is not in priority inheritance, but in something else that is manifested because of conditions created in the priority inheritance test. Below is the log.
|
When you test with stm32f4, if the test passes, it will be a good idea to compare defconfig and see if there are any differences that give a clue... |
d5d7208
to
36694c3
Compare
@masayuki2009 @davids5 maybe you have some boards and can run ostest with priority inheritance enabled? |
Crashing here too: https://pastebin.com/raw/VCGzC6kN |
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
36694c3
to
b64bd00
Compare
@hartmannathan I just successfully ran ostest on stm32f4discovery board. Here is a |
Finally I was managed to catch the crash with next config. I was able to identify that if |
@hartmannathan @acassis here is a fix of the crash apache/nuttx-apps#1333 |
Kudos for catching that! I am currently traveling and expect to be back at the lab on Thursday or Friday. Unfortunately that means I will not be able to test it because I don't have real hardware, and only occasional connectivity. I don't know whether you'd like to wait that long to merge it; if you and @acassis feel comfortable with it now, then feel free to merge it and I'll test it anyway when I get back just to make sure... |
The PR is here for quite a long time, so waiting one more week should not be a problem unless other reviewers want to speedup merging of a solution. |
The latest PR now works with |
I also confirm it worked fine! Merging! |
Log test ESP32 here: https://pastebin.com/raw/hskcVcTP |
@pkarashchenko Finally got back and was able to test. Happy to report the test passes on tm4c129e-launchpad:ostest with priority inheritance enabled! |
Thank you for all your work on this! |
since CONFIG_SEM_NNESTPRIO is removed by: apache/nuttx#6318 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
since CONFIG_SEM_NNESTPRIO is removed by: apache/nuttx#6318 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
since CONFIG_SEM_NNESTPRIO is removed by: apache/nuttx#6318 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Summary
Fix priority boost restoration in case of priority inheritance
Details in #6310
Impact
Improve priority inheritance. Reduce size of TCB in case is priority inheritance is enabled
Testing
Priority inheritance ostest pass on SAMe70-QMTECH and STM32F4Discovery boards