Skip to content

Conversation

@krish2718
Copy link
Contributor

No description provided.

rlubos added 30 commits June 28, 2023 10:32
…y gain/loss"

This reverts commit 3b0ca1e.

Signed-off-by: Robert Lubos <[email protected]>
…gr ignore_iface"

This reverts commit 2eee4cb.

Signed-off-by: Robert Lubos <[email protected]>
This reverts commit 56a8441.

Signed-off-by: Robert Lubos <[email protected]>
This reverts commit dc47180.

Signed-off-by: Robert Lubos <[email protected]>
This reverts commit 10dd355.

Signed-off-by: Robert Lubos <[email protected]>
…ore array"

This reverts commit 9ff8fc2.

Signed-off-by: Robert Lubos <[email protected]>
… create connection v2."

This reverts commit 41e70dd.

Signed-off-by: Robert Lubos <[email protected]>
This reverts commit d4c8639.

Signed-off-by: Robert Lubos <[email protected]>
…r PAwR"

This reverts commit 4359077.

Signed-off-by: Robert Lubos <[email protected]>
…ction Procedure"

This reverts commit 50570ca.

Signed-off-by: Robert Lubos <[email protected]>
…nections while synced"

This reverts commit 0e9435e.

Signed-off-by: Robert Lubos <[email protected]>
…nnections from PAwR"

This reverts commit 1bf676d.

Signed-off-by: Robert Lubos <[email protected]>
… platform_allow"

This reverts commit 6e436e0.

Signed-off-by: Robert Lubos <[email protected]>
sachinthegreen and others added 24 commits August 23, 2023 17:46
…list

strtok_r is part of GNU99, but default Zephyr is built with C99, so,
the GNU headers are not pulled in, even if we add "--std=gnu99" it
won't override the C99 standard.

As a workaround for build we redefine the prototype, but this causes a
coding guideline warning, so, for now disable this warning
for strtok_r.

Upstream PR: zephyrproject-rtos/zephyr#60686

Signed-off-by: Sachin D Kulkarni <[email protected]>
Enhance wifi_mgmt group documentation by :
 - Hiding some internal entities i.e. the human-readable strings
   defined in the various static const char * const arrays, by
   marking them as @cond INTERNAL_HIDDEN blocks.
 - Moving the Wi-Fi management API page under the networking group and
   adding a human readable name.

Upstream PR: zephyrproject-rtos/zephyr#60686

Signed-off-by: Sachin D Kulkarni <[email protected]>
Thingy91 CI tests dependencies added.

Signed-off-by: Jørgen Kvalvaag <[email protected]>
MCUmgr client upload max data payload length was missing
Transport layer CRC + 16bit lenght. Full net buf packet was
possible to send but receiver side it was blocked because there
was not space for calculate CRC and length.

Signed-off-by: Juha Heiskanen <[email protected]>
(cherry picked from commit ea84ef5)
Extended the github CI filter for crypto and TF-M tests to
reduce the CI load and possibly speed up PRs.

Signed-off-by: Magne Værnes <[email protected]>
fixup! [nrf noup] modules: mbedtls: Add symbols for PAKE

Rename the SRP config:
PSA_WANT_ALG_SRP -> PSA_WANT_ALG_SRP_6

since the Oberon PSA core uses this name.

Noup since this symbol is not available upstream but only
available in the Oberon PSA core.

Signed-off-by: Georgios Vasilakis <[email protected]>
fixup! [nrf noup] modules: mbedtls: add PSA configurations

Add missing PSA configurations for:
CCM* (no tag)
HKDF expand
HKDF extract

Signed-off-by: Joakim Andersson <[email protected]>
squash! [nrf noup] modules: mbedtls: Add symbols for PAKE

Squash with new commit message:

modules: mbedtls: Add PSA symbols for Oberon PSA extension

Add PSA symbols for Oberon extension to the PSA specification.

Noup commit until we can decide a better way to include PSA extension
options, or these are accepted to be included in PSA specification
with naming for the configurations that are compatible with Mbed TLS
project.

Signed-off-by: Joakim Andersson <[email protected]>
Add Sidewalk to be trigger on changes in this repo.
Correct entry path for hci_rpmsg samples for Matter and Homekit.

Signed-off-by: Tomasz Tyzenhauz <[email protected]>
Remove HAS_NO_PM option, in preparation for a new HAS_PM option
(inverted logic).

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 26bf349)
Add a new Kconfig option that has to be selected by SoCs providing PM
hooks. This option will be now required to enable CONFIG_PM. Before this
change, CONFIG_PM could always be enabled, regardless of SoC providing
any kind of low-power support.

NOTE: commit adjusted to fix conflicts due to some missing previous
commits.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 3d2194f)
Some tests provide their own PM hooks, adapted for testing purposes. Add
a new option to select HAS_PM, so that CONFIG_PM can be enabled.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit bddf2d9)
Dummy inline functions are useful to avoid ifdeffery in code when a
certain option is not available. pm_state_set/pm_state_exit_post_ops,
are only called from the PM subsystem, so never called if CONFIG_PM=n,
that is, never surrounded with ifdeffery.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit b3fa2ee)
Any system supporting PM must now implement
pm_state_set/pm_exit_post_ops. Before this change any platform could
enable CONFIG_PM=y, even though it did nothing, ie, no power savings at
all.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit e1eedd1)
…t_post_ops

Remove unnecessary __weak attribute from power management functions.
These functions are now defined once, globally, and mandatory for
systems that support CONFIG_PM.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 55f5a75)
The PM hooks were guarded with CONFIG_PM_POLICY_CUSTOM, however, they
need to be guarded (if file is always compiled) with CONFIG_PM. In fact,
CONFIG_PM_POLICY_CUSTOM requires to implement a custom policy hook,
something this module did not provide.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit f603061)
Add a new API to perform an immediate system power off:
`sys_poweroff()`.

Until now, this functionality has been implemented via the system power
management module, but in a clunky fashion. The way system PM works is
by defining some idle states in devicetree, that, given some properties
(e.g. minimal residency, exit latency, etc.) are automatically selected
when system goes to idle based on the expected next wake-up. However,
system off is a power state that one typically wants to control manually
from the application because it implies state loss, and in most cases,
configuring some sort of wake-up source. So in general, it is not
desired to let the system enter this state automatically. This led to
the following stuff in-tree:

from `boards/arm/mimxrt595_evk/mimxrt595_evk_cm33.dts`:

```c
/*
 * Deep power-down mode is supported in this SoC through
 *  'PM_STATE_SOFT_OFF' state. There is no entry for this in device tree,
 *  user can call pm_state_force to enter this state.
 */
```

That is, state not being defined in devicetree so that PM subsystem
doesn't pick it automatically, but still implemented in in the PM hooks:

from `soc/arm/nxp_imx/rt5xx/power.c`, `pm_state_set()`:
```c
case PM_STATE_SOFT_OFF:
	set_deepsleep_pin_config();
	POWER_EnterDeepPowerDown(EXCLUDE_FROM_DEEP_POWERDOWN);
	break;
```

And to actually make use of this state, users had to do this kind of
abominations:

```c
pm_state_force(0u, &(struct pm_state_info){ PM_STATE_SOFT_OFF, 0, 0 });

/* Now we need to go sleep. This will let the idle thread runs and
 * the pm subsystem will use the forced state. To confirm that the
 * forced state is used, lets set the same timeout used previously.
 */
k_sleep(K_SECONDS(SLEEP_S));

printk("ERROR: System off failed\n");
while (true) {
	/* spin to avoid fall-off behavior */
}
```

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 90b247b)
Implement the z_sys_poweroff() hook and select HAS_POWEROFF.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 526a7bb)
Make use of the new sys_poweroff API to actually power off the system.
This lets us remove many hacks present in the sample.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 37b26f4)
Nordic SoCs do all power management automagically when going to idle (ie
k_cpu_idle()). The only extra state, system off, is now handled via
sys_shutdown(), so there's no need to support the PM subsystem.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 96b3827)
nRF53/91 require usage of nrf_regulators_system_off, so the API is not
common with nRF51/52. This was an oversight during the conversion.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit b990082)
If malloc is enabled in common libc, add support for malloc stats using
the mallinfo API.

Signed-off-by: Chaitanya Tata <[email protected]>
This is useful as a placeholder for all commands common to applications.
For now we start with malloc stats, useful in debugging HEAP issues.

Signed-off-by: Chaitanya Tata <[email protected]>
This adds basic tests in a single testcase to verify the functionality
of mallinfo2.

Signed-off-by: Chaitanya Tata <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.