- Apr 22, 2022
-
-
Christopher Friedt authored
Set version to 2.7.2 Signed-off-by:
Christopher Friedt <chrisfriedt@gmail.com>
-
Flavio Ceolin authored
Update 2.7.1 release notes with information about CVE fixed. Signed-off-by:
Flavio Ceolin <flavio.ceolin@intel.com>
-
- Apr 19, 2022
-
-
Stephanos Ioannidis authored
When "eager FPU sharing" mode is enabled, FPU registers must be initialised at the time of thread creation because the floating-point context is always active and no further FPU initialisation is performed later. Note that, in case of the "lazy FPU sharing" mode, floating-point context is inactive by default and the FPU is initialised when the first floating-point instruction is executed. Refer to the issue #44902 for more details. Signed-off-by:
Stephanos Ioannidis <root@stephanos.io> (cherry picked from commit f9a3f02b)
-
Christopher Friedt authored
Bump version to 2.7.2-rc1 Signed-off-by:
Christopher Friedt <chrisfriedt@gmail.com>
-
- Apr 14, 2022
-
-
Jamie McCrae authored
Virtual MSD J-Link support on some development boards has caused an issue with SMP due to limiting the maximum size of UART data via the CDC endpoint, add a link to the SMP documentation and smp_svr sample application on how to disable MSD functionality and resolve the issue. Signed-off-by:
Jamie McCrae <jamie.mccrae@lairdconnect.com>
-
Jaxson Han authored
Increase CONFIG_MAX_THREAD_BYTES to 3 to fix the build issue on tests/drivers/build_all/modem/ test case. Signed-off-by:
Jaxson Han <jaxson.han@arm.com> Change-Id: I6a26955bdd7e8b176894fa8246aec63a3a3db05f (cherry picked from commit a483828d)
-
Jaxson Han authored
The current minimum required version of "Armv8-R AEM FVP" is 11.16.16. Signed-off-by:
Jaxson Han <jaxson.han@arm.com> Change-Id: Iaaf1ec7fd432753371b58d13fdd29b1278f6c997 (cherry picked from commit 3875a1e7)
-
Jaxson Han authored
After the fix of FVP_BaseR_AEMv8R booting issue, the minimum required version of FVP will be 11.16.16. Add an FVP minimal required version check in building time. When the ARMFVP_MIN_VERSION is set in board cmake file, the version check will be enabled and print a warning. Signed-off-by:
Jaxson Han <jaxson.han@arm.com> Change-Id: Ibbade0c328b5e91b8830fb35cba6917f08aabbda (cherry picked from commit 3c1f3197)
-
Jaxson Han authored
In the Armv8R AArch64 profile[1], the Armv8R AArch64 is always in secure mode. But the FVP_BaseR_AEMv8R before version 11.16.16 doesn't strictly follow this rule. It still has some non-secure registers (e.g. CNTHP_CTL_EL2). Since version 11.16.16, the FVP_BaseR_AEMv8R has fixed this issue. The CNTHP_XXX_EL2 registers have been changed to CNTHPS_XXX_EL2. So the FVP_BaseR_AEMv8R (version >= 11.16.16) cannot boot Zephyr. This patch will fix it. [1] https://developer.arm.com/documentation/ddi0600/latest/ Signed-off-by:
Jaxson Han <jaxson.han@arm.com> Change-Id: If986f34dc080ae7a8b226bba589b6fe616a4260b (cherry picked from commit fd231e32)
-
- Apr 13, 2022
-
-
Tomasz Bursztyka authored
Reason why the prority was at its lowest is unknown, but now that it may be used to send local packets (which used to be sent right away), it seems to affect TCP scheduling in loopback mode. Raising the prority so it matches how it was previously (i.e. sent right away) should fix things. (Note however that this issue was not broadly present, only sockets.tls test seemed to be affected.) Signed-off-by:
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
-
Tomasz Bursztyka authored
Client thread might run before the server gets to put itself on accept. Leading to the server waiting forever. Signed-off-by:
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
-
Tomasz Bursztyka authored
This will clean up the context properly and call net_tcp_put() relevantly. Signed-off-by:
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
-
Tomasz Bursztyka authored
TCP work queue is of higher priority so k_yield should do the trick, and the test will not be affected by any timing. Signed-off-by:
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
-
Tomasz Bursztyka authored
Due to the previous change on when to send TCP packet on local IP, pkt may be held in a queue which is to run on a k_work. This changes the scheduling, and due to that one of the test is failing to allocate a RX net_pkt at the time it wants to. (previous TCP connection is not yet fully closed and still own PKT that new connection cannot get then). Of course all those waiting paquets require buffers so raising them. It was verified that there is no leak, adding net_pkt_print() at tcp_conn_unref() shows that when all tcp connection are finally unrefed: all net_pkt get freed as well. Signed-off-by:
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
-
Tomasz Bursztyka authored
Closing a connection, thus calling net_context_put() will not close a TCP connection properly, and will leak tcp connection memory. This is because: net_context_put calls net_context_unref which calls net_tcp_unref which leads to unref tcp connection and thus sets ctx->tcp to NULL. Back to net_context_put, that one finally calls net_tcp_put: but that bails out directly since ctx->tcp is NULL. Fixing it by inverting net_tcp_put() and net_context_unref() calls within net_context_put(). Fixes #38598 Signed-off-by:
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
-
Tomasz Bursztyka authored
On any target, running a TCP server and a net shell can show the issue: net tcp connect local_ip port will fail. Usally it ends up by consumming all tcp connection memory. This is because in tcp_in(), state changes will most of the time lead to sending SYN/ACK/etc... packets under the same thread, which will run all through net_send_data(), back to tcp_in(). Thus a forever loop on SYN -> SYN|ACK -> SYN -> SYN|ACK until tcp connection cannot be allocated anymore. Fixing it by scheduling any local packet to be sent on the queue. Fixes #38576 Signed-off-by:
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
-
- Apr 12, 2022
-
-
Jamie McCrae authored
This limits non-mcuboot builds to have a maximum size of 892KB to prevent code being placed over the top of the bootloader's flash area. Signed-off-by:
Jamie McCrae <jamie.mccrae@lairdconnect.com>
-
Michael Schmidt authored
- Supporting multiple instances of ivShMem virtual devices. - Introduces DT based configuration for ivShMem devices. - Add DTS overlay file to test new multiple ivshmem instance capability. - Enable BDF unspecified device initialization. (limited to one instance. An improved version of pcie_bdf_lookup() will come soon that fixes this limitation) - Make PCIE DTS file macros available for a proper ivshmem device properties parsing. Sample for dts file: pcie0 { label = "PCIE_0"; #address-cells = <1>; #size-cells = <1>; compatible = "intel,pcie"; ranges; ivshmem0: ivshmem@800 { compatible = "qemu,ivshmem"; reg = <PCIE_BDF_NONE PCIE_ID(0x1af4,0x1110)>; label = "IVSHMEM"; status = "okay"; }; }; Signed-off-by:
Michael Schmidt <michael1.schmidt@intel.com>
-
Jamie McCrae authored
This fixes an issue with the filesystem mcumgr being registered twice in the sample application which resolves an issue with an endless loop if a mcumgr handler is used which is not registered. Signed-off-by:
Jamie McCrae <jamie.mccrae@lairdconnect.com>
-
Alexandre Bourdiol authored
OpenOCD was partially implemented in board.cmake, it is now functional. Signed-off-by:
Alexandre Bourdiol <alexandre.bourdiol@st.com>
-
- Apr 07, 2022
-
-
Gerard Marull-Paretas authored
New Sphinx version (or docutils) has slightly changed the output format for code documentation directives. These changes try to mimic previous behavior, even though it does not achieve 100% equal result. In some cases the new default style does not require further tweaks, and in some others styling as before is not possible. Signed-off-by:
Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
-
Gerard Marull-Paretas authored
breathe: for simplicity, require versions > 4.30 (lower versions have known issues, so do not take risks). Sphinx: start requiring versions >=4.x. Keep with compatible versions, since Sphinx major updrages can easily break extensions, themes, etc. sphinx_rtd_theme: upgrade to >=1.x. Again, keep with compatible versions since we have style customizations that can likely break on major upgrades. pygments: Allow any version >=2.9 (version that introduced DT support). We do not have strong compatibility requirements here. sphinx-notfound-page: Remove any requirements, we do not have strong requirements for this one. Signed-off-by:
Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
-
- Apr 05, 2022
-
-
Erwan Gouriou authored
Use of stm32cubeprogrammer runner makes life easier on test bench for this device. Though, keep openocd as default. Signed-off-by:
Erwan Gouriou <erwan.gouriou@linaro.org>
-
Erwan Gouriou authored
In order to enable use of stm32cubeprogrammer runner with twister, add "sn" tool specific option which allows to provide target serial number and hence select the target to flash when multiple ones are connected to the host. Signed-off-by:
Erwan Gouriou <erwan.gouriou@linaro.org>
-
- Mar 29, 2022
-
-
Szymon Janc authored
autopts was updated to properly require support for Accept Filter List in Auto Connection Establishment Procedure related tests. This patch enabled support for it and adds required BTP support. This was affecting following qualification test cases: GAP/CONN/ACEP/BV-03-C GAP/CONN/ACEP/BV-04-C Signed-off-by:
Szymon Janc <szymon.janc@codecoup.pl>
-
Kweh Hock Leong authored
NSEC_PER_SEC is an unsigned integer macro. Thus, -NSEC_PER_SEC will be treated as unsigned integer as well which lead to calculation error on 64bits integer variables. Added the correct type casting into the formula to fix the calculation error. Signed-off-by:
Kweh Hock Leong <hock.leong.kweh@intel.com>
-
Flavio Ceolin authored
The test is using device and device runtime power management. Just including them to the test build. Signed-off-by:
Flavio Ceolin <flavio.ceolin@intel.com>
-
Flavio Ceolin authored
Several fields on struct pm_device are just necessary when built with PM_DEVICE_RUNTIME. Signed-off-by:
Flavio Ceolin <flavio.ceolin@intel.com>
-
- Mar 23, 2022
-
-
Evgeniy Paltsev authored
We don't set core numbers for mdb-hw runner for nSIM board, so it defaults to 1, so mdb-hw runner doesn't work with SMP boards. Fix that. Signed-off-by:
Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by:
Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
-
- Mar 22, 2022
-
-
Robert Lubos authored
Closing a listening socket will set the accept callback to NULL. This could lead to a crash, in case an already received packet, finalizing the connection handshake, was processed after the socket was closed. Thereby, it's needed to verify if the callback is actually set before processing it. Signed-off-by:
Robert Lubos <robert.lubos@nordicsemi.no>
-
Robert Lubos authored
The verification function for accept() did not take into account that addr and addrlen pointers provided could be NULL. Signed-off-by:
Robert Lubos <robert.lubos@nordicsemi.no>
-
Yong Cong Sin authored
Following the merge of #42646, the http body handling can be simplified. Signed-off-by:
Yong Cong Sin <yongcong.sin@gmail.com>
-
Jordan Yates authored
Claim the net_context mutext associated with a socket before claiming the socket mutex. The receive callback claims the net_context mutex internally, which will now always succeed immediately. The TX path claims the net_context mutex before the socket mutex, and if we don't use the same order, we can end up in a deadlock. Fixes #43470. Signed-off-by:
Jordan Yates <jordan.yates@data61.csiro.au>
-
Robert Lubos authored
TCP module can report EAGAIN in case TX window is full. This should not be forwarded to the application, as blocking socket is not supposed to return EAGAIN. Fix this for sendmsg by implementing the same mechanism for handling TX errors as for regular send/sendto operations. Signed-off-by:
Robert Lubos <robert.lubos@nordicsemi.no>
-
Szymon Janc authored
This was affecting following qualification test cases: GAP/SEC/SEM/BV-56-C GAP/SEC/SEM/BV-57-C GAP/SEC/SEM/BV-58-C GAP/SEC/SEM/BV-59-C GAP/SEC/SEM/BV-60-C GAP/SEC/SEM/BV-61-C Signed-off-by:
Szymon Janc <szymon.janc@codecoup.pl>
-
Szymon Janc authored
Core Specification 5.3 clarified security requirements for GATT client when handling incoming notifications and indications. Vol 3: Part C: 10.3.2.2: "...Since the configuration is persistent across a disconnection and reconnection, the client shall check the security requirements against the configuration upon a reconnection before processing any indications or notifications from the server. Any notifications received before the security requirements are met shall be ignored. Any indications received before the security requirements are met shall be confirmed and then discarded. ..." Signed-off-by:
Szymon Janc <szymon.janc@codecoup.pl>
-
Andrzej Głąbek authored
Fix a copy/paste mistake introduced by commit fdc25cd4. Signed-off-by:
Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
-
Jordan Yates authored
Only run the `uninit` function if the SPI instance has previously been configured. This stops an assertion in the HAL drivers from triggering due to running `uninit` without a previous `init`. Fixes #42299. Signed-off-by:
Jordan Yates <jordan.yates@data61.csiro.au>
-
- Mar 17, 2022
-
-
Piotr Pryga authored
ll_adv_set stores poitner to direction finding TX configuration. When ll_reset is executed the pointer was not NULL assigned. That lead to erroneous behavior e.g. df_cfg->is_enabled was set to TRUE even the functionality was not enabled. DF configuration is stored in memory pool. The memory pool uses free elements to store its internal data. On reset whole pool is expected to be free, so ll_adv_set->df_cfg may not point to any element allocated from memory pool. Signed-off-by:
Piotr Pryga <piotr.pryga@nordicsemi.no>
-
- Mar 16, 2022
-
-
Tomasz Bursztyka authored
When Zephyr runs directly on actual hardware, it will be always directing MSI messages to BSP (BootStrap Processor). This was fine until Zephyr could be ran on virtualizor that may NOT run it on BSP. So directing MSI messages on current processor. If Zephyr runs on actual hardware, it will be BSP since such setup is always made at boot time by the BSP. On other use case it will be whatever is relevant at that time. Fixes #43853 Signed-off-by:
Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
-