Commit graph

6514 commits

Author SHA1 Message Date
Flavio Ceolin
b170943d9f doc: security/etsi: Provision 5.3.3 assessment
Add self-assessment for provision 5.3.3

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-05-27 03:40:32 -07:00
Flavio Ceolin
5ac871b077 doc: security/etsi: Provision 5.3.4 assessment
Add self-assessment for provision 5.3.4

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-05-27 03:40:32 -07:00
Flavio Ceolin
3abc5da089 doc: security/etsi: Provision 5.1.2 assessment
Add self-assessment for provision 5.1.2

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-05-27 03:40:32 -07:00
Flavio Ceolin
da255c3e3d doc: security/etsi: Provision 5.2.2 assessment
Add self-assessment for provision 5.2.2

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-05-27 03:40:32 -07:00
Flavio Ceolin
2c3e1a3047 doc: security/etsi: Provision 5.2.1 assessment
Add self-assessment for provision 5.2.1

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-05-27 03:40:32 -07:00
Flavio Ceolin
8d446d345b doc: security: Add ETSI 303 645 standard
Add a new section for standards with ETSI 303-645 in
the security related documentation.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-05-27 03:40:32 -07:00
Yong Cong Sin
2300f8a445 doc: migration-guide: 3.7: add note on multilevel interrupt arch changes
Add a note on the revamp of the multilevel interrupt
architecture, the changes to be made, and new macros to help
with the update.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-05-25 11:24:32 +03:00
Swift Tian
e29baf5da3 doc: add a note in 3.7 migration guide
CONFIG_EMUL is no longer default with CONFIG_I2C as it causes I2C
dependency loop.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2024-05-24 18:03:44 -04:00
Ederson de Souza
2654fdc6ba doc/services/llext: Mention the LLEXT EDK
Mention the EDK existence, the build target and discuss some features.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2024-05-24 18:00:00 -04:00
Nikolay Agishev
84898f62a3 DOC: ARCMWDT: Add tip for arc-gnu-toolchain installation
Installation of single toolchain causes problems for customers who
are not familiar with Zephyr infrastructure. This tip is supposed
to help them.

Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
2024-05-24 08:05:39 -04:00
Alex Bellon
a655deb046 docs: security: Create CVE-2024 section
Create new section for CVE-2024.

Signed-off-by: Alex Bellon <github@alex-bellon.com>
2024-05-24 07:50:38 -04:00
Stephanos Ioannidis
8c8e2f6243 doc: requirements: Add pyserial
Since 7eaca455fa, pyserial is required for
building docs because `DeviceAdapter` from the `pytest-twister-harness`
plugin, which is imported by autodoc, now depends on it.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2024-05-23 17:02:27 -04:00
Yong Cong Sin
2a3d9d0d90 arch: arm64: use symtab to print function name in stack trace
Selecting `CONFIG_SYMTAB` will
enable the symtab generation which will be used in the
stack trace to print the function name of the return
address.

Added `arm64` to the `arch.common.stack_unwind.symtab` test.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-05-23 11:52:08 -04:00
Yong Cong Sin
c1a925de98 arch: riscv: use symtab to print function name in stack trace
Selecting `CONFIG_EXCEPTION_STACK_TRACE_SYMTAB` will
enable the symtab generation which will be used in the
stack trace to print the function name of the return
address.

Updated the `stack_unwind` test to test the symbols in a
stack trace.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-05-23 11:52:08 -04:00
Yong Cong Sin
e1ce0aefff debug: implement symtab generation
Use pyelftools to extract the symbol table from the
link stage executable. Then, filter out the function names
and sort them based on their offsets before writing into the
`symtab.c`, this is similar to how the `isr_tables` works.

To access the structure, simply include the new header:
```c
#include <zephyr/debug/symtab.h>
```

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-05-23 11:52:08 -04:00
Glenn Andrews
531c457550 Lib: SMF Modify HSM operation for UML-Style transitions
Modify the SMF such that state transitions from parent states choose the
correct Least Common Ancestor based on the transition source rather than
the current state.

SMF set as experimental.

Signed-off-by: Glenn Andrews <glenn.andrews.42@gmail.com>
2024-05-22 21:41:06 -04:00
Declan Snyder
79f1b23cdb doc: Add missing ABNF macros for child num
Commit 5871ff010b
added support for generated DT macros to get the number
of child nodes of a node, but we forgot to update
the documentation of the augmented Backus–Naur form
of the DT macros to reflect this addition.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-05-22 13:46:04 -05:00
Daniel Leung
e6abc035c8 kernel: mem_domain: new config for isolated stacks
This adds a new kconfig to indicate if architecture code
supports isolating thread stacks within the same domain,
and another new kconfig to selectively enable this
behavior.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-05-21 20:53:09 -04:00
Daniel DeGrasse
1ed9ef465b docs: releases: migration-guide-3.7: add note about ST7735R migration
Add note about migration of ST7735R displays to MIPI DBI API.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-05-21 16:50:08 -04:00
Krzysztof Chruściński
29fd12818d doc: services: debugging: Add documentation for MIPI STP decoder
Add section about MIPI STP decoder.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-05-21 16:48:28 -04:00
Aleksander Wasaznik
a530010fe2 Bluetooth: Remove useless field init_credits
Remove `bt_l2cap_le_endpoint.init_credits` that has zero uses and is
just taking up RAM for no reason.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2024-05-21 16:45:50 -04:00
Jun Lin
2ec8f442a5 doc: releases: Add npcx watchdog driver related notes
Add release note and migration guide for npcx watchdog driver
in 3.7 release.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2024-05-21 11:15:04 +01:00
Lyle Zhu
34c84eccec doc: releases: release-notes-3.7: Add info for Handsfree AG
Added information about implementing handsfree AG to
the Bluetooth section.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2024-05-19 10:57:33 +03:00
Bartosz Bilas
7046c9030e drivers: spi: remove deprecated spi_is_ready function
`spi_is_ready` is depreceted since v3.3 so let's remove it.

Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
2024-05-18 12:20:05 -04:00
Emil Gydesen
f58ac3476f Bluetooth: CAP: Add reference to the set member for CAP discover
Since the CSIP API expects a set member struct for nearly all
functionality, the reference to the full set member (along with
the CAS specific CSIS) should be given to the application.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-05-18 15:51:26 +03:00
Torsten Rasmussen
99097bdddb doc: introduce SoC porting guide
Fixes: #27439

This commit introduces an initial SoC porting guide with a general
description of the minimal set of files needed to support a new SoC in
Zephyr, along with some examples of the content.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-05-17 21:41:44 +02:00
Flavio Ceolin
696a1a0a13 doc: release-notes-3.7: Removed PCIe APIs
Add information about PCIe APIs removed in this release.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-05-17 09:30:04 +02:00
Flavio Ceolin
cec23830e4 doc: vuln: Add CVE under embargo
Add an entry to CVE-2024-4785

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-05-16 18:53:02 -04:00
Flavio Ceolin
6b27f48938 doc: release-notes-3.7: Add CVE-2024-4785
Add CVE under embargo.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-05-16 18:53:02 -04:00
Alberto Escolar Piedras
ccdd829aef doc: release_notes: Mention new nrf54l15bsim target
Add a mention of the new nrf54l15bsim in the release notes.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-05-16 15:19:08 +01:00
Alberto Escolar Piedras
c542b06df1 develop/test/bsim: Reference new nrf54l15bsim target
Add links to the new nrf54l15 from this doc.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-05-16 15:19:08 +01:00
Henrik Brix Andersen
aed0fbf774 drivers: can: remove initial bus-speed/bus-speed-data properties
Remove all CAN controller "bus-speed" and "bus-speed-data"
properties. These all use the default bitrates set via Kconfig.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-05-16 09:23:59 +02:00
Zhaoxiang Jin
23e37896d8 docs: releases/migration-guide-3.7: Add NXP regulator driver info
Add NXP regulator (nxp,vref) driver info

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2024-05-15 17:28:38 +02:00
Seppo Takalo
01b57b4999 net: lwm2m: Add offset to post-write callback
When Block-Wise transfer restarts, the post-write callback should
receive some indication that the block is actually a beginning of new,
instead of part of previous transfer.

Fixes #71351

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-05-15 14:58:15 +02:00
Emil Gydesen
a6a14360a9 Bluetooth: BAP: Remove err from recv_state_removed callback
The callback is only ever called when we received a
notification from the BASS server that the receive state is
removed, which cannot contain an error code.
Thus it does not make sense for the callback to have an
error code.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-05-15 14:57:20 +02:00
Johan Hedberg
3032321938 doc: migration-guide-3.7: Mention Bluetooth HCI related changes
Mention the changes to Bluetooth HCI Kconfig options and one
semi-private API (bt_read_static_addr).

Signed-off-by: Johan Hedberg <johan.hedberg@gmail.com>
2024-05-14 18:21:11 -04:00
Anas Nashif
681e1d41e0 doc: clarify what a subsystem is
Clarify what a subsystem is, this has been missing the docs.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-05-14 10:55:55 +02:00
Jamie McCrae
e911435d90 doc: migration/release: 3.7: Add LED strip changes
Adds changes about the LED strip driver

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2024-05-14 09:33:58 +02:00
Jordan Yates
98deebd29b kernel: add k_uptime_seconds
Add a helper function for retrieving the system uptime in seconds
without having to do a second division.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-05-14 09:32:01 +02:00
Gerard Marull-Paretas
8120bd7519 samples: move with_mcuboot sample to samples/sysbuild
This creates a new category of samples that demonstrate certain features
of sysbuild. "application development" was a very generic name.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-05-13 16:09:01 -04:00
Fredrik Gihl
2d31d45429 drivers: sensors: Add support for ds18s20
Added support for the older ds18s20 inside the (newer) ds18b20.

Signed-off-by: Fredrik Gihl <fgihl@hotmail.com>
2024-05-13 16:06:35 -04:00
Nicolas Pitre
e9a47d932c kernel: mmu: shrink and align struct z_page_frame
The struct z_page_frame is marked __packed to avoid extra padding as
such padding may represent significant memory waste when lots of page
frames are used. However this is a bad strategy.

The code contained this somewhat dubious comment and code in
free_page_frame_list_put():

	/* The structure is packed, which ensures that this is true */
	void *node = pf;
	sys_slist_append(&free_page_frame_list, node);

This is bad for many reasons:

- type checking is completely bypassed;

- if the sys_snode_t node member is no longer located at the front of
  struct z_page_frame then the code will still compile and possibly run
  but be broken with memory corruption as a likely outcome;

- the sys_slist_append() code is completely unaware of the packed
  attribute which breaks architectures with alignment restrictions.

Let's improve code efficiency as well as memory usage by removing the
packed attribute and manually packing the flags in the unused virtual
address bits. This way the page frame array remains naturally aligned,
data access becomes optimal and the actual array size gets even smaller.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2024-05-13 16:04:40 -04:00
Carles Cufi
cbf5ab49e6 doc: migration: 3.7: Add missing links to GitHub Pull Requests
To provide further context for users.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-05-13 16:04:11 -04:00
Carles Cufi
54a83e2c17 doc: releases: Enforce linking to Pull Requests in migration guide
In order to provide additional context and information to Zephyr users,
ensure that each entry in the migration guide contains a link to the
GitHub Pull Request that introduced the corresponding change.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-05-13 16:04:11 -04:00
Tomi Fontanilles
817b45e228 doc: releases: add MbedTLS-related notes
For changes brought by PRs #71118 and #72078.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-05-12 11:04:49 -04:00
Ederson de Souza
64a373f4ea doc/kernel/drivers: Mention deferred initialization
Add a section discussing device deferred initialization on the device
model documentation.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2024-05-10 20:24:44 -04:00
Tomi Fontanilles
6002abe519 mgmt: mcumgr: replace Tinycrypt by PSA
As part of ongoing work to move away from TinyCrypt and towards PSA
(#43712), make fs_mgmt use either PSA (when available) or MbedTLS
(as a fallback) for SHA-256.

The use of PSA is guarded by CONFIG_MBEDTLS_PSA_CRYPTO_CLIENT
which requires a locally-built PSA core for devices without TF-M.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2024-05-10 18:24:38 -04:00
Robert Lubos
7b55805a3e doc: net: Add HTTP server documentation
Add documentation page for HTTP server functionality.
Rename existing HTTP documentation to HTTP client, as it only covers the
client library.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-05-10 14:43:38 -05:00
Chris Friedt
1f5960e531 doc: posix: add links and make minor corrections
Add a link to _POSIX_CLOCK_MONOTONIC, correct the
_POSIX_RAW_SOCKETS kconfig option.

Define _POSIX_CHOWN_RESTRICTED and _POSIX_NO_TRUNC so that they
conform to the spec.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-05-07 21:22:56 -04:00
Chris Friedt
73c8611682 doc: posix: link _POSIX_FSYNC to kconfig option
Link _POSIX_FSYNC to CONFIG_POSIX_FSYNC instead of
CONFIG_POSIX_FS.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-05-07 21:22:56 -04:00