Commit Graph

58 Commits

Author SHA1 Message Date
Alin Jerpelea 1c4ebed9a4 include: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-21 00:59:40 +08:00
openvela-robot b566da436e sim:support sim elf and dynamic libs package in post build
use the dynamic library .so of the binding compilation environment,
and then modify the dynamic loader of elf at runtime to run sim elf across system versions

1.add post-build for sim build
2.collect dynamic .so and dynamic interpreter
3.add execution script for the entire package sim elf

change text-segment to 0x50000000
because patchelf will modify the .dynamic section in elf,
the upward alignment of elf will be less than 0x3fffffff,
which will cause asan shadow memory overlap error

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 00:59:38 +08:00
Alin Jerpelea 8a3b7f63ca include: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2026-04-21 00:59:19 +08:00
chao an 9fdeaa5bf4 sched/msgq: add support of System V message queue
https://man.openbsd.org/msgget.2

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:17:29 +08:00
openvela-robot 006aaae7ca fs/unionfs: fix memory leak about directory operation
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 22:17:28 +08:00
openvela-robot 164e28ee25 Initialize global mutext/sem by NXMUTEX_INITIALIZER and SEM_INITIALIZER
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:17:24 +08:00
openvela-robot 09ec366aa0 dns: Reduce the dns_lock granularity
When a7 curl calls dns_query via usrsock, it will wait a usrsock
response with the dns lock held. If a7 rptun recv a dns_addnameserver
event from another core at this time, rptun waits the lock held by
curl in callback. Then curl will never get its usrsock response with
rptun blocked, so the deadlock occurs.

This change will break lock when do usrsock request.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 22:17:18 +08:00
openvela-robot 550712eb30 Fix Error: chip/sam_udp.c:2805:1: error: unused function 'sam_ep_reserved' [-Werror,-Wunused-function]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:17:14 +08:00
openvela-robot d1a3d15eef Fix Error: chip/lpc43_tickless_rit.c:127:24: error: unused function 'lpc43_tl_get_mask' [-Werror,-Wunused-function]
static inline uint32_t lpc43_tl_get_mask(void)
                       ^
Error: chip/lpc43_tickless_rit.c:169:20: error: unused function 'lpc43_tl_get_enable' [-Werror,-Wunused-function]
static inline bool lpc43_tl_get_enable(void)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:17:09 +08:00
openvela-robot a654a66641 tools: Do not check ccname get_os() for windows native build
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 22:17:06 +08:00
openvela-robot 55503097ff sem & mq: merge mainline back
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:17:02 +08:00
openvela-robot e3f85d60dd armv7-r: fix arm_gic_nlines redefines
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:16:59 +08:00
openvela-robot ec3bff02be arch/arm/src/stm32/hardware: Add STM32G4XXX I2C related compatible 2026-04-20 22:16:53 +08:00
openvela-robot f6bcd41c8f mqueue: use to DEBUGASSERT to cover some param check
for the speed improve

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:16:49 +08:00
openvela-robot 9de9c53aca mm/tlsf:move backtrace head to user space tail
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 22:16:45 +08:00
openvela-robot 4b379db429 Revert "mm: Check the function result with suitable macro."
This reverts commit 460d94729aea753ed1d75ed868a7941d847da54b.
2026-04-20 22:16:37 +08:00
openvela-robot c30d24e971 drivers/timers/capture: Fix mutual exclusion lock 2026-04-20 22:16:34 +08:00
openvela-robot ad8d623917 xtensa/esp32s2: add i2s_mclkfrequency to set master clock on I2S 2026-04-20 22:16:30 +08:00
openvela-robot 72eaf439cd mm/mempool: support memalign about mempool and mulitple mempool
The memalign is special to multiple mempool because multiple mempool
doesn't support split and shrink chunk operate. So When you alloc a
memory block and find an aligned address in this block, you need to
occupy 8 bytes before the address to save the address of the padding
size and pool to ensure correct use in realloc and free operations.
So we will use bit1 in the previous address of the address to represent
that it is applied by memalign.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 22:16:25 +08:00
openvela-robot 0151201d17 arch/arm: Fix types.h:61:9: error: unknown type name '__UINT32_TYPE__'
regressed by: https://github.com/apache/incubator-nuttx/pull/7476

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:16:15 +08:00
openvela-robot 761acaa099 mm/tlfs: Replace sem_t with mutex_t
and sync the code with mm_heap

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:16:08 +08:00
openvela-robot b192466d93 video: Move _VIDIOCBASE and _VIDIOC to include/nuttx/fs/ioctl.h
to align with other drivers

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:16:04 +08:00
openvela-robot c67c384640 arch/arm/samv7: fix compilation warnings
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 22:15:56 +08:00
openvela-robot 7c77985a10 xtensa/esp32s2: Move linker scripts to folder common to all boards 2026-04-20 22:15:52 +08:00
openvela-robot d4f8b23288 Fix video/video.c:1458:52: error: implicit conversion from enumeration type 'enum v4l2_buf_type' to different enumeration type 'imgsensor_stream_type_t' (aka 'enum imgsensor_stream_type_e') [-Werror,-Wenum-conversion]
ret = g_video_sensor_ops->validate_frame_setting(type, nr_fmt, sf, &si);
       ~~~~~~~~~~~~~~~~~~                         ^~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:15:44 +08:00
openvela-robot 6d308c0cda tools: replace INCDIR to Makefile variable
In the past, header file paths were generated by the incdir command
Now they are generated by concatenating environment variables

In this way, when executing makefile, no shell command will be executed,
it will improve the speed of executing makfile
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 22:15:41 +08:00
openvela-robot d2fb00979a kasan: fix kasan race-condition
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:15:35 +08:00
openvela-robot 92efcae635 Revert "mpfs/mpfs_ddr.c: Stop the DDR training once it is completed"
This reverts commit ea9144bda8287e8819c08244ffbab1a45fb47204.

The commit made Icicle MPFS DDR useless. Revert the change for now.

Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2026-04-20 22:15:28 +08:00
openvela-robot cd44bbca66 Fix the format string mismatch warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:15:25 +08:00
openvela-robot 074c7e893c arch_timer: adjust timer/arch_timer to support tick
Enable CONFIG_SCHED_TICKLESS_TICK_ARGUMENT in tickless mode
to improve the performance.
2026-04-20 22:15:20 +08:00
openvela-robot 79e98fb369 mm_heap: add debug assert to check the alignment problem
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
2026-04-20 22:15:17 +08:00
openvela-robot 4d6bc89a1f nucleo-h743zi2: refresh the pysim defconfig to fix CI problem
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2026-04-20 22:15:13 +08:00
openvela-robot a16cf0bcb8 mm/mempool: update nexpand/ninitial/ninterrupt to xxxsize
Let's specify size instead of number, so that we can unify the size of
expansion memory in the multiple mempool.

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 22:15:10 +08:00
openvela-robot bc29b464fd sched/spawn: Rename task_spawnattr_[get|set]stack[size|addr] to posix_spawnattr_[get|set]stack[size|addr]
since they can be not only used in task_spawn but also in posix_spawn

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:15:06 +08:00
openvela-robot c486a43038 nuttx/sched: use pid to check idle task
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 22:15:03 +08:00
openvela-robot cbec510986 nuttx/sched: use pid to check idle task
Pid is more appropriate than the flink pointer to determine idle task,
when we want to use other data structure to optimize the task list.
2026-04-20 22:14:59 +08:00
openvela-robot 284032850f sched: catch task memory leak
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 22:14:55 +08:00
openvela-robot 0d9ccabaed Call nxsem_destroy or nxmutex_destry in the error path
1.Don't check the return value of nxsem_init or nxmutex_init
2.Fix some style issue

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:14:49 +08:00
openvela-robot b47accf844 sched: remove the unused function nx_wait and nx_waitid
This partially reverts commit de2a9d8a771ac4434d94a654e2b60c4fd0de19a1.
2026-04-20 22:14:46 +08:00
openvela-robot 18f5ba7071 mm/mempool: support multiple memory pool
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:14:39 +08:00
openvela-robot ca03155c30 net: Remove the unused nx_[send|recv]msg
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:14:36 +08:00
openvela-robot cec2c040a5 sched/semaphore: add the wdog judge before cancel
N/A

to avoid entering critical again in wd_cancel when wdog not actived. But when the wdog is actived, may add more judge
2026-04-20 22:14:31 +08:00
openvela-robot 80e66babe3 Update errno to match asm-generic
Modify some comment.
2026-04-20 22:14:27 +08:00
openvela-robot 7fdc2543f7 net: move device buffer define to common header
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:14:24 +08:00
openvela-robot d51c0173c1 fs: Remove the unused nx_[v]ioctl to prefer file_[v]ioctl for kernel
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:14:21 +08:00
openvela-robot cee2569090 esp32c3-devkit-rust-1: Remove not needed -msmall-data-limit=0 compilation flag 2026-04-20 22:14:17 +08:00
openvela-robot 327eb920a1 Fix error: mmcsd/mmcsd_sdio.c:2669:35: error: 'buffer' may be used uninitialized [-Werror=maybe-uninitialized]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:14:13 +08:00
openvela-robot f595b17aa1 doc: Add and fix Secure Boot and Flash Encryption section for ESP boards 2026-04-20 22:14:10 +08:00
openvela-robot b37e0a2994 wireless/bcm43xxx: fix build break
arm-none-eabi-ld: nuttx/staging/libdrivers.a(bcmf_driver.o): in function `bcmf_wl_set_ssid':
nuttx/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c:1893: undefined reference to `bcmf_sem_wait'

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 22:14:06 +08:00
openvela-robot 7239b56ba9 stm32fh7:Allow the use of the Network Monitor via polling
Not all boards have an interrupt line from the phy to
   the Soc. This commit allows the phy to be polled for
   link status.

   This may not work on all MAC/PHY combination that
   have mutually exclusive link management and operating
   modes. The STM32H7 and LAN8742AI do not have such a
   limitation.

Fix typos
2026-04-20 22:14:00 +08:00