Skip to content

[nrf fromlist] manifest: hal_nordic update #2409

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

Open
wants to merge 1,004 commits into
base: main
Choose a base branch
from

Conversation

JuhaKortesalmi
Copy link

NRFS support for control P11 power switch.

Upstream PR #: 80657

SeppoTakalo and others added 30 commits December 5, 2024 12:16
Return the -errno when zsock_sendto() or zsock_recvfrom() fails, so
rest of the code can deal with return values, instead of separately
comparing errno and return value.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 48434a3)
(cherry picked from commit bd97c51)
…esponding with Ack

Even if we receive duplicate confirmable message, we should still
respond with the Ack. Just don't deliver the second callback.

This is achieved by moving the MID deduplication to after Ack handling.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit c0eb260)
(cherry picked from commit f52d411)
…ted to callback

When the client fails when parsing the response and we stop proceeding,
we should report that to the application.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit f72d634)
(cherry picked from commit 1d030fc)
poll() only for sockets that have traffic ongoing or have some lifetime
left.
On socket failures during a poll(), stop listening for the socket.
Application can recover by reconnecting the socket.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit f0c6efe)
(cherry picked from commit bb3b737)
Add a new API to cancel just one, or mathing requests,
instead of cancelling all ongoing requests.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit b3f3bce)
(cherry picked from commit 322f1fc)
…wM2M context

The pull context LwM2M client's set_socketoptions callback is currently
unused and can't be set by a user. Add a public API to set the
pull context's client's set_socketoptions callback.

Signed-off-by: Andi Gerl <[email protected]>
(cherry picked from commit 9c24214)
(cherry picked from commit 5682cb7)
Use real-time scheduler with 100x speedup, so timeouts are
accurate enough, but still fast for tests to run.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 34a6d5a)
(cherry picked from commit 0054b8b)
Refactor tests to be a bit shorter, so its easier to read
and copy-paste for a new testcase

All idioms like "ret = somecall(); zasser.." are replaced with just
"zassert_ok(some_call());"

Commonly used structures are global and initialized once.

To avoid cross-test side-effects, suite_after-function is added
to cleanup all requests.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit d64748c)
(cherry picked from commit 142a2e7)
Add test for sending multiple non-confirmable requests.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 23345d2)
(cherry picked from commit 7ce2b50)
When waiting for response after receiving the empty Ack, client
actually used way too timeout.
CoAP timeout only holds the timeout value in ms. t0 is the starting time.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 6c16966)
(cherry picked from commit bbd0098)
Non-confirmable CoAP requests need lifetime tracking as well
so we can free the structure after a timeout.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit 2066cf6)
(cherry picked from commit e102aff)
CoAP client does not modify any of the members, so
change all pointers to const.

Signed-off-by: Seppo Takalo <[email protected]>
(cherry picked from commit bc4f026)
(cherry picked from commit f995b7d)
…imeouts

Introduced few Kconfigs that allow to change default values
of MLE child timeout and child supervision timeouts.

Upstream PR #: 82209

Signed-off-by: Kamil Kasperczyk <[email protected]>
(cherry picked from commit 6e98d27)
…onnected

Allow `nrfs_backend_send` to push early requests into the message queue,
but defer sending them until a connection is established, at which point
the queue will be flushed. This benefits asynchronous code by making it
optional to call `nrfs_backend_wait_for_connection` before using the
nrfs service API, which is already non-blocking.

Signed-off-by: Grzegorz Swiderski <[email protected]>
(cherry picked from commit c120f4f)
(cherry picked from commit 4efcb15)
Extended hardware map to share a single board between variants.
To run tests for different variants on the same board
without re-configuring the hardware map file for each variant,
one can use a `platform` atribute as a list of names.

Signed-off-by: Grzegorz Chwierut <[email protected]>
(cherry picked from commit e0bd7e7)
(cherry picked from commit 6722541)
Fix the expected pattern randomly matched to coverage.json contents
ordered differently at test_coverage_basedir().

Signed-off-by: Dmitrii Golovanov <[email protected]>
(cherry picked from commit 27456ed)
(cherry picked from commit 2149857)
No need to pull babblesim and nrf_hw_models when doing twister testing.

Signed-off-by: Anas Nashif <[email protected]>
(cherry picked from commit cfd5469)
(cherry picked from commit b476270)
Add an option for platforms or forks to provide their own hostap
compatible crypto implementation. This may include proprietary or
platform specific stuff that may or may not be upstreamed to Zephyr.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit bbfb546)
(cherry picked from commit 53f5e6d)
The CONFIG_ prefix should be removed when passing to OSAL code.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 4ae6520)
(cherry picked from commit 7eda046)
Pass passive scan and offloaded raw tx feature flags to OSAL.

Signed-off-by: Kapil Bhatt <[email protected]>
(cherry picked from commit 62e06a5)
(cherry picked from commit a4ca4d7)
Following the naming convention add an underscore and update path in the
maintainers file too.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 139ce48)
(cherry picked from commit 5c64e25)
The OSAL code now lives in it's own repo nrf_wifi.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit f7dc9f8)
(cherry picked from commit a80abfa)
This is a Zephyr shim for the nrf-wifi module.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 180df66)
(cherry picked from commit 6f2df15)
This is now taken care by the Zephyr module shim.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 459f972)
(cherry picked from commit 5cc7edf)
The shim files should be part of the Zephyr module directory within
Zephyr, as they are coupled with the module implementation which os OS
agnostic.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit da26d02)
(cherry picked from commit c967e32)
The blobs are now part of nrf_wifi module, and remove the manual check
and add verifying the blobs and their integrity using helper function.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit b8cab9e)
(cherry picked from commit f5f8a84)
For the C sources the offloaded raw TX mode wasn't considered and else
case picks up system mode files causing build issues.

Upstream PR #: 82335

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit f7d81fe)
During cherry-pick the directory wasn't renamed.

Upstream PR #: 82335

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 514167e)
Fix the missing define to OSAL code.

Upstream PR #: 82335

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 2d0308e)
This helps maintaining of various modes in nRF Wi-Fi driver.

Upstream PR #: 82335

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit bc80cbd)
nordic-krch and others added 24 commits December 18, 2024 10:13
Add 128 MHz clock source and use it for uart00. Baudrate setting
must be adjusted based on uart clock source so without this
change there is wrong baudrate on uart00.

Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit 923d313)
Do not delete clocks for the bsim target. Clocks are referenced
by peripherals and it can be used to get frequency that clocks
the peripheral.

Upstream PR #: 82901

Signed-off-by: Krzysztof Chruściński <[email protected]>
Add clock source to timers which indicates maximum frequency of
the timer instance.

Upstream PR #: 82901

Signed-off-by: Krzysztof Chruściński <[email protected]>
nrf-squash! [nrf noup] hostap: Avoid double-definition of base64 AP

This reverts commit 4bbe53c.

The file definitions have been modified to include "hostap" namespace,
so, this file is must for build.

Signed-off-by: Chaitanya Tata <[email protected]>
With recent SDSC bundles, 54H fails the app core boot in case of a
unsupported GPIO in the UICR.

As Wi-Fi SR co-existence on nRF54H20DK is not yet supported, remove this
GPIO for 54H. This will be fixed properly once co-existence is
revisited.

Upstream PR #: 83173

Signed-off-by: Chaitanya Tata <[email protected]>
The GPIOs will vary depending on the platform.

Upstream PR #: 83173

Signed-off-by: Chaitanya Tata <[email protected]>
Helps in understanding this switch usage better.

Upstream PR #: 83173

Signed-off-by: Chaitanya Tata <[email protected]>
Add the feature flag and required GPIO in DTS as dependencies to avoid
build failures.

Upstream PR #: 83173

Signed-off-by: Chaitanya Tata <[email protected]>
Commit adds `diag transmit` used for transmission IEEE802154 packets
in specific amount and interval.

Signed-off-by: Przemyslaw Bida <[email protected]>
(cherry picked from commit 1512ed2)
… APIs

Add zero latency interrupt safe APIs to allow requesting and
releasing HFXO. These will be used from components running
in zero latency interrupt context, like the bluetooth stack.

Co-authored-by: Piotr Pryga <[email protected]>

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Signed-off-by: Piotr Pryga <[email protected]>
(cherry picked from commit 2aec438)
Signed-off-by: Piotr Pryga <[email protected]>
…sr API

Implement the zero latency interrupt safe APIs to the HFXO clock
commonly used by the bluetooth stach from zero latency interrupt
context.

Co-authored-by: Piotr Pryga <[email protected]>

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Signed-off-by: Piotr Pryga <[email protected]>
(cherry picked from commit 73a45a7)
Signed-off-by: Piotr Pryga <[email protected]>
There were redundant code in full_irq_lock(), full_irq_unlock()
functions that supposed to be used when ZLI IRQs are disabled.
These functions are compiled in only when CONFIG_ZERO_LATENCY_IRQS
is set, hence the non-ZLI execution path was never included
in final binaries.

Signed-off-by: Piotr Pryga <[email protected]>
(cherry picked from commit 233095c)
Signed-off-by: Piotr Pryga <[email protected]>
Update the HW models module to:
fbc6e614686b69dfa56f9694350b9488cf83d3f7

Including the following:
fbc6e61 HW models: Fix a few Wextra warnings
b164f15 nrfx replacements: Fix a few Wextra warnings
1f02d3b UART 54: Correct UART22 name
3172fdb UART(E): Add new pty backend
3015405 UARTE FIFO backend: Fix comment and typos
c29727a doc: UARTE is now implemented for 54L
64d9cdf 54 UARTE: Add support for Address bit and configurable data size
3745647 UART: FIFO backend ignore irrelevant CONFIG bits
3a20c98 54 UARTE: Add MATCH functionality
bceda1b Int controller: Provide logic similar to SEVONPEND bit
e66584f Makefile: Add variable to pass arbitrary build options

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 8bc8ded)
Signed-off-by: Ilhan Ates <[email protected]>
…GRESS`

Fix discrepancy in reference management between calls to
`bt_l2cap_chan_ops.recv` when the application returns `-EINPROGRESS`.

There are two call sites, `l2cap_chan_le_recv_sdu` and
`l2cap_chan_le_recv`, that were inconsistent.

`l2cap_chan_le_recv_sdu` moves the reference, and this patch updates
`l2cap_chan_le_recv` to do the same.

This behavior is also now documented.

This bug has existed since the introduction of this feature in
3151d26.

Signed-off-by: Aleksander Wasaznik <[email protected]>
(cherry picked from commit 200de7c)
…rror

For ease of development, we should log the event as an error.

Signed-off-by: Aleksander Wasaznik <[email protected]>
(cherry picked from commit 70ad45d)
…ol destroy

This is needed for a test to catch a double-free.

Signed-off-by: Aleksander Wasaznik <[email protected]>
(cherry picked from commit 5f89a6b)
…00_00_00_00_`

This is shorthand for random static addresses. It's similar to
`bt_addr_le_from_str`, but is a macro that results in an object literal,
making it more versatile and less verbose.

This macro only gives access to the first 255 random static addresses,
but this ought to be enough addresses for testing.

Signed-off-by: Aleksander Wasaznik <[email protected]>
(cherry picked from commit abeca24)
The test implementation is based on a copy of the HFC multilink test.
The test verifies that the stack respects the reference counting of SDU
buffers when the L2CAP -EINPROGRESS feature is used.

Signed-off-by: Aleksander Wasaznik <[email protected]>
(cherry picked from commit 47325f8)
…uide docs for 4.1

This introduces the release notes and migration guide for 4.1.0 earlier
than we typically do, so that people have a placeholder to start adding
content as they line up pull requests for 4.1.
The two documents are currently orphan and not visible from the main
documentation as this would confuse users of 4.0.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit d342f9e)
Because the number of ACL RX buffers must be at least the number of
maximum connections plus one, increasing `CONFIG_BT_MAX_CONN` could
inadvertently lead to a build failure if the number of ACL RX buffers is
not also increased. This dependency may not be obvious to users.

To address this issue, this commit deprecates the
`CONFIG_BT_BUF_RX_COUNT` Kconfig symbol and computes the value in
`buf.h` using the new `BT_BUF_RX_COUNT` define. Note that the default
value and the minimum range value have been changed to 0 to "disable"
the option.

Additionally, to allow users to increase the number of ACL RX buffers,
this commit introduces the new `CONFIG_BT_BUF_RX_COUNT_EXTRA` Kconfig
symbol. The value of this symbol will be added to the computed value of
`BT_BUF_RX_COUNT`.

The configurations of tests and samples have been updated to reflect
these changes.

Signed-off-by: Théo Battrel <[email protected]>
(cherry picked from commit 66ff97e)
This allows to combine several types in a single value.

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit bd9a1ce)
…pool

The Bluetooth data buffer API currently lacks a mechanism to notify when
a buffer is freed in the RX pool. This limitation forces HCI drivers to
adopt inefficient workarounds to manage buffer allocation.

HCI drivers face two suboptimal options:

- Blocking calls: Use bt_buf_get_rx with K_FOREVER, which blocks the
  execution context until a buffer becomes available.
- Polling: Repeatedly call bt_buf_get_rx with K_NO_WAIT, which increases
  CPU load and reduces efficiency.

This commit introduces a callback mechanism that is triggered each time
a buffer is freed in the RX pool. With this feature, HCI drivers can:

- Call bt_buf_get_rx with K_NO_WAIT.
- Wait for the callback notification if a NULL buffer is returned,
  avoiding unnecessary polling.

The new callback improves efficiency by enabling event-driven behavior
for buffer management, reducing CPU overhead while maintaining
responsiveness.

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit c2488fd)
This commit adds a unit test that checks the freed buffer callback of
the bluetooth data buffer API.

Signed-off-by: Pavel Vasilyev <[email protected]>
(cherry picked from commit 0d06691)
NRFS support for control P11 power switch.

Upstream PR #: 80657

Signed-off-by: Juha Kortesalmi <[email protected]>
@NordicBuilder
Copy link
Contributor

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_nordic zephyrproject-rtos/hal_nordic@fae1542 zephyrproject-rtos/hal_nordic#239 zephyrproject-rtos/hal_nordic#239/files

Note: This message is automatically posted and updated by the Manifest GitHub Action.

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

Successfully merging this pull request may close these issues.