Commit graph

75040 commits

Author SHA1 Message Date
Jay Vasanth
c504e1e5cd drivers: dma: Add Microchip XEC DMA driver
The Microchip XEC family of microcontrollers includes a
simple DMA block implementing multiple channels. DMA supports
memory to memory, memory to peripheral, and peripheral to
memory transfers. Peripheral support is limited by each
chip to I2C and SPI controllers. DMA hardware does not support
scatter-gather or linked transactions.

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
2023-02-19 20:38:21 -05:00
Mikhail Siomin
b608ddc40f logging: the 'log backend' shell cmd will result in the infinite loop.
The backend_name_get() function always sets 'entry->syntax' to
the name of the last backend, but a calling function iterates
over the idx until 'entry->syntax' is null.
Solution: Added a check that the index is less than the number
of backends and added getting the name of the backend
by the given index.

Signed-off-by: Mikhail Siomin <victorovich.01@mail.ru>
2023-02-19 20:37:53 -05:00
Kai Vehmanen
0c0d73721e dma: dw: allow to stop in DW_DMA_SUSPENDED state
Allow DMA channel to be stopped even if it is in suspended state.
The current code in dw_dma_stop() supports this, but the recently
added early check for dw_dma_is_enabled() results in DMA stop
sequence to be skipped if the channel was in suspended state.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2023-02-19 20:37:26 -05:00
Kai Vehmanen
6422b2b094 dma: dw: fix include for chan_data
The conditional definitions are not correct as "chan_data"
is used without any include guards, but defined only if
CONFIG_DMA_DW_HW_LLI or CONFIG_DMA_DW_SUSPEND_DRAIN is defined.
Correct the declaration to match usage.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2023-02-19 20:37:26 -05:00
Iuliana Prodan
33ceb3847e boards: nxp_adsp: fix dtsi name
Include the correct dtsi for nxp_adsp_imx8m.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2023-02-19 20:37:02 -05:00
Adrian Warecki
ddad6226c0 adsp: boot: power: Separate watchdog state from core power
The watchdog is controlled by ll-scheduler and should not be resumed when
a core is bringing up. Watchdog pause control code was removed.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-02-19 20:36:31 -05:00
Adrian Warecki
da4f20901f adsp: ipc: Emergency ipc message send
Added intel_adsp_ipc_send_message_emergency function that allows to send an
ipc message notifying about emergency event, such as watchdog timeout.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-02-19 20:36:31 -05:00
Adrian Warecki
625f226842 adsp: ace: Non-maskable interrupt handling
The non-maskable interrupt have no corresponding bit in INTERRUPT and
INTENABLE registers so its occurrence cannot be confirmed. Removed the code
that checked if the interrupt flag is set.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-02-19 20:36:31 -05:00
Filip Kokosinski
4a1678af7e boards: arm: nucleo_f303k8: make full name consistent
This commit makes the full name of the `nucleo_f303k8` platform
consistent with other Nucleo platforms.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2023-02-19 20:35:10 -05:00
Nicolas Pitre
a115fd21d4 tests: kernel: timer_behavior: improve the timer_jitter_drift output
Provide an estimate of the test duration.
Make the output nicer than a few overloaded and wrapped lines.
Provide more context in the presence of period time drift.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2023-02-19 20:34:37 -05:00
Nicolas Pitre
b60cb9cc80 tests: kernel: timer_behavior: improve timer_tick_train output
Print the "perfect" reference period for easier evaluation.
Suggest a remedy to the missed ticks problem.

Still, that wasn't satisfactory. Implemented a count of missed ticks
to get to the bottom of this issue. Found that missed ticks always came
to a perfect count of 40.

Incidentally, the busy loop prints a line every 250 ms and the test spans
10 seconds. There are no such coincidences.

Turns out that CONFIG_PRINTK_SYNC was set by default. This disables IRQs
for the serial output duration, which can be quite long at 115200 bauds.
Given a 60-ish character line length, this represents more than 5 ms of
no IRQ servicing during a timer latency measurement test which is bad.
So make sure CONFIG_PRINTK_SYNC=n for proper statistics.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2023-02-19 20:34:37 -05:00
Nikolay Agishev
0dec4cf927 toolchain: Move extra warning options to toolchain abstraction
Move extra warning option from generic twister script into
compiler-dependent config files.
ARCMWDT compiler doesn't support extra warning options ex.
"-Wl,--fatal-warnings". To avoid build fails flag
"disable_warnings_as_errors" should be passed to twister.
This allows all warning messages and make atomatic test useles.

Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
2023-02-19 20:34:13 -05:00
Robert Lubos
a28dba2503 net: ip: 6lo: Fix corner case with packet format after IPHC
IEEE802154 drivers expect, that a complete 802.15.4 frame fits into a
single net_buf provided in a net_pkt.

There is a corner case with header compression when this could not be
the case. If the IPv6 packet before IPHC exceeded 802.15.4 MTU, it'd
consist of several net_buf's. This was not an issue, if the IPv6 packet
after header compression still required fragmentation, as the
fragmentation module took care of formatting individual net_buf's
properly.

For short range of packet sizes however this was no the case. The IPv6
packet, after header compression, might not require fragmentation any
more. As the IPHC logic only modified the IPv6 header part, by trimming
the buffer in front of the net_buf, such a packet would still consist of
two net_bufs, even though it should fit into a single 15.4 frame. Such
packet was passed to the driver, causing the driver to send only part of
the packet, from the first net_buf.

Fix this, by using net_pkt functions to manipulate the packet, instead
of operating on net_buf directly. net_pkt_pull() will not trim the
buffer in front, but rather move the entire packet content to the front.
On the other hand, net_pkt_compact() will assure that there's no gaps in
the net_bufs. In result, packets that do not require fragmentation,
should be placed into a single net_buf, as expected by drivers.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-02-19 20:33:36 -05:00
Robert Lubos
dc641ceffd net: ieee802154: 6lo: Add test case for IPHC fragmentation corner case
Add a test case, which reproduces a scenario, where packet before IPHC
exceeds 802154 MTU, but after header compression, in fits.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-02-19 20:33:36 -05:00
Hu Zhenyu
a8bda2ef8f tests: net: socket: tls_ext move to new ztest API
Move net/socket/tls_ext tests to use new ztest API
TEST=west build -p -b native_posix tests/net/socket/tls_ext

Signed-off-by: Hu Zhenyu <zhenyu.hu@intel.com>
2023-02-19 10:32:03 -05:00
Stephanos Ioannidis
5cb53ee1e9 VERSION: Bump to 3.3.99
This commit sets the PATCHLEVEL to 99 to indicate that this is now a
development branch.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2023-02-19 20:34:26 +09:00
Stephanos Ioannidis
07c6af3b8c release: Zephyr 3.3.0
This commit sets the Zephyr version to v3.3.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2023-02-19 11:13:27 +09:00
Stephanos Ioannidis
9c9c6aee6e doc: release-notes: Use the past tense
This commit changes any present tense usages to the past tense for
consistency.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-19 11:13:27 +09:00
Evgeniy Paltsev
c2f52a7548 ARC: doc overhaul for nSIM board (with few fixes to MWDT docs)
Completely rewrite nSIM board documentation with additional fixes
to ARC MWDT toolchain documentation.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-02-18 06:55:51 +09:00
Evgeniy Paltsev
68196b4870 doc: ARC: add release notes for ARC
Add release notes for ARC for 3.3 release

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-02-18 06:37:13 +09:00
Caleb Perkinson
92da46ff01 doc: properly formatting table
the table was improperly formatted and wouldn't display in rows. This
should fix that.

Signed-off-by: Caleb Perkinson <calebperkinson@gmail.com>
2023-02-18 06:31:35 +09:00
Nicolas Pitre
6b0586ef05 riscv: improve FPU sharing documentation
Augment the doc with functionality added in commit a211970b42 ("riscv:
improve contended FPU switching").

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2023-02-18 01:09:16 +09:00
Théo Battrel
ac3dec5212 Bluetooth: Host: Check returned value by LE_READ_BUFFER_SIZE
`rp->le_max_num` was passed unchecked into `k_sem_init()`, this could
lead to the value being uninitialized and an unknown behavior.

To fix that issue, the `rp->le_max_num` value is checked the same way as
`bt_dev.le.acl_mtu` was already checked. The same things has been done
for `rp->acl_max_num` and `rp->iso_max_num` in
`read_buffer_size_v2_complete()` function.

Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
2023-02-18 00:09:13 +09:00
Anas Nashif
5b9a2ef31f MAINTAINERS: various enhancements
Various enhancemens and addition to coverage of several areas.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-02-17 19:49:49 +09:00
Anas Nashif
c8f42b87dd MAINTAINERS: add bindings to respective platforms
Some platform areas did not have the bindings associated with that
platform.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-02-17 19:49:49 +09:00
Alberto Escolar Piedras
51540bbbb9 Maintainers.yml: Add missing POSIX arch docs
A few POSIX arch docs were orphaned.
Add them to the native posix & posix arch entry

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-02-17 19:49:04 +09:00
Simon Guinot
d3cbc27b25 MAINTAINERS: add simonguinot as LED strip maintainer
Add myself as a co-maintainer for the LED strip subsystem.

Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
2023-02-17 19:48:35 +09:00
Simon Guinot
2b5ac29d16 MAINTAINERS: add simonguinot as LED maintainer
Add myself as a co-maintainer for the LED subsystem.

Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
2023-02-17 19:47:46 +09:00
Stephanos Ioannidis
e62acf92d8 doc: conf: Add 3.3.0 release to version list
This commit adds the Zephyr 3.3.0 release to the documentation version
list.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-17 19:46:53 +09:00
Stephanos Ioannidis
7c76525713 doc: release-notes: Remove "Working Draft" status
This commit removes the "Working Draft" status from the Zephyr 3.3.0
release notes.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-17 19:46:53 +09:00
Stephanos Ioannidis
2a444237d4 doc: release-notes: Remove empty sections
This commit removes empty sections from the Zephyr v3.3.0 release
notes.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-17 19:46:53 +09:00
Stephanos Ioannidis
e8bd9429c2 doc: release-notes: Fix typos
This commit fixes various typos in the Zephyr v3.3.0 release notes.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-17 19:46:53 +09:00
Stephanos Ioannidis
e9d9fbe152 doc: release-notes: Add list of known issues for v3.3.0
This commit adds the list of known issues for the Zephyr v3.3.0
release.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-17 19:46:53 +09:00
Stephanos Ioannidis
07f483d84b doc: release-notes: Add list of addressed issues for v3.3.0
This commit adds the list of addressed issues for the Zephyr v3.3.0
release.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-17 19:46:53 +09:00
Stephanos Ioannidis
55547fc5f0 doc: release-note: Add major enhancements for v3.3.0
This commit adds the list of major enhancements for the Zephyr v3.3.0
release.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-17 19:46:53 +09:00
Yuval Peress
0aa4e38bbe doc: Add release notes DSP subsystem
Add documentaiton about the existence of the new DSP subsystem.

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-17 08:53:43 +09:00
Yuval Peress
1687f82e66 doc: Add release notes emulators and ztest
Add documentaiton about API changes in emulators as well as newly
supported test summary Kconfig.

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-17 08:53:43 +09:00
Evgeniy Paltsev
e0de642d0a ARC: qemu: disable test where we trigger ARC QEMU bug #54720
Disable tests/kernel/mem_protect/syscalls for qemu_arc_em where
we trigger ARC QEMU bug which cause illegal instruction exception
on perfectly valid ARC code.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2023-02-17 08:50:37 +09:00
Stephanos Ioannidis
06d5bc51b5 doc: release-notes: Note xtools toolchain variant deprecation
This commit adds a note about the deprecation of the xtools toolchain
variant.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-16 23:59:16 +09:00
Stephanos Ioannidis
5d7398761d doc: toolchains: Add deprecation notice for xtools toolchain variant
This commit adds a deprecation notice for the `xtools` toolchain
variant, which was deprecated in the commit
a9d85ae472.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-02-16 23:59:16 +09:00
Manuel Arguelles
5d397ea43a doc: release-notes-3.3: add notes for NXP S32
This adds a few notes for NXP S32 related changes.

Signed-off-by: Manuel Arguelles <manuel.arguelles@nxp.com>
2023-02-16 23:40:01 +09:00
Benjamin Cabé
d1ec6f7aaf doc: set documentation base URL to /latest
Help search engines flag "latest" version of the documentation as
the canonical source by setting Sphinx's html_baseurl.
Fixes #54749.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-02-16 22:48:51 +09:00
Sylvio Alves
f1b662ae17 samples: ipm_esp32: remove binary blob
Remove array structure from source code to follow
Zephyr's policy regarding its usage.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-02-16 21:30:35 +09:00
Sylvio Alves
f433e95262 samples: ipm_esp32: use net core source from build ouput
Current ipm_esp32 sample code requires esp32_net_firmware.c file
as source input, which is generated after ipm_esp32_net build.
esp32_net_firmware.c was manually added as binary blob, which needs to
be removed from the repository.

This change modifies ipm_esp32 CMakeLists.txt to include the build
output of ipm_esp32_net as input source of ipm_esp32 build, allowing the
binary blob to be removed.

Current approach shall be updated during next release.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2023-02-16 21:30:35 +09:00
Jason Yuan
57e6532b0a doc: update documentation for shell library change
The SHELL_SUBCMD_DICT_SET_CREATE macro was previous changed in PR #51231
to require a string comment as part of the macro but the documentation
was not updated to reflect that. This patch updates the documentation to
relect the change in the shell library.

Signed-off-by: Jason Yuan <jasonyuan@google.com>
2023-02-16 20:31:46 +09:00
Oyvind Roti
3e5ac7a89d doc: posix arch: Fix trivial typos
Fix some trivial typos in the native POSIX architecture documentation.

Signed-off-by: Oyvind Roti <opensource@oyvindroti.com>
2023-02-16 19:25:52 +09:00
Daniel Leung
7c60b0d08e doc: release-notes/3.3: adds a few bits on IPM
This adds a note of IPM driver fixes.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-02-16 19:02:06 +09:00
Daniel Leung
e4903e0664 doc: release-notes/3.3: add bits on I3C
This adds a few bits on I3C subsystem.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-02-16 19:02:06 +09:00
Daniel Leung
51246d1ca8 doc: release-note/3.3: adds a few bits about serial and UART
This adds a few bits about changes in serial and UART drivers.
Also mentions a few new additions.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-02-16 19:02:06 +09:00
Daniel Leung
1093a6f24d doc: release-notes/3.3: add bits about PCIE
This adds a few bits mentioning newly introduced API and
modifications on the PCIE subsystem.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-02-16 19:02:06 +09:00