Commit Graph

98082 Commits

Author SHA1 Message Date
Tomasz Bursztyka b0e327bd9c drivers/spi: Fix context release in case of error
SPI context has to be released even in case of error.

Fixes: #72782

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@proton.me>
2024-06-22 05:39:55 -04:00
Fabian Blatz b7b1a56124 modules: lvgl: support linking memory pool to custom section
This patch adds a kconfig option `LV_Z_MEMORY_POOL_CUSTOM_SECTION`
which allows to place the buffer the memory pool is backed by into a
section with the label ".lvgl_heap".

Resolves issue: #66494.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2024-06-22 05:39:41 -04:00
Peter Mitsis 4123c531f3 tests: Add test for IPI cascades
Adds a test to show that enabling IPI cascades
(CONFIG_SCHED_IPI_CASCADE=y) can correct an invalid set
of high priority threads on an N CPU system.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-06-21 20:49:11 -04:00
Peter Mitsis 11417b2b57 doc: kernel: smp: Add section about IPI cascades
Adds a section providing additional information about IPI cascades
to the kernel's SMP documentation.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-06-21 20:49:11 -04:00
Peter Mitsis ada3c90f8f kernel: Add CONFIG_SCHED_IPI_CASCADE
When this new Kconfig option is enabled, preempted threads on an SMP
system may generate additional IPIs when they are switched out.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-06-21 20:49:11 -04:00
frei tycho 75cd10bf56 testsuite: change controlling expressions in while to Boolean
Use `do { ... } while (false)` instead of `do { ... } while (0)`.

Signed-off-by: frei tycho <tfrei@baumer.com>
2024-06-21 15:41:26 -04:00
Steven Shen bc915ef55c arch: arm64: Fix ICC_SGI1R mask for arm64
According to "Arm A-profile Architecture Registers",
Interrupt Controller Software Generaated Interrupt
Group 1 Register (ICC_SGI1R), AFF is 8 bits width
and the mask should be 0xFF but not 0xF.

Cortex_a_r is okay and no need to be fixed.

Signed-off-by: Steven Shen <steven.shen@jaguarmicro.com>
Tested-by: Rex Nie <rex.nie@jaguarmicro.com>
2024-06-21 15:32:38 -04:00
Katarzyna Giądła bf6ba17655 samples: sensor: sensor_shell: Extend timeout for pytest tests
The test `sample.sensor.shell.pytest` fails althought the output
is correct. Time to execution is not enough.
This change extend test execution timeout.

Signed-off-by: Katarzyna Giądła <katarzyna.giadla@nordicsemi.no>
2024-06-21 15:26:07 -04:00
Bjarki Arge Andreasen 3d67591971 doc: relase: Document addition of at shell and pipelinks
Document the addition of pipelinks to the modem_cellular.c device
driver and the new modem at shell which uses the pipelinks to
communicate directly with the modems.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-06-21 15:25:48 -04:00
Bjarki Arge Andreasen 99866e172a doc: release notes: Added release notes for modem subsystem
Added release notes for modem subsystem for release 3.7

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-06-21 15:25:48 -04:00
Bjarki Arge Andreasen 49e3910f41 doc: services: modem: add section for pipelink
Add section documenting the new modem pipelink.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-06-21 15:25:48 -04:00
Bjarki Arge Andreasen 04dfbb65bd modem: pipelink: add header to doc group
Add modem pipelink header to doc group modem_pipelink and add
this group to the modem group.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-06-21 15:25:48 -04:00
Mathieu Choplain 3ffa56fd7e tests: drivers: counter: support STM32 w/o RTC
This commit adds a missing #ifdef check which prevents building the
'counter_basic_api' test for boards under the following conditions:
 * RTC node is defined in device tree (compatible = "st,stm32-rtc")
 * RTC node is disabled in device tree (status = "disabled")
 * Kconfig "CONFIG_COUNTER_RTC_STM32=n" is specified

This check matches the ones done a few lines above for NXP MCUs.

Without this check, building the test under the conditions listed above
failed with the infamous `undefined reference to '__device_dts_ord_N'`
linker error, because the test attempts to obtain RTC's `struct device`
despite CONFIG_COUNTER_RTC_STM32=n, which ultimately fails because the
RTC driver is not built unless there is an enabled RTC node in DT.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-06-21 15:04:20 -04:00
Erwan Gouriou e1b13b6aa0 west.yml: stm32: Remove PAGESIZE definition
PAGESIZE definition from legacy.h conflicts with POSIX definition.
Since this definition comes from legacy.h file which is only there
for Cube backward compatibility that we don't maintain in Zephyr,
simply remove it.

Note:
This is a second fix for #73363 which wasn't sufficiently tested.
Legacy file is included in stm32yyxx_hal_def.h headers and actually
removing it generates build errors as we're relying on some of the
definitions. Removing this inclusion is necessary and will be done
but on next release.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-06-21 15:03:00 -04:00
Carles Cufi caa25827a7 doc: soc porting: Fix introduction paragraph
The introductory paragraph had a broken link and was arbitrarily
referencing a couple of files that will be described extensively later.
Instead, just present the content generically.

Fixes #69990.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-06-21 14:57:30 -04:00
Mathieu Choplain 8e7b0c4af3 samples: llext: modules: increase stack size
This commit increases the size of the main stack for the LLEXT sample
subsys/llext/modules, which otherwise overflows the stack on several
platforms.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-06-21 14:56:27 -04:00
Yong Cong Sin 2bb78f3e1a arch: riscv: stacktrace: use current thread if `thread` is NULL
Zephyr's thread stack size is not fixed, in most cases we would
need the `thread` argument to obtain the `stack_info`, unless
we are unwinding the irq stack, since that is fixed.

Otherwise we can only safely print the current `mepc` register,
unwinding the esf without the stack info of a thread can
result in undefined behavior.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-06-21 14:55:27 -04:00
Yong Cong Sin b79a68fc49 arch: riscv: stacktrace: refactor fatal stack bound
Pass the current thread to `walk_stackframe()`, so that we do
not need to hardcode `_current` in `in_fatal_stack_bound()`,
which will allow it to reuse the `in_stack_bound()`

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-06-21 14:55:27 -04:00
Gerson Fernando Budke e6d8ed2e0d samples: sensor: qdec: Fix wrong harness
The #73619 which fixes the atmel,sam-tc-qdec sensor implementation
introduced agregression on the sample test removing the harness
console. That changed the test to use the default ztest behaviour
which is incompatible with the test outpout. This restore the
harness to the default console value.

Fixes: #74531

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2024-06-21 14:55:12 -04:00
Fabian Blatz 2b2f35511c doc: releases: Add LVGL paragraph to the migration guide
Adds a paragraph detailing the deprecation of `LV_Z_POINTER_KSCAN` to the
migration guide 3.7.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2024-06-21 11:54:11 -04:00
Fabian Blatz a2833ab2cf samples: subsys: display: lvgl: Remove kscan pointer check
Removes the check for whether or not the kscan kconfig option is set to
change the GUI accordingly.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2024-06-21 11:54:11 -04:00
Fabian Blatz 5a62c1137c modules: lvgl: Remove LVGL pointer kscan
Removes the wrapper code of the kscan based pointer input device. It was
implemented during the transitioning phase until all intree drivers were
converted to the input subsystem.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2024-06-21 11:54:11 -04:00
Andy Ross e9c23274af Revert "soc: intel_adsp: only implement FW_STATUS boot protocol for cavs"
This breaks SOF load on MTL devices.  See SOF bug for details:
https://github.com/thesofproject/sof/issues/9243

This reverts commit fa798ce2d5.

Signed-off-by: Andy Ross <andyross@google.com>
2024-06-21 11:52:38 -04:00
Lingao Meng cfd79e8bf0 bluetooth: host: Use K_WORK replace delayable
Use K_WORK defined. This delayed work is never used with any
other timeout than K_NO_WAIT, so the "delayed" part of it
is never actually needed

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2024-06-21 11:42:04 -04:00
Georgij Cernysiov 2f25c3666a include: net: net_pkt: fix unused variable warnings
Fix warnings generated by -Wunused-parameter.

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
2024-06-21 11:41:25 -04:00
Robert Lubos abc91227b2 net: lib: zperf: Fix socket leak during asynchronous TCP upload
In case of TCP upload error, zperf would leak a socket when running in
asynchronous mode. The upload work have to release the socket it
allocated in any case, regardless of the session result.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-06-21 11:38:11 -04:00
Robert Lubos 5cea38021e net: lib: zperf: Fix socket leak during socket setup
During socket setup, if one of the setsockopt() calls failed, the
function would return an error w/o closing the socket. That's wrong, as
in case of errors the function should clean up any resources it
allocated, the socket file descriptor is lost otherwise and resources
are leaked.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-06-21 11:38:11 -04:00
Jonathan Rico 62368ba489 doc: Bluetooth: Add release notes for TX path rework
Add release notes mentioning the recent TX path rework.

https://github.com/zephyrproject-rtos/zephyr/pull/72090

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2024-06-21 11:37:59 -04:00
Benjamin Bigler c4bf917549 net: coap: add explicit cast in coap_bytes_to_block_size
Using coap from c++ gave invalid conversion error

Signed-off-by: Benjamin Bigler <benjamin.bigler@securiton.ch>
2024-06-21 11:37:47 -04:00
Sylvio Alves 844cb3e479 drivers: intc: esp32: fix kconfig visibility
Kconfig options in those drivers are visible and selectable
to any board/soc when it should not. This makes sure both
depends on proper family.

Fixes #74347

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2024-06-21 11:37:33 -04:00
frei tycho f17a67fee4 lib: avoided increments/decrements with side effects
- moved ++/-- before or after the value use

Signed-off-by: frei tycho <tfrei@baumer.com>
2024-06-21 08:48:15 -04:00
Jordan Yates cc37eac6bd dts: cleanup leading spaces
Cleanup leading spaces found via the following regexes:
  r" compatible ="
  r"^  "
in:
  zephyr/**/*.dts
  zephyr/**/*.dtsi

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-06-21 08:46:12 -04:00
Jordan Yates 79f81f6eb8 scripts: checkpatch.pl: treat `.overlay` files as dts
Treat devicetree overlay files as DTS source for the purposes of
checkpatch.

Fixes #74570.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-06-21 08:46:12 -04:00
Marek Pieta f6600040e4 usb: cdc_acm: Update log level only if UART log backend is enabled
Change updates log level only if UART log backend is enabled in Kconfig
configuration. The log level update is not needed in case logs are
provided over other backend (e.g. RTT).

Change affects both USB stacks.

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
2024-06-21 08:45:22 -04:00
Ioannis Damigos b9dab49b13 drivers/smartbond: Remove atomic flags from drivers
Remove atomic flags from drivers that use balanced calls
for PM locking.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2024-06-21 08:45:10 -04:00
Erwan Gouriou 94f7a60d3b samples: stm32: serial_wakeup: Enable fifo
Uart FIFO is useful in case of wakeup on serial as it will allow
to avoid losing chars.
Enable it systematically on all overlays for this sample.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-06-21 08:44:54 -04:00
Robert Lubos 5499a82850 tests: net: http_server: Add HPACK testsuite
Add tests suite covering HTTP2 HPACK header compression and Huffman
encoding.

Note - many HPACK encoding/decoding cases in tests look similar, but
there are subtle differences in HPACK header used. For decoding, we
should be able to decode all of them. For encoding, we only test what
we support (no dynamic indexing).

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-06-21 08:44:38 -04:00
Robert Lubos bd4469aa79 samples: net: dns_resolve: Increase socket-related configs
Current NET_SOCKETS_POLL_MAX and ZVFS_OPEN_MAX values were too low for
the sample after the DNS refactoring, making the sample unusable in
current state.

Bump those values accordingly to make the sample functional again.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-06-21 08:44:29 -04:00
Robert Lubos 1aca4205b8 net: lib: dns: Fix error code returned when socket creation failed
We should return the errno value in such case, as ret will always be -1
on failure, which might misleading, as it does not give any hint on what
failed.

Also bump the log level of the error message, so the failure is visible
w/o needing to enable debug logs. Such a failure is fatal for the DNS
subsystem, so error level is justified here.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-06-21 08:44:29 -04:00
Robert Lubos e018281d3b net: lib: dns: Fix DNS dispatcher double net buf unref
The `dns_data` buffer, allocated by the DNS dispatcher was dereferenced
twice - once in registered DNS handler, second time in the dispatcher
itself.

Since the buffer was allocated by the dispatcher, and it's not really
guaranteed that the buffer will be freed in the registered handler (this
depends on the processing outcome, the function may return early w/o
freeing the net buf in case of errors), it makes most sense for the
dispatcher to keep ownership of the buffer. Hence, the registered
handlers will no longer release the buffer provided in any case, and the
dispatcher will free it on exit.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-06-21 08:44:15 -04:00
Maureen Helm fe382e57d9 boards: adi: Improve twister vendor filter coverage
Some of the new max32 family boards were missing the vendor name in
their board yamls and not being tested by `twister --vendor adi`.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-06-21 08:44:04 -04:00
Alberto Escolar Piedras 3d729986e0 tests/bsim: Provisionally disable the nrf54l15 BT tests
Let's provisionally disable the nrf54l15 BT tests in CI
due to instability issues in the controller for this
platform.
See https://github.com/zephyrproject-rtos/zephyr/issues/74635

This should be reverted once the underlaying issue is fixed.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-06-21 11:32:40 +02:00
TOKITA Hiroshi 5e295ac39e doc: release: 3.7: Add hyperlinks for boards
Add hyperlinks to each board's page for added in this release.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-06-21 10:11:53 +02:00
TOKITA Hiroshi 2b976609b3 boards: raspberrypi: rpi_5: Correct hyperlink target
Added `_` to handle the hyperlink target correctly.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-06-21 10:11:53 +02:00
TOKITA Hiroshi bcb7d42ac7 doc: releases: 3.7: Correct RaspberryPi5 identifier
`rpi_5` is the correct identifier for RaspberryPi5.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-06-21 10:11:53 +02:00
TOKITA Hiroshi 82c380b988 doc: add release note about Renesas RA
updated release notes for 3.7

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-06-21 10:11:53 +02:00
Nikolay Agishev 2d75d7b2d3 ARCMWDT: Remove workaround with stripping DWARF info
Remove obsolete workaround with conditional turning off "-g"
flag when Thread Local Storage used.

Recent versions of MetaWare have no issue with linking files with
TSL-related data.

Moreover, pointed workaround breaks userspace for recently added
ARC-V platforms, as they use both TLS and DWARF info while compilation
process.

Fixes https://github.com/zephyrproject-rtos/zephyr/issues/29920

Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
2024-06-21 10:10:24 +02:00
Glenn Andrews 4a4d506510 Board: disco_l475_iot1: Fix PWM assignment
Most people would expect green_pwm_1 to go to LD1 on the dev board.
However it is routed to CN1 pin 2, since routing it to LD1 would
interfere with SPI SCK on the Arduino connector. This PR adds a
comment to tell users that LD1 won't light up as expected and to
fix the comments stating which PWM goes to which pin.

Also updated the documentation to note this.

Signed-off-by: Glenn Andrews <glenn.andrews.42@gmail.com>
2024-06-21 10:08:36 +02:00
Jun Lin 14eef26d96 dts: npcx: workaroud bbram 1st byte issue for npcx4
Apply the workaround for the issue "BBRAM First Byte" in the
NPCX49nF_Errata. This bypass limits the access to the BBRAMs' first byte
(i.e., the offset 0). As a result, only 127 bytes are available in npcx4
chips.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2024-06-21 10:07:41 +02:00
Jun Lin e555f20462 driver: bbram: npcx: fix the way to clear bbram status
Bits in the BBRAM status register (BKUP_STS) are write-1-to-clear bits.
The current driver writes 0 to clear those bits, which is incorrect.
Fix it in this commit.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2024-06-21 10:07:41 +02:00