-
Notifications
You must be signed in to change notification settings - Fork 636
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
[nrf fromlist] soc: nordic: nrf54h20: Add LRC around idle #2032
Conversation
4ea4b03
to
3067d97
Compare
3067d97
to
ace7017
Compare
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.
The resource usage conflict with clock_control seems to be still in place. Have a look at these functions:
https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/clock_control/clock_control_nrf2_common.c#L169-L198
8c408a5
to
ab8772c
Compare
b1fca21
to
812b4f9
Compare
812b4f9
to
3c6199f
Compare
b401917
to
ccc5a6c
Compare
How about overlays here ? Maybe those states could be defined in DTS instead? |
Yes, all power states should be defined in the .soc device tree files. Not in the sample overlays. |
@nordic-segl did that here and has his name forever tied to nrf54h20 power management ❤️ The way the idle state is defined there will mean that any |
Then I would consider modifying this a little:
This way the power management decisions are explicit and clear. You don't need to get expertise "What happens when the current residency is lower than defined for any power state?" |
40ce7fe
to
2fa9629
Compare
Zephyr doc describes such behavior very clearly here . Does it make sense to redefine those states which would behave exactly as described in Zephyr doc? That is a bit confusing. Also it introduces additional overhead for the simplest power states. IMO even |
2fa9629
to
daa18df
Compare
Ok, I wasn't aware it is a rule in Zephyr. Then I'm fine with keeping the power states set limited to
|
daa18df
to
a6c7061
Compare
6b16788
to
1789fb0
Compare
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.
Duplicated power states definition needs to be remove from https://github.com/nrfconnect/sdk-nrf/tree/main/tests/benchmarks/multicore
at PR which updates into sdk-nrf.
0232094
to
32e680e
Compare
Due to the possibility of simultaneous accesess to LRCCONF registers, additional management is required. Upstream PR: zephyrproject-rtos/zephyr#79067 Signed-off-by: Adam Kondraciuk <[email protected]>
Add `idle` and `s2ram` power states for nRF54H20 cpuapp and cpurad. Also the substate `idle_cache_disable` added. Upstream PR: zephyrproject-rtos/zephyr#79067 Signed-off-by: Adam Kondraciuk <[email protected]>
32e680e
to
81d1d76
Compare
Add LRC domain power management around idle. The Fast Clock Domain needs to be forced-on during CPU idle. Also the force needs to be disabled on idle-exit.