[nrf fromtree] Device runtime PM fixes#4096
Merged
Merged
Conversation
nika-nordic
approved these changes
May 26, 2026
8043695 to
be669d8
Compare
NordicBuilder
added a commit
to NordicBuilder/sdk-nrf
that referenced
this pull request
May 28, 2026
Automatically created by action-manifest-pr GH action from PR: nrfconnect/sdk-zephyr#4096 Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
be669d8 to
6277f44
Compare
NordicBuilder
added a commit
to NordicBuilder/sdk-nrf
that referenced
this pull request
May 28, 2026
Automatically created by action-manifest-pr GH action from PR: nrfconnect/sdk-zephyr#4096 Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
nordic-segl
approved these changes
Jun 1, 2026
mstasiaknordic
approved these changes
Jun 1, 2026
jaz1-nordic
approved these changes
Jun 1, 2026
6277f44 to
c030e51
Compare
NordicBuilder
added a commit
to NordicBuilder/sdk-nrf
that referenced
this pull request
Jun 1, 2026
Automatically created by action-manifest-pr GH action from PR: nrfconnect/sdk-zephyr#4096 Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
Add test that will check if PM device runtime can handle safely a case where user is calling put and get API from the thread context and device is self-managing itself calling PM device runtime API from an interrupt context. Test is failing and scenario is fixed by the following commit. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no> (cherry picked from commit 488165deadd8f52723cf475ea1439fde74ab70b1)
…ple contexts Add early exist to the suspend function if suspending client is not the last one. It fixes the case where user calls put function from the thread context and it gets interrupted by the device interrupt where another asynchronous put is called. In that case, in the interrupt context the call will return error as semaphore cannot be taken and reference counting gets broken. By adding an early exit if context is not the last one, we ensure that only last client executes suspending procedure. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no> (cherry picked from commit 46e5ba3732f48ee9a903239a854079fc04f7b3fa)
c030e51 to
685a58d
Compare
NordicBuilder
added a commit
to NordicBuilder/sdk-nrf
that referenced
this pull request
Jun 2, 2026
Automatically created by action-manifest-pr GH action from PR: nrfconnect/sdk-zephyr#4096 Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
NordicBuilder
added a commit
to NordicBuilder/sdk-nrf
that referenced
this pull request
Jun 3, 2026
Automatically created by action-manifest-pr GH action from PR: nrfconnect/sdk-zephyr#4096 Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
This file contains hidden or 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
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.
PR fixes a potential race condition if PM device runtime is called from multiple preemptable contexts.