Skip to content

Conversation

@rlubos
Copy link
Contributor

@rlubos rlubos commented Oct 20, 2021

ncs-loot output after the reverts and the upmerge:

=== zephyr (zephyr)
     NCS commit: db56184c6e2a30ad45f273d4d8126dd6d88a929b
upstream commit: 3f826560aaf81a444018293bd6acce3c339fe150
OOT patches: 32 total
- 29515ab4573fa3b8c4f23cd3d632f4b2c89b1103 [nrf noup] ci: Add Jenkins-based CI for zephyr
- d9b367aa47cd23b075458f22264e4996bf8e2727 [nrf noup] ci: Compliance workflow downstream tweaks
- ad7f60e54ad1a7e08aae58aeb5e4e53f9be8f8d7 [nrf noup] ci: set `ZEPHYR_<MODULE_NAME>_KCONFIG` for NCS modules
- 77e60e662ff4d31f2d9020019cfce2f2b52d9755 [nrf noup] doc: remove Kconfig reference
- 52fe3c89826a87f758d632e45ef1377332b987d0 [nrf noup] include: net: add NCS extensions
- ab16331de501629e14fa965dda18a6b542c78631 [nrf noup] net: lib: mqtt: Provide option to enable TLS session caching
- 3accd993e23572e51eda58bb37f37a57c4209616 [nrf noup] net: l2: Kconfig: Add option for Zigbee L2 layer
- 1a6d50b4e4c45535192bbc7b3c83ee27577e618b [nrf noup] drivers: ieee802154: secure services and tf-m
- b3214a1cf7defb0a2c546581435f7627b76f6d45 [nrf noup] Bluetooth: Bluetooth configuration for RPC
- 26c6ff335900d62bdf1f50359cf9294871096792 [nrf noup] kconfig: Disallow FPU for SPM
- fe168637cd125cd37d07962fa182791cf5b17c35 [nrf noup] boards: disable BUILD_WITH_TFM on some non-secure builds
- 7c9139a300ace41d8f66270b3003684999c01d63 [nrf noup] soc: nrf: Switch null-pointer detection option to MPU
- dbf6c70e849ea2e2e85cf540c758088fc36bc5eb [nrf noup] cmake: windows: limit parallel jobs for TF-M to 1
- 2671126d02aa99a2300af349cdfdfc662279475a [nrf noup] tfm: Kconfig: Disable TFM_BL2 when using CryptoCell
- 92b131a1398397c1b9c7e70f63273812f41dde08 [nrf noup] samples: echo_server: add overlay-tfm
- 194c11196a29ac537ebb9100dcc5d1a189658eb4 [nrf noup] samples: bluetooth: hci_pwr_ctrl: add dynamic control
- 780a9e5bcb5506e0937e53127fe9484825b5b0f8 [nrf fromlist] modules: mbedtls: Provide 3rd option for MBEDTLS configuration
- cd002afa237b3506cf6991ca9fe0b1916937967e [nrf fromlist] mgmt/mcumgr: Add Kconfig option to select number ...
- ebddd97c4d395bddc381a2a8edcc8f1a66dbeb4a [nrf fromlist] Bluetooth: Mesh: Refactoring provisioning to make...
- 1a4f35f088e4c4feb2b2963e9607a2703a190d31 [nrf fromlist] drivers: nrf5: fixes for the CSL Receiver
- 3ef7602a2f1a4c5655425d9cec7072dc2a2313b5 [nrf noup] soc: Use DWT for null-pointer detection on nRF5340 net core
- 5bfea3862a45ed9beda1fa1a4f5cd2c594ab7c48 [nrf fromlist] drivers: pwm: Restore default on re-initialization
- 42c3c8e56375d5b94dc758d2472e71af915094c6 [nrf noup] Revert "bluetooth: Bluetooth configuration for RPC"
- a7f9ffdffc8fb94656c454e95eb5a2148865b80c [nrf fromtree] net: sockets: Register native TCP/UDP like any other socket type
- 7b6343a709b5631f785fdb910f736fa67b0f166e [nrf noup] net: sockets: Add symbols for native socket creation
- 3c941e3a2e0699c7e51173f8db496661dafee7ab [nrf noup] Bluetooth: update experimental for qualification
- 2f3d4a244cdb0fe61c9b62627d0df320d32fdb68 [nrf fromtree] samples/mgmt/smp_svr: Increase main stack size
- 23e5d7e4817af6ddd20dac85f4dce9dccd4cbd8d [nrf fromtree] net: sockets: Add socket processing priority
- bea405735ea0aa193d912f287853813fbfa3ab80 [nrf noup] tree-wide: support NCS Partition Manager (PM) definitions
- 9aae4ce4b9586738114feba4711a82e82a70e320 [nrf noup] dts: choose cryptocell for entropy when available
- b5a670b3bb45c519bb3e0a5bfaa08a9c1960c5ef [nrf fromlist] dts: nordic: add QSPI XIP area registers for nordic
- db56184c6e2a30ad45f273d4d8126dd6d88a929b [nrf fromlist] cmake: extensions: add NAME parameter to DT registers

I've manually checked the remaining [nrf fromlist/fromtree] commits and they're either not merged yet or present only on master, not the release branch. Feel free though to double-check after me.

Chen Peng1 and others added 30 commits September 29, 2021 14:51
before running timer's timeout function, we need to make
sure that those threads waiting on this timer have been
added into the timer's wait queue, so add operations to
use timer lock to mask interrupts in z_timer_expiration_handler
function to synchronize timer's wait queue.

Signed-off-by: Chen Peng1 <[email protected]>
Corrects the spelling of "dealine" to "deadline".

Signed-off-by: Peter Mitsis <[email protected]>
Adds information to the kernel scheduling documentation explaining
how a thread's deadline is used to determine the thread's relative
priority.

Signed-off-by: Peter Mitsis <[email protected]>
Add networking relase notes based on commit history, for commits
including "net" phrase in the title.

Signed-off-by: Robert Lubos <[email protected]>
According to the state documentation, this state does not need to handle
devices:

> Runtime idle is a system sleep state in which all of the cores enter
deepest possible idle state and wait for interrupts, no requirements for
the devices, leaving them at the states where they are.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Since the tests expects devices to change states, PM_STATE_RUNTIME_IDLE
can't be used. The first state that cares about devices is
PM_STATE_SUSPEND_TO_IDLE.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Remove unnecessary condition that effectively limits the usability
of the I2S format to two channels mode only.
Although the description of the `i2s_config` structure contains
a remark that for the I2S format the specified number of channels
is ignored and always two are used, in fact only one other in-tree
driver (i2s_sam_ssc) applies such limitation.
The nRF I2S hardware has no problem with handling the I2S format
with audio data for only one channel, so there is no need for having
this limitation in the driver, and without such mode of operation of
the driver it is impossible to feed it with PCM data directly from
the PDM peripheral working in one channel mode.

Signed-off-by: Andrzej Głąbek <[email protected]>
- correct the names of buffers used by message queues so that it
  is possible to have multiple instances of the driver (in case
  such need appears in the future)
- make `stop` and `discard_rx` normal structure members, not bit
  fields, as they are modified in the interrupt handler and that
  could lead to overwriting of other bit fields located in the
  same memory unit
- add a log message providing the actual frame clock (WS) frequency
  (i.e. PCM rate) that the driver was able to configure (due to
  hardware limitations, it is not always possible to achieve the
  exact requested frequency and the driver selects the closest one
  available, so make it more visible to users

Signed-off-by: Andrzej Głąbek <[email protected]>
This allows IUT to return credits on specified L2CAP channel when
requested by Upper Tester.

Signed-off-by: Szymon Janc <[email protected]>
Rename ULL internal helper function to get the random
address.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Explicitly typecast void return for memcpy calls.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Minor indentation fixes.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Fix implementation to populate the aux, and sync offset
in the latest PDU. If both the current and latest of the
double buffer has been filled and LLL did not pick the
latest PDU, then the offset should be filled into the latest
PDU (and not into the first/current PDU).

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Add implementation to set correct Advertiser's clock
accuracy value in the auxiliary pointer field in the common
extended payload format.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Add FIXME comments for missing use of channel selection
algorithm for Periodic Advertising chained PDUs.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Add implementation defined channel index in the auxiliary
pointer of the common extended payload format in the primary
channel PDUs and the same be used in the transmission of
auxiliary PDUs.

Fixes #35668.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Use defines for aux pointer offset unit value.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Have separate Bluetooth Device address get and read
functions, remove use of function just to return Extended
Advertising Random address and replace with simple
assignment statement.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Verify that the local identity loaded from the settings key is
valid for the current configuration.

Signed-off-by: Joakim Andersson <[email protected]>
Change the way the local IRKs are accessed to be consistent with the
all other uses.
Coverity thinks using the pointer to the array is suspicious in this
case.

Fixes: #38130

Signed-off-by: Joakim Andersson <[email protected]>
From time to time, measured slice time is one less/more than requested.
Fixes #35793

Signed-off-by: Alexandre Bourdiol <[email protected]>
Fix deadlock in multiple peripheral connection in a device
due to redundant double reservation of node rx buffer during
crossover scenario in Data Length Update procedure.

Data Length Update resize state was reset back to response
wait state when peripheral received an acknowledgment to
local initiated Data Length Request PDU after having already
transitioned to resize state.

Implementation is designed to transition to resize state
under both Data Length Response reception and crossover
scenario of Data Length Request reception when procedure is
local initiated.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Removed the bt_conn_unref from the deferred_work function.
For ISO, the conn unref for the peripheral will happen in
the bt_iso_disconnected function. For the central, the
unref shall only happen when the CIG is terminated.

Signed-off-by: Emil Gydesen <[email protected]>
Fixes: #38403

Changing Bluetooth drivers from being a menu into a menuconfig.
This aligns the Bluetooth driver configuration with other driver
configurations as well as provides a setting which identifies if
Bluetooth drivers has been enable.

This further helps to avoid empty Zephyr libraries for bluetooth
samples.

Signed-off-by: Torsten Rasmussen <[email protected]>
Fixes: #38403

Adding NET_DRIVERS menuconfig so that network drivers are grouped
together in its own menu entry under drivers, similar to most other
drivers.

This further has the advantages that `CONFIG_NET_DRIVERS` can be used
for testing to determine if network drivers has been selected.

This changed revealed a dependency loop where both `select` (for SLIP)
and `depends` (for PPP) which both depends on NET_DRIVERS` where in use
in the dependency tree for Qemu networking, especially NET_SLIP_TAP.

This is handled by defaulting `NET_DRIVERS` to `y` when building for a
Qemu target.
`SLIP` had a dependency to `!QEMU_TARGET || NET_QEMU_SLIP`. This is
changed so that SLIP prompt depends on `!QEMU_TARGET` which provides
full user control in hardware but makes the symbol promptless on Qemu
targets.

Signed-off-by: Torsten Rasmussen <[email protected]>
No sources were ever added to the `zephyr_library()` defined in
modules/hal_nxp/usb/CMakeLists.txt, thus removing this lib to avoid
the warning:

> No SOURCES given to Zephyr library: modules__hal_nxp__usb
>
> Excluding target from build.

Signed-off-by: Torsten Rasmussen <[email protected]>
Fixes: #38403

The two eth_native_posix.c and eth_native_posix_adapt.c are now added
to the common drivers__ethernet Zephyr library.

Instead of creating a dedicated library for just two files those files
are now added to the common ethernet library, see also #8826.
Instead, the dedicated compile definitions required for those files are
specified using COMPILE_DEFINITIONS on the source files.

This also avoids the following warning as the ethernet library is no
longer empty.

> No SOURCES given to Zephyr library: drivers__ethernet
>
> Excluding target from build.

Signed-off-by: Torsten Rasmussen <[email protected]>
Fixes: #38403

Removing unneeded `imply GPIO` and `CONFIG_GPIO=y` occurrences where no
files are added to the gpio zephyr library.

Also removed `CONFIG_GPIO=y` occurences where this is handled by
defconfigs for the soc or board.

Selection of GPIO without selecting any drivers results in the warning:

> No SOURCES given to Zephyr library: drivers__gpio
>
> Excluding target from build.

Signed-off-by: Torsten Rasmussen <[email protected]>
Fixes: #38403

Removing unneeded `CONFIG_CONSOLES=y` occurrences where no console
driver is selected.

Such selection results in an empty drivers__console zephyr library,
which again results in the following warning message.

> No SOURCES given to Zephyr library: drivers__console
>
> Excluding target from build.

Signed-off-by: Torsten Rasmussen <[email protected]>
Adding support for automatic testing OOB Authentication method.

Signed-off-by: Agata Ponitka <[email protected]>
sjanc and others added 24 commits November 10, 2021 11:53
…uffers count

GATT/SR/GAW/BV-10-C requires more buffers as it tests nested long
writes.

Signed-off-by: Szymon Janc <[email protected]>
(cherry picked from commit d7b37d8)
Signed-off-by: Robert Lubos <[email protected]>
…ls options

This allows for better control over IUT behaviour by Upper Tester.

PTS and TS require inconsistent behaviour in terms of how IUT should
return credits. Some tests require return on explicit UT request and
some require that IUT returns credits autonomously.

Signed-off-by: Szymon Janc <[email protected]>
(cherry picked from commit 17c0132)
Signed-off-by: Robert Lubos <[email protected]>
GAP/CONN/DCON/BV-01-C test case needs directed advertising
support.

Signed-off-by: Ilhan Ates <[email protected]>
(cherry picked from commit 69abe7d)
Signed-off-by: Robert Lubos <[email protected]>
Showing mac address in scanning results.

Signed-off-by: Jani Hirsimäki <[email protected]>
(cherry picked from commit e913fda)
Signed-off-by: Robert Lubos <[email protected]>
If CONFIG_WIFI_ESP_AT_SCAN_MAC_ADDRESS: mac addr included in
scanning results.
if CONFIG_WIFI_ESP_AT_SCAN_PASSIVE: passive scanning is used instead of
default active scanning.
If CONFIG_WIFI_ESP_AT_SCAN_RESULT_RSSI_ORDERED: scanning response
ordered by RSSI.

Signed-off-by: Jani Hirsimäki <[email protected]>
(cherry picked from commit f2859f9)
Signed-off-by: Robert Lubos <[email protected]>
Align `otPlatRadioSetMacKey` with latest upstream changes.

Signed-off-by: Eduardo Montoya <[email protected]>
(cherry picked from commit b945d7a)
Signed-off-by: Robert Lubos <[email protected]>
Implement the iscntrl() function, which returns whether a character is a
control one or not.

Ref: https://en.cppreference.com/w/c/string/byte/iscntrl

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 38f6fd0)
Signed-off-by: Robert Lubos <[email protected]>
OpenThread has lately got an option to provide a custom
crypto backend that replaces the default, based on mbedTLS
API. Implement a backend based on ARM PSA crypto API that
is better suited for applications willing to take advantage
of the ARM trust zone technology.

Add Kconfig option: OPENTHREAD_CRYPTO_PSA_ENABLE which
enables that backend.

Also, another Kconfig option:
OPENTHREAD_PLATFORM_KEY_REFERENCES_ENABLE, implied by the
former, which enables usage of key references instead of
literal keys in OpenThread. It will eventually allow
OpenThread applications to keep sensitive data such as
encryption keys in the secure storage, accessible from the
secure world only.

Signed-off-by: Damian Krolik <[email protected]>
(cherry picked from commit 726656d)
Signed-off-by: Robert Lubos <[email protected]>
The OpenThread stack uses uint32_t to calculate expiry time for
alarms, while comparing to zephyr's uint64_t uptime.

This commit fixes broken milliseconds alarms after ~49.7 days of
uptime.

Fixes #39704

Signed-off-by: Pieter De Gendt <[email protected]>
(cherry picked from commit c89d5c5)
Signed-off-by: Robert Lubos <[email protected]>
Regular upmerge on October 25th 2021.

Signed-off-by: Damian Krolik <[email protected]>
(cherry picked from commit e8c7e02)
Signed-off-by: Robert Lubos <[email protected]>
…et in RCP

Upstream PR 40083

During stack reset in RCP, the mac keys are resseting my calling
otPlatRadioSetMacKey with aKeyId == 0. aKeyId == 0 was not handling
properly since it is not valid for mac keys. This commit fixes it.

Signed-off-by: Lukasz Maciejonczyk <[email protected]>
Signed-off-by: Robert Lubos <[email protected]>
Upstream PR 40083

This commit makes nrf5_config_mac_keys function more generic.
Is uses lookup table for storing keys to override. It removes old keys
before storing new ones.

Signed-off-by: Lukasz Maciejonczyk <[email protected]>
Signed-off-by: Robert Lubos <[email protected]>
Upstream PR 40245

OpenThread has changed it's behaviour in terms of promt prining in the
CLI module. Previously it was only printed on the UART CLI backend, now
it's printed on every CLI backend. This results in a double prompt being
printed when combined with Zephyr shell (one from OT and other form
Zephyr).

This commit adds a temporary fix to prevent OT prompt from being printed
in Zehpyr shell. As a long term solution we should add an option to
OpenThread to allow to disable prompt on the output.

Signed-off-by: Robert Lubos <[email protected]>
Updates hal_nordic revision to fix spurious USBPWRRDY events.

Signed-off-by: Johann Fischer <[email protected]>
(cherry picked from commit b52c601)
Signed-off-by: Robert Lubos <[email protected]>
Upstream PR 39762

This change adds a posibility to check the status of
remote wakeup feature.

Signed-off-by: Emil Obalski <[email protected]>
Signed-off-by: Robert Lubos <[email protected]>
…ed on disconnect

This fix not being able to re-connect channel after disconnect.

Signed-off-by: Szymon Janc <[email protected]>
(cherry picked from commit 2dbe98ce7d4dd00122b521bc5124e992f0f55a27)
Signed-off-by: Robert Lubos <[email protected]>
When user only use pb-gatt provisioning, which unable to
send out connectable advertising, due to adv thread not started.

Signed-off-by: Lingao Meng <[email protected]>
(cherry picked from commit 4ac8a824386328ac5f7b98b91168639d44131513)
Signed-off-by: Robert Lubos <[email protected]>
… in error path

bt_conn_unref() requires valid conn pointer but could be called with
NULL in case valid connection was not found in disconnect_eatt_chans().

Fixes #39851

Signed-off-by: Szymon Janc <[email protected]>
(cherry picked from commit ef0e75134ef6463025256f0904c1957b72c10693)
Signed-off-by: Robert Lubos <[email protected]>
Core Specification 5.3 Vol 3. Part G. 4.2:
The Signed Write Without Response sub-procedure shall only be supported
on the LE Fixed Channel Unenhanced ATT bearer.

This was affecting GATT/SR/GAW/BI-38-C qualification test.

Signed-off-by: Szymon Janc <[email protected]>
(cherry picked from commit c44d0230c857114ccc8b5bf37608f67e733f38f7)
Signed-off-by: Robert Lubos <[email protected]>
…onfigured_cb

Pass proper length when memsetting struct.

Signed-off-by: Szymon Janc <[email protected]>
(cherry picked from commit c9a090f1d1f6558e471ffb76cb625853374b87c9)
Signed-off-by: Robert Lubos <[email protected]>
…nged callback

This allows to track security levels and check for lost bond of peer
peripherals.

This was affecting GAP/SEC/AUT/BV-21-C qualification test.

Signed-off-by: Szymon Janc <[email protected]>
(cherry picked from commit 3bedbc0ff0cc84d080c06d870555c66738d80882)
Signed-off-by: Robert Lubos <[email protected]>
This error code informs that peer device rejected key during
keys distribution phase.

Signed-off-by: Szymon Janc <[email protected]>
(cherry picked from commit 4c32c86f0a7d839affa895d4352eb75bc74efe4a)
Signed-off-by: Robert Lubos <[email protected]>
…ed event

This event is sent if pairing failed.

Signed-off-by: Szymon Janc <[email protected]>
(cherry picked from commit e8ea882220199886cfdcc724d7a02d3c1365ed62)
Signed-off-by: Robert Lubos <[email protected]>
Upstream PR 39663

This change adds a posibility to enable low latency connection
parameters for BT when SMP commands are handled.

Support for this functionality is disabled by the default and
can be enabled by CONFIG_MCUMGR_SMP_BT_LATENCY_CONTROL=y option.

Signed-off-by: Emil Obalski <[email protected]>
Signed-off-by: Robert Lubos <[email protected]>
@rlubos rlubos force-pushed the upmerge-2021-10-20 branch from b8789bb to 3791175 Compare November 10, 2021 10:54
@rlubos rlubos requested a review from tejlmand November 10, 2021 10:56
@rlubos rlubos merged commit 3791175 into nrfconnect:main Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.