Skip to content

Conversation

adamkondraciuk
Copy link
Contributor

…d state

Add new idle state with cache retention enabled.

Upstream PR #: 95474

case 0:
/* Substate for idle with cache powered on - not implemented yet. */
break;
case 1: /* Substate for idle with cache retained - not implemented yet. */
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this comment /* Substate for idle with cache retained - not implemented yet. */ can be changed - your are implementing it now :)

@adamkondraciuk adamkondraciuk force-pushed the NRFX-8180-idle-with-cache-retained branch from 8731bba to 39e4fd1 Compare September 6, 2025 21:12
@kl-cruz kl-cruz force-pushed the NRFX-8180-idle-with-cache-retained branch from 39e4fd1 to c37e50e Compare September 16, 2025 07:12
@nordic-segl
Copy link
Contributor

Could You please rebase this PR? CI is failing...

@adamkondraciuk adamkondraciuk force-pushed the NRFX-8180-idle-with-cache-retained branch 2 times, most recently from 6e33c76 to 7a24992 Compare September 24, 2025 08:43
@nordic-segl
Copy link
Contributor

Commit tags check fails because:

  1. This [nrf fromlist] commit was merged to NCS
    cdc11bd
    while it's still open in upstream
    arch: Allow to specify memory for S2RAM resume zephyrproject-rtos/zephyr#95914

  2. There is [nrf ooup] commit in NCS
    a41a631

adamkondraciuk and others added 6 commits October 6, 2025 11:37
…d state

Add new idle state with cache retention enabled.

Signed-off-by: Adam Kondraciuk <[email protected]>
(cherry picked from commit 6f7a183)
Add the definition of pm_s2ram_stack memory region for nRF54H20.

Upstream PR #: 95914

Signed-off-by: Tomasz Chyrowicz <[email protected]>
(cherry picked from commit c274834)
Added support for hardening decision on resume from
S2RAM by MCUboot bootloader.
Application sets additional variable to MCUBOOT_S2RAM_RESUME_MAGIC
which allows the bootloader to doublecheck.

Signed-off-by: Andrzej Puzdrowski <[email protected]>
(cherry picked from commit d4bb1c6)
MCUBOOT requires LTO to be enabled, while using code relocation
forces switching it off. When `__ramfunc` is used, LTO can also
be used. Then the `cache_retain_and_sleep` function will execute
properly, but a bit slower.

Upstream PR #:

Signed-off-by: Adam Kondraciuk <[email protected]>
@adamkondraciuk adamkondraciuk force-pushed the NRFX-8180-idle-with-cache-retained branch from ae840f8 to 6ae2bac Compare October 6, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants