Commit graph

91341 commits

Author SHA1 Message Date
Emil Gydesen ede68ad5c0 tests: Bluetooth: CAP Commander Change Volume mute unittests
Adds unittests for the CAP COmmander Change Volume mute
procedure.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:25:26 -05:00
Emil Gydesen 341906a0fd tests: bsim: Bluetooth: CAP Commander Change Volume mute
Adds bsim test of the CAP Commander Change Volume mute
procedure.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:25:26 -05:00
Emil Gydesen b9360488f7 Bluetooth: CAP: Commander change volume mute procedure
Adds the CAP Commander Change Volume mute procedure.
This procedure changes the volume mute on one or more
CAP Acceptors.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:25:26 -05:00
Benjamin Cabé 074152a03d doc: Bump to Sphinx 7.1 and RTD theme 2.0
This moves to more recent versions of Sphinx and Read the Docs theme.
FWIW Sphinx 7.2.0 dropped support for Python 3.8 so we're stuck with 7.1
for now.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-02-25 20:56:40 -05:00
Pavel Vasilyev e30b7a84bc Bluetooth: Mesh: Enable CDP1 by default
CDP1 is mandatory to qualify a mesh device for mesh protocol v1.1.
The dependency on BT_MESH_MODEL_EXTENSIONS is removed because if a node
contains only base models (for example Generic OnOff Server), this API
will consume extra RAM bytes which won't be used.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2024-02-25 20:54:11 -05:00
Nguyen Minh Thien 8188be57d3 kernel: fix spelling errors
Fix spelling errors found in comment of the kernel source code.

Signed-off-by: Nguyen Minh Thien <nguyenmthien@live.com>
2024-02-25 20:53:37 -05:00
Marcin Niestroj 6aedc06982 sys: dlist: remove toolchain.h include
This header file is not used anywhere in the implementation, so drop it.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-02-25 20:52:45 -05:00
Jukka Rissanen ea189d5aee net: sockets: Do not start service thread if too little resources
If the CONFIG_NET_SOCKETS_POLL_MAX is smaller than what is needed
for the socket service API to work properly, then we should not
start the service thread as the service API cannot work and might
cause memory overwrite in ctx.events[] array.

Fixes #69233

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-02-25 20:52:18 -05:00
Marcin Niestroj 7c56ad67d4 samples: http_get: increase mbedTLS heap size
40k heap size is not enough and results in handshake errors:

  <err> net_sock_tls: TLS handshake error: -0x2700

Increasing it to 55k already works (when used with native_sim_64 and
offloaded sockets), but use 60k to get a bit more room for future.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-02-25 20:51:17 -05:00
Jukka Rissanen bf31b0985e drivers: ethernet: Disable drivers if tests are enabled
The network tests at tests/net use simulated network interfaces
and set CONFIG_NET_TEST to indicate that. If the config option
is set, then we do not want any extra Ethernet driver to
complicate the testing scenario so all external Ethernet
network interfaces should be disabled.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-02-25 20:50:42 -05:00
Peter Mitsis 51ae993c12 kernel: Update k_wakeup()
This commit does two things to k_wakeup():

1. It locks the scheduler before marking the thread as not suspended.
As the the clearing of the _THREAD_SUSPENDED bit is not atomic, this
helps ensure that neither another thread nor ISR interrupts this
action (resulting in a corrupted thread_state).

2. The call to flag_ipi() has been removed as it is already being
made within ready_thread().

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-02-25 20:50:03 -05:00
Sylvio Alves a79c54dc43 drivers: dac: esp32: fix clock control subsys argument
Current cfg->clock_subsys is passed as address and is
causing driver assertion.

Fixes #69198

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-02-25 20:49:01 -05:00
Jordan Yates 6510bd248a sensing: document missing parameter
Document a missing parameter on the `sensing_data_event_t` typedef.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2024-02-25 20:48:16 -05:00
Renato Soma 5bec53b73a drivers: sensor: tmag5273: cast value to int64_t
Cast val1 from sensor_value before multiplication in order to avoid
integer overflow, as indicated by Coverity CID 347136.

Signed-off-by: Renato Soma <renatoys08@gmail.com>
2024-02-25 20:47:31 -05:00
Riadh Ghaddab 0fb8506ae4 tests: subsys/fs/nvs: fix nvs-cache-gc test
nvs-cache-gc test is running into infinite loop because of the wrong
stop condition when filling a sector.
Fix this by keeping an empty ATE in the sector for delete operation as
defined in the NVS filesystem write operations.

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2024-02-25 20:47:06 -05:00
Reto Schneider 7178113a3e ztest: Remove superfluous comment
This is obviously a copy & paste error. It was introduced by
107cb86bb3 (ztest: Add initial zexpect API
for delayed failing).

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-02-25 20:45:52 -05:00
Mathieu Choplain 6ff47b15db drivers: can: add missing argument to LOG_ERR call
PR #64399 introduced checks for out-of-bounds filter IDs
in CAN drivers, along with logging of said IDs; however,
the call to LOG_ERR in the native POSIX/Linux driver is
missing the 'filter_id' argument.

This commit adds the missing argument to ensure proper
data is printed when the LOG_ERR call is performed.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-02-25 20:45:29 -05:00
Anas Nashif ce4022f828 tests: dma: remove wrong license from overlay
Wrongly licensed file, change to APL-2.0.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-25 20:44:48 -05:00
Henrik Brix Andersen e5a42350ae doc: releases: add working draft release notes + guide for v3.7.0
Add working drafts for the release notes and migration guide for v3.7.0.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-25 20:42:35 -05:00
Anas Nashif 3f98312cbe ci: twister status check
Generate one single status for all jobs and also report success when
twister run is being skipped to be able to make this a required check.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-24 16:10:02 -05:00
Anas Nashif a9f77a5126 ci: doc: always report status
Generate status that can be used for enforcing branch checks even if
some jobs get skipped.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-24 16:10:02 -05:00
Christopher Friedt f3709e20b8 posix: convert all error logs to debug logs
In Zephyr, things are often optimized for size first. That's how
we fit into such tight parking spaces.

This change gives more control to the user about whether the
POSIX API does any logging at all, simultaneously shrinking binary
size while improving speed.

No bytes / cycles left behind!

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-24 10:34:05 -05:00
Maureen Helm b68294a6cb github: Update security page for v3.6.0 release
Updates the GitHub security page with the current supported versions
after the v3.6.0 release.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 22:28:57 -06:00
Maureen Helm 6f8d85aac5 MAINTAINERS: Update release notes area for v3.7
Hands over the release notes area to the v3.7 release managers.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 22:28:57 -06:00
Maureen Helm 9796ee7593 release: Zephyr v3.6.99
Sets the version to v3.6.99.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 22:28:57 -06:00
Maureen Helm 468eb56cf2 release: Zephyr v3.6.0
Sets the version to v3.6.0.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:30:32 -06:00
Maureen Helm c25ed15706 doc: release: Finalize v3.6.0 release notes and migration guide
Removes working draft status from the v3.6.0 release notes and migration
guide.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:30:32 -06:00
Maureen Helm ce38e4ba6f doc: release: Remove v3.4.0 from the list of supported releases
Only the two most recent mainline releases are supported.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:30:32 -06:00
Maureen Helm 7c7b5fbf8b doc: release: Add v3.6.0 to the list of supported releases
Adds v3.6.0 to the list of supported releases. The EOL date corresponds
to the expected release date for v4.0.0.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:30:32 -06:00
Henrik Brix Andersen 1d7aab0016 docs: licensing: update list of 3rd party code licensed under GPL
Update the list of 3rd party code licensed under the GPL.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-23 18:27:32 +01:00
Maureen Helm ff80920928 doc: release: Remove empty sections from v3.6.0 release notes
Removes empty sections from the v3.6.0 release notes.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:26:26 +01:00
Maureen Helm da2412e74f doc: release: Fix list syntax in v3.6.0 release notes
The first item in a list or sublist must have a blank line before it.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-23 18:26:26 +01:00
Maureen Helm 6433770c42 doc: release: Edit release notes content for v3.6.0
Fixes grammar, punctuation, and spelling errors in the v3.6.0 release
notes.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-02-23 18:26:26 +01:00
Nikolay Agishev f5d8fe0bc5 doc: ARC: add release notes for ARC
Add ARC release notes for 3.6 Zephyr release

Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
2024-02-23 10:09:14 -06:00
Henrik Brix Andersen 8df15a2e1b docs: releases: migration guide: 3.6.0: fix backtics usage
Fix use of backticks.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-23 08:19:03 -06:00
Henrik Brix Andersen 664b8d4d39 docs: release: migration guide: 3.6.0: reorganize driver/dts section
Divide the "Device Drivers and Devicetree" section into subsections for the
various driver classes.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-23 08:19:03 -06:00
Henrik Brix Andersen 94672ac77d docs: release: migration guide: 3.6.0: add local ToC
Group related entries under subheadings and add a local table of contents
to improve readability.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-23 08:19:03 -06:00
Rodrigo Peixoto dc8dff0fce doc: migration-guide-3.6: zbus related migrations
The zbus related migrations.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2024-02-22 14:11:41 -06:00
Rodrigo Peixoto 7ce0d6dae5 doc: release-notes-3.6: zbus related changes
ZBus release notes for Zephyr 3.6.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2024-02-22 14:11:41 -06:00
Benjamin Cabé f31b52700e doc: release: Add Zephyr 3.6 highlights
This adds a high-level summary of the most notable highlights of
Zephyr 3.6.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-02-22 14:01:23 -06:00
Henrik Brix Andersen a48c958c8f docs: releases: 3.6.0: move recommended changes to release notes
Remove the Recommended Changes section from the migration guide so that it
only contains required changes. This aligns with the decision made in the
Architechture WG on 2023-10-24.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-21 19:32:03 +01:00
Marc Herbert f91d4731af pm: use braces for .pm_base inside anonymous union initializer
Fixes commit 25173f71cd ("pm: device_runtime: Extend with synchronous
runtime PM")

Fixes compilation with gcc 4.2-based toolchain used by SOF for TGL
generation products. As seen in the error message below, that gcc
version requires braces for initialization of anonymous unions:

```
zephyr/soc/xtensa/intel_adsp/common/mem_window.c:62:
   error: unknown field ‘pm_base’ specified in initializer
   warning: missing braces around initializer
   warning: (near initialization for ‘__device_dts_ord_66.<anonymous>’)
```

This is a well-known and recurring issue, see past example(s) in #68118

As the Zephyr build is deterministic, I could easily verify that this
commit makes zero .obj difference (when using the Zephyr SDK).

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2024-02-21 16:57:56 +01:00
Flavio Ceolin 18c96b64c7 doc: security: cve-2023-6881 left embargo
Disclose information about cve-2023-6881.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-02-21 16:12:26 +01:00
Flavio Ceolin 53f527cc2d doc: release-notes-3.6: Security related changes
Security release notes for 3.6

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-02-21 00:04:39 +01:00
Andrej Butok 19dfdb9a72 doc: mcumgr: fix double "the"
Fix double "the" in the mcumgr example.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-02-20 15:09:13 -06:00
Johann Fischer 6321af9593 doc: release-notes-3.6: add release notes for USB
Add release notes for USB support.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-02-20 15:08:26 -06:00
Flavio Ceolin 3fb795a27f doc: security: cve-2024-1638 left embargo
Disclose information about cve-2024-1638.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-02-20 15:07:07 -06:00
Henrik Brix Andersen 7498cd262f docs: release: migration-guide: 3.6.0: reorder entries a bit
Reorder a few entries in the v3.6.0 migration guide in order to list the
ones likely to affect most people more prominently.

Group related entries together and get rid of a couple of empty headlines.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-02-20 15:03:49 -06:00
Maureen Helm c33743ef95 release: Zephyr v3.6.0-rc3
Sets the version to v3.6.0-rc3.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-02-19 17:01:40 -06:00
Alberto Escolar Piedras a3ad40b1ee docs: BT tools: Fix description around native BT user chan use
With native_sim one uses the BT user channel driver (which connects
directly to the user channel linux socket), not a serial port.
Let's fix the description, and provide a nicer link.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-02-19 21:15:19 +01:00