Skip to content

Nrf92 sysoff #2773

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
wants to merge 8,739 commits into
base: main
Choose a base branch
from
Draft

Nrf92 sysoff #2773

wants to merge 8,739 commits into from

Conversation

paliimat
Copy link

WIP

alxelax and others added 30 commits March 27, 2025 15:01
…targets.

Mesh currently works with trusted storage on real targets. Until secure
storage is supported by default disable it.

Signed-off-by: Aleksandr Khromykh <[email protected]>
…es support

Both the TMAP kconfig file and public header file defined
which roles were supported.

The Kconfig file options were recently added and were more
up to date (and correct), and allows for other Kconfig files
to use these values, thus allowing for more flexibility when
implementing applications.

Signed-off-by: Emil Gydesen <[email protected]>
(cherry picked from commit 48ac31c)
Extend nrf saadc device driver with pm device runtime support.

To preserve previous behavior:

* if pm device is disabled, saadc is resumed on sampling start
  and suspended when sampling done.
* if pm device is enabled only, saadc does nothing on
  sampling start/stop. its resumed on init.
* if pm device runtime is enabled, saadc is got on
  sampling start, and put on sampling stop.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 96c3cd6)
Set pm device runtime runtime auto flag to ensure saadc instances
are initialized correctly if pm device runtime is used.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit d01c93c)
…peration_t`

In `db_hash_setup()` the state object for MAC operations was initialized
using `psa_mac_operation_init()`. This function was not always optimized
or inlined.

A way to reduce stack usage is to use `memset()` and set the object to
0. This is one of the option documented to initialize
`psa_mac_operation_t` object.

Upstream PR #: 86094

Signed-off-by: Théo Battrel <[email protected]>
… is coop

The main thread, if configured with coop priority (don't do that :D)
breaks gpd since it has a non yielding while loop (also don't do that)

Add an explicit yield() to allow other threads to run if main or other
threads use gpd with coop prio.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 7e0e583)
…round

Pend until requested event is set before clearing it. Without that
check event could be cleared too early and APP core is not waken up.

Upstream PR #: 86249

Signed-off-by: Krzysztof Chruściński <[email protected]>
Remove the closed loop mode implementation for the fll16m clock.
Closed loop causes a hardware bug resulting in increased current
consumption if SoC experiences high, but within spec, temperatures.

Upstream PR #: 86339

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
…te fll16m

Update the nrf clock control test suite to not attempt to set the
removed closed loop mode of the fll16m clock.

Upstream PR #: 86339

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
…st_all_stats_usage

Improve robustness of test_all_stats_usage test. Test was relying on a
fact that system did not go to idle before this test is run. It means
that it was assuming that it will be the first test which might not be
true. Additionally, on some targets there might be some idle waits
during system boot. Test is adjusted to validate gathered statistics
with an assumption that there might have been idle period prior to the
test.

Upstream PR #: 86139

Signed-off-by: Krzysztof Chruściński <[email protected]>
…mote core

When decoding logs from a remote core with memory that APP can
access, wrong address of an array with string addresses was used.
Log message contains index of a string and APP strings array was
used instead of remote core. Extend STMESP logging so that address
of string array of a remote core is send during startup to the APP
and APP is using this array to decode strings from remote cores.
Bug applies only to PPR and FLPR as APP has no access to RAD memory.

Upstream PR #: 86242

Signed-off-by: Krzysztof Chruściński <[email protected]>
Add `IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE` config
and parametrize its value depending on the optimization level.

Upstream PR #: 86103

Signed-off-by: Adam Kondraciuk <[email protected]>
This reverts commit 28bd478.

This commit can be reverted as the cause of test failure
has been removed in ipc service by increasing workqueue stack size.

Upstream PR #: 86103

Signed-off-by: Adam Kondraciuk <[email protected]>
…0 unused RAM

Code is now incorporated into SystemInit() function of MDK 8.69.1,
which is integrated within nrfx 3.10.0.

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit 8b495dc)
nRF5340 SoC supports nrfx RAM control helper.

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit c61a517)
nRF5340 SoC supports retained_mem driver.
Add test configuration confirming this.

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit 34b14bb)
…for nRF5340 DK

nRF5340 SoC supports retained_mem driver, which can be
utilized for RAM retention in System OFF sleep mode.
Add sample configuration confirming this.

Signed-off-by: Nikodem Kastelik <[email protected]>
(cherry picked from commit 50f6142)
nrf-squash! [nrf noup] tests: drivers: mspi: api: Add nRF54L15 overlay file

Fix the test for nRF54L15 after changing definition of external
flash in DTS.

Signed-off-by: Magdalena Pastula <[email protected]>
…tem workqueue

The buffer allocation in conn.c will trigger warnings if we try to use
anything else than K_NO_WAIT for the timeout when called from within the
system workqueue.

The calls in l2cap.c and att.c which may pass non-zero timeouts already
have proper handling for failed allocations, so make sure we use K_NO_WAIT
to avoid unnecessary warnings from conn.c.

Signed-off-by: Johan Hedberg <[email protected]>
Signed-off-by: Aleksandr Mirlenko <[email protected]>
(cherry picked from commit 05b16b9)
When a LD sends an ic-msg to SCFW - it happens that sometimes that SCFW
does not handle the request.
For the moment the problem is solved by sending a second vevif event
shortly after the initial request.

Upstream PR #: 86455

Signed-off-by: Maciej Meijer <[email protected]>
…54 devices

Extend spi_loopback test on nRF54 chip family.
Add configurations to run this test at 8/16/32 MHz.

Upstream PR #: 86010

Signed-off-by: Sebastian Głąb <[email protected]>
Increase value of `CONFIG_BTTESTER_BTP_CMD_THREAD_STACK_SIZE` for
nrf54L15 board to avoid stack overflow.

Remove the config in the Mesh overlay as it's was also added for nrf54L15.

Signed-off-by: Théo Battrel <[email protected]>
(cherry picked from commit 75885e8)
…rt anomaly

Add workaround to HFCLK start and stop in nrf54l. In future workaround
will be in nrfx driver.

Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit 2cb2cf2)
…Cracen driver on nRF54H20

A larger stack is needed to accomodate the Cracen driver.

Signed-off-by: Gordon Klaus <[email protected]>
nrf-squash! [nrf noup] include: net: add NCS extensions

Removes leftover socket options `TLS_SESSION_CACHE_DISABLED`
and `TLS_SESSION_CACHE_ENABLED`. These exist already
in `socket.h`.

Signed-off-by: Mirko Covizzi <[email protected]>
nrf-squash! [nrf noup] include: net: add NCS extensions

Adds a base value for NCS specific socket options to
prevent overlaps with Zephyr's socket options.

Signed-off-by: Mirko Covizzi <[email protected]>
Change number of IRQ parameter for nRF54L09 devices.

Upstream PR #: 86350

Signed-off-by: Adam Kondraciuk <[email protected]>
…ting

When left-shifting '1' by 31, the result is undefined. This is
something ASAN detects.

Solve this by explicitly defining that the integer is unsigned.

Upstream PR #: 86624

Signed-off-by: Rubin Gerritsen <[email protected]>
Added support for nRF54L20 FLPR core in devicetree.

Upstream PR #: 79355

Signed-off-by: Michał Stasiak <[email protected]>
Added support for nRF54L20 FLPR core in soc dir.

Upstream PR #: 79355

Signed-off-by: Michał Stasiak <[email protected]>
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots
7.4% Duplication on New Code (required ≤ 3%)
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment