-
Notifications
You must be signed in to change notification settings - Fork 205
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
[DRAFT] Backport semaphore fixes #188
Draft
ThomasDebrunner
wants to merge
5
commits into
px4_firmware_nuttx-10.1.0+
Choose a base branch
from
backport-semaphore-fixes
base: px4_firmware_nuttx-10.1.0+
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[DRAFT] Backport semaphore fixes #188
ThomasDebrunner
wants to merge
5
commits into
px4_firmware_nuttx-10.1.0+
from
backport-semaphore-fixes
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit 24fe171.
Add a list in TCB to track all semphores the task held, so we can release all holders when exit, so nxsched_verify_tcb is unnecessary. Signed-off-by: Zeng Zhaoxiu <[email protected]>
Signed-off-by: Zeng Zhaoxiu <[email protected]>
1. The task which called nxsem_release_holder may not be a holder of the semaphore, counts of the holder would not be decreamented. This commit try to resolve the problem if there is only one holder. 2. Avoid counts overflow. Signed-off-by: Zeng Zhaoxiu <[email protected]>
Signed-off-by: Petro Karashchenko <[email protected]>
There probably is a typo in summary. The priority inheritance PR is apache/nuttx#6318 |
Thanks, updated |
@ThomasDebrunner Is this Additional change Needed as well? |
PX4BuildBot
pushed a commit
that referenced
this pull request
Aug 24, 2024
"net/netdev_upperhalf.c", line 133: warning #188-D: enumerated type mixed with another type total += netdev_lower_quota_load(lower, type); CC: dirent/lib_alphasort.c "spi/spi_transfer.c", line 83: warning #188-D: enumerated type mixed with another type SPI_SETMODE(spi, seq->mode); ^ Signed-off-by: guoshichao <[email protected]>
PX4BuildBot
pushed a commit
that referenced
this pull request
Aug 24, 2024
CC: irq/irq_initialize.c "ioexpander/gpio.c", line 386: warning #188-D: enumerated type mixed with another type *ptr = dev->gp_pintype; ^ Signed-off-by: guoshichao <[email protected]>
PX4BuildBot
pushed a commit
that referenced
this pull request
Aug 26, 2024
… warnings "/mnt/yang/qixinwei_cmake/nuttx/sched/sched/sched_removeblocked.c", line 58: warning #188-D: enumerated type mixed with another type tstate_t task_state = btcb->task_state; "/mnt/yang/qixinwei_cmake/nuttx/sched/sched/sched_setpriority.c", line 243: warning #188-D: enumerated type mixed with another type tstate_t task_state = tcb->task_state; Signed-off-by: yanghuatao <[email protected]>
PX4BuildBot
pushed a commit
that referenced
this pull request
Sep 19, 2024
CC: obstack/lib_obstack_printf.c "mmap/fs_rammap.c", line 126: warning #188-D: enumerated type mixed with another type enum mm_map_type_e type = (uintptr_t)entry->priv.p & 3; ^ Signed-off-by: guoshichao <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Backport of apache/nuttx#5171 and draft apache/nuttx#6318
Impact
This should resolve priority inheritance issues
Testing
Tested against adverse example. Not flight tested.