yangguangcai
475bbfc165
nxsig_clockwait: add Parameter Check.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-10-09 13:54:29 +08:00
ligd
fc73dfd368
sleep: optimize sleep logic, to reduce the disable IRQ time
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 13:54:29 +08:00
lipengfei28
42041a428c
include/nuttx.h: add common align definitions for nuttx
...
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-09 13:52:01 +08:00
lipengfei28
4ebf830bbd
userspace: Exclude nuttx/arch.h
...
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-09 13:52:01 +08:00
Bowen Wang
acbe19d744
pci_drivers: move qemu edu and test device header content to pci_drivers.h
...
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-09 13:52:01 +08:00
lipengfei28
1ce6ec7c65
declare pci_dev_register
...
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-09 13:52:01 +08:00
lipengfei28
bc6cd326b8
pci test drv is pci rc drv not pci ep drv
...
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-09 13:52:01 +08:00
xuxin19
8efe6cb235
cmake:enhance compile options for custom toolchain,implement the REVERSE
...
opt of `add_compile_options()`
add global moudle `nuttx_remove_compile_options()`.
define custom board toolchain introduction.
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-09 13:48:11 +08:00
hujun5
e01d6b26cc
sched/group: There is no need to use sched_[un]lock
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-09 13:46:33 +08:00
Lup Yuen Lee
c74206a982
CI: Split the Build Job arm-05 into multiple smaller jobs
...
CI Build Job `arm-05` (runtime 2 hours) has become the Performance Bottleneck for CI Workflow. That's because `arm-05` builds too many targets for nRF, RP2040, SAM 3, SAM A and SAM D. This PR splits `arm-05` into multiple smaller jobs, to reduce the CI Build Duration.
Before the PR: `arm-05` is overloaded, build requires 2 hours
- `arm-05` (2 hours): nRF, RP2040, SAM 3, SAM A, SAM D
- `arm-06` (56 mins): STM32 [a-m]*
After the PR: `arm-05` is offloaded (to `arm-06` and `arm-07`), completes within 1 hour
- `arm-05` (47 mins): nRF
- `arm-06` (1 hour): Reserve for RP2040 exclusively
- `arm-07` (1 hour 15 mins): SAM 3, SAM A, SAM D, STM32 [a-m]*
Build Jobs are sorted by Target Name. So we cascade the changes and rename the Build Jobs: `arm-07` becomes `arm-08`, `arm-08` becomes `arm-09` etc. Then `arm-13` becomes a new job `arm-14`. (Which we added to `build.yml`)
Performance of `arm-05` is discussed in https://github.com/apache/nuttx/issues/13775 and https://github.com/apache/nuttx/issues/12773
2024-10-09 13:45:26 +08:00
zhangjun21
d21f10bea6
case SIOCGIWNAME: add filter out non-802.11 interfaces
...
netdev_wifr_ioctl SIOCGIWNAME cmd, need to filter out non-802.11 interfaces
Signed-off-by: zhangjun21 <zhangjun21@xiaomi.com>
2024-10-09 12:43:54 +08:00
Xiang Xiao
6493022047
netlink: Remove the dead code in netlink_close
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-09 12:38:54 +08:00
Xiang Xiao
06d5fe6b33
netlink: Format and algin netlink.h
...
refactor only, no functional change.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-09 12:38:54 +08:00
Xiang Xiao
35d3365577
fs/vfs: Avoid calling stat with oldrelpath twice in mountptrename
...
and return error directly if stat return failure
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-09 12:38:12 +08:00
hujun5
17ca45e8a3
sim: fix sim smp boot regression
...
This commit fixes the regression from https://github.com/apache/nuttx/pull/13716
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-09 12:33:21 +08:00
Bowen Wang
23b40818cb
misc/dev_mem: fix compile error in aarch64
...
misc/dev_mem.c:203:24: error: comparison between two arrays [-Werror=array-compare]
203 | bool merge = (_edata == _sbss);
| ^~
misc/dev_mem.c:203:24: note: use '&_edata[0] == &_sbss[0]' to compare the addresses
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-09 12:11:20 +08:00
xuxingliang
3d31e84749
fs: fix wrong config for FS_SHMFS
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-09 10:18:15 +08:00
ligd
d473fa24a7
mq: correct inode release in mq_inode_release()
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 10:17:24 +08:00
Xiang Xiao
b068e2357a
circbuf: Move from mm/circbuf to libs/libc/misc
...
so that it can be used by userspace program.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-10-09 08:41:49 +08:00
Neo Xu
066cd799d4
boards/arm/stm32/stm32f429i-disco: use serial console by default
...
Make it easy to access for beginners, using the default serial as console.
Enable wdog sched note.
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-10-09 08:39:58 +08:00
xuxingliang
5dffc61097
sched/note: add wdog note for segger sysview
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-09 08:39:58 +08:00
xuxingliang
bc5a337a58
sched/note: add note for wdog module
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-09 08:39:58 +08:00
wangxiaoxin
8c36784aba
Modify SIOCGCANSTATE/ SIOCSCANSTATE ioctl num
...
Notes:
Duplicate with other ioctl numbers
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2024-10-09 08:39:14 +08:00
wangxiaoxin
983f263ea6
add can/lin controller status
...
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2024-10-09 08:39:14 +08:00
chenzhijia
5f2bd4c655
drivers/coresight:Add TRFCR_EL1 initialization
...
Add TRFCR_EL1 initialization in ETM4 driver
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-09 08:37:48 +08:00
chenzhijia
6f8501e564
nuttx/drivers:Fix coresight compilation error
...
CC: coresight/coresight_etm4.c coresight/coresight_etb.c: In function 'etb_open':
coresight/coresight_etb.c:334:19: error: implicit declaration of function 'enter_critical_section' [-Werror=implicit-function-declaration]
334 | flags = enter_critical_section();
| ^~~~~~~~~~~~~~~~~~~~~~
coresight/coresight_etb.c:346:11: error: implicit declaration of function 'leave_critical_section' [-Werror=implicit-function-declaration]
346 | leave_critical_section(flags);
| ^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-09 08:37:48 +08:00
chenzhijia
a443a37390
drivers/coresight:ETM4 setup
...
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-09 08:37:48 +08:00
chenzhijia
48a5419005
drivers/coresight:Add caps member to coresight_desc_s for etr
...
Add caps member to coresight_desc_s for etr and fix etr compilation error
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-09 08:37:48 +08:00
chenzhijia
49ad5e05d5
drivers/coresight:Fix coresight_replicator.c compilation error
...
Fix coresight_replicator.c compilation error, ret is not initialized
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2024-10-09 08:37:48 +08:00
fangpeina
b5145c528e
misc/assert: add backtrace dump support for mutex hold task
...
Signed-off-by: fangpeina <fangpeina@xiaomi.com>
2024-10-09 08:37:01 +08:00
ligd
f7f8f6c104
rpmsg_socket: add shutdown support
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 08:36:19 +08:00
yinshengkai
6ce7b70a3a
note: change sched_note_counter to a macro
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-09 02:51:23 +08:00
wangmingrong1
ba05a36eed
board_reset: flush cache before reset
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-09 02:30:21 +08:00
yintao
583dd00034
net/rpmsg: add SO_SNDBUF and SO_RCVBUF support
...
Signed-off-by: yintao <yintao@xiaomi.com>
2024-10-09 02:22:02 +08:00
ligd
6dc08ee681
pci: fix compile failed, fdt_get_reg_base() need 3 args
...
goldfish: fix compile failed, fdt_get_irq_by_path() need 4 args
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 02:18:49 +08:00
Bowen Wang
ba18f87a9e
devicetree/fdt: fix fdt_get_reg_size() get wrong size
...
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 02:18:49 +08:00
zhengyu9
323e2518d9
drivers/devicetree/fdt: get 'reg' property
...
Original code can only deal with single 'address & size' cell
Add function dealing with multiple 'address & size' cell
Add function getting 'bankwidth' property, for cfi-flash device
Signed-off-by: zhengyu9 <zhengyu9@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 02:18:49 +08:00
liwenxiang1
cd03ec3266
arch/x86_64:Add check stack function
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 01:53:09 +08:00
liwenxiang1
afe1cc59b6
arch/x86_64: Add vfork support
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 01:41:35 +08:00
fangxinyong
f2cc9e8410
fs: support VFS-based named event group
...
This extension for the event group, to establish a connection between
named event groups and a task. The task may reference the event group
associated with a VFS-based name. Then the event group can be used
in subsequent calls to nxevent_wait() or nxevent_post().
This is an internal OS interface and should not be used by applications.
Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2024-10-09 01:40:00 +08:00
ouyangxiangzhen
c0ae6525c4
sched/signal: Fix compilation errors for MSVC.
...
This commit removed empty struct to fix compilation errors for the MSVC compiler.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-09 01:36:39 +08:00
cuiziwei
39576af753
libcxxabi: Optimize cxx code size
...
enable LIBSUPCXX:
text data bss dec hex filename
93080 592 5472 99144 18348 nuttx/nuttx
enable LIBCXXABI:
before:
text data bss dec hex filename
126468 352 5960 132780 206ac nuttx/nuttx
after:
text data bss dec hex filename
68048 352 5960 74360 12278 nuttx/nuttx
Summary:
Optimize text segment code size by about 46%.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-09 01:35:13 +08:00
likun17
a9c1684a1e
usensor.c:fix container_of member error.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-10-09 01:33:19 +08:00
buxiasen
d6348d85f0
board/opensbi: exclude procfs/memdump to save .data size
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-08 23:55:59 +08:00
buxiasen
6e057f5e62
board/mcuboot: exclude procfs/memdump to save .text size
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-08 23:55:59 +08:00
xuxingliang
74725b9412
procfs: access tcb in critical section
...
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-08 23:55:59 +08:00
buxiasen
8def44b65a
mm/dump: pretty the log and thin dump call
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-08 23:55:59 +08:00
anjiahao
fb176c02ca
gdb/thread.py:Remove dependence on g_current_regs
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-08 23:55:59 +08:00
buxiasen
067ec7bab1
fs/procfs: fix cmake no mm_pressure, fix kernel build error
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-08 23:55:59 +08:00
anjiahao
60aa08e365
procfsmeminfo:move heap name to last,avoid display misalignment
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-08 23:55:59 +08:00