YanXiaowei
356ddee5b8
support trace_beginex and trace_endex
...
Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com>
2024-10-13 10:23:44 +08:00
hujun5
fa8ccc0e85
sched: fix nxsched_suspend_scheduler regression
...
This commit fixes the regression from https://github.com/apache/nuttx/pull/13877
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-13 10:16:22 +08:00
zhanghu5
f8f6bfff29
use r1-r3 as tmp register
...
Signed-off-by: zhanghu5 <zhanghu5@xiaomi.com>
2024-10-13 10:12:27 +08:00
chao an
c37b0de28c
libc/atomic: decoupling atomic and spinlock to avoid recursion
...
1. use irq save in AMP mode
2. use critical section in SMP mode
Signed-off-by: chao an <anchao@lixiang.com>
2024-10-13 10:00:22 +08:00
chenrun1
9e81f5efac
Revert "sched/spinlock: remove nesting spinlock support"
...
This reverts commit 5aa13bc490
.
2024-10-13 09:41:59 +08:00
chenzhijia
505adfa277
nuttx:move "#define STRINGIFY(x)" to nuttx/macro.h
...
Franklin requirement, "#define STRINGIFY(x)" conflicts with https://github.com/mborgerding/kissfft define
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-13 03:16:25 +08:00
Xiang Xiao
08829bd388
mtd/nvs: Trigger recovery process in nvs_startup
...
when mtd driver return -EBADMSG
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 03:10:19 +08:00
yinshengkai
38e474b0c5
libc: add CRC-8-ROHC support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-13 03:09:26 +08:00
yangshuyong
c1eee1cc29
Changed the i3c_priv_xfer's member to flags from rnw
...
Signed-off-by: yangshuyong <yangshuyong@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-13 02:49:05 +08:00
Xiang Xiao
7b2dbcf50a
drivers/optee: Return error if optee_recv return prematurely
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 02:48:29 +08:00
Xiang Xiao
a074a572af
sched/pthread: Remove unused pthread_sem_xxx functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 02:47:44 +08:00
liwenxiang1
015a45517e
mempool: add the minimum size configuration of mempool
...
The minimum size of mempool can be configured through CONFIG_MM_MPOOL_MINISIZE
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-13 02:46:57 +08:00
Bowen Wang
821196eb22
lib_uuid_create: try use hardware random number generators first
...
Try the hardware random number generators is better for uuid generator
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:44:25 +08:00
liwenxiang1
8d09eaaee0
libs/libc:Openlibm adds exp10 and exp10f function implementations
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-13 02:31:44 +08:00
liwenxiang1
1c65fbf15a
libc/newlib:Declaration of adding depth
...
Resolve the issue of inability to compile when opening newlib
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-13 02:30:51 +08:00
Bowen Wang
101b147a24
lib_memoryregion: fix the comments about the memory flags
...
Follow the elf format, correct the memory region flag description:
Executable 0x1, Writable 0x2, Readable 0x4
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:28:55 +08:00
Bowen Wang
143466baed
drivers/pci: fix pci framework warning in 32bit chip
...
In file included from pci/pci.c:30:
pci/pci.c: In function 'pci_setup_device':
pci/pci.c:449:66: warning: right shift count >= width of type [-Wshift-count-overflow]
449 | pci_write_config_dword(dev, base_address_1, res->start >> 32);
| ^~
pci/pci.c: In function 'pci_presetup_bridge':
pci/pci.c:541:51: warning: right shift count >= width of type [-Wshift-count-overflow]
541 | ctrl->mem_pref.start >> 32);
| ^~
pci/pci.c: In function 'pci_postsetup_bridge':
pci/pci.c:604:57: warning: right shift count >= width of type [-Wshift-count-overflow]
604 | (ctrl->mem_pref.start - 1) >> 32);
| ^~
CC: pthread/pthread_release.c pci/pci_ecam.c:71:12: warning: initialization of 'int (*)(struct pci_bus_s *, unsigned int, int, int, uint32_t *)' {aka 'int (*)(struct pci_bus_s *, unsigned int, int, int, long unsigned int *)'} from incompatible pointer type 'int (*)(struct pci_bus_s *, uint32_t, int, int, uint32_t *)' {aka 'int (*)(struct pci_bus_s *, long unsigned int, int, int, long unsigned int *)'} [-Wincompatible-pointer-types]
71 | .read = pci_ecam_read_config,
| ^~~~~~~~~~~~~~~~~~~~
pci/pci_ecam.c:71:12: note: (near initialization for 'g_pci_ecam_ops.read')
pci/pci_ecam.c:72:12: warning: initialization of 'int (*)(struct pci_bus_s *, unsigned int, int, int, uint32_t)' {aka 'int (*)(struct pci_bus_s *, unsigned int, int, int, long unsigned int)'} from incompatible pointer type 'int (*)(struct pci_bus_s *, uint32_t, int, int, uint32_t)' {aka 'int (*)(struct pci_bus_s *, long unsigned int, int, int, long unsigned int)'} [-Wincompatible-pointer-types]
72 | .write = pci_ecam_write_config,
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:28:32 +08:00
hujun5
444a9fbcd6
pthread: We should not directly include arch/spinlock.h as it may cause compilation errors in C++.
...
Instead, we should use nuttx/spinlock.h.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-13 02:27:58 +08:00
Bowen Wang
bc97e73aee
include/.gitignore: add openlibm to gitignore
...
avoid git add incorrect files
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:27:28 +08:00
yintao
e435fca0e2
fs_file.c: modify files_countlist comments
...
Signed-off-by: yintao <yintao@xiaomi.com>
2024-10-13 02:27:02 +08:00
wangmingrong1
c9db6e8173
CI: CI Docker adds Python package installation
...
1. Add Python tool 'install CI' to MSYS2 platform
2. CI Python Add Package Construction
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-13 02:25:29 +08:00
xuxin19
7def0983f6
cmake:sync arm sub arch CMake scripts missing sources
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-13 02:25:06 +08:00
xuxin19
4667163152
cmake:add driver thermal CMake scripts
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-13 02:25:06 +08:00
xuxin19
351781d601
cmake:refine nuttx cmake build system fix CMake build missing part
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-13 02:25:06 +08:00
Xiang Xiao
a5aea61537
driver: Post sempahore only when it's value is smaller than one
...
to avoid waking up the waiting thread redundantly.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 02:12:01 +08:00
Bowen Wang
c86f4d66da
tools/showsize.sh: support pass custom nuttx executable
...
Use showsize.sh to show custom elf file top10 size
tools/showsize.sh vela_ap.elf
tools/showsize.sh vela_audio.elf
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:11:12 +08:00
Xiang Xiao
17cb6ed63d
sched/instrument: rename stack_record.c to stack_monitor.c
...
to align with gprof naming convention.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 02:10:41 +08:00
lipengfei28
e7326cfa62
arch/arm64: add CONFIG_ARCH_VMA_MAPPING
...
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-13 02:09:38 +08:00
xuxin19
2a51f4e394
cmake(feat):support define additional config option for CMake
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-13 02:08:38 +08:00
xuxin19
7b807a3947
cmake:fix x86_64 cmake configured warning
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-13 02:08:38 +08:00
yinshengkai
0132d98e41
sched: delete the dump file list when the thread exits
...
Accessing the filelist of other tasks when the thread exits may cause a crash
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-13 02:06:38 +08:00
yinshengkai
c23878e442
sched: modify CONFIG_DUMP_ON_EXIT to CONFIG_SCHED_DUMP_ON_EXIT
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-13 02:06:38 +08:00
wangchen
be17bf2f86
net:when work_cancel_sync is excuted,it releases net_lock
...
the modification is to solve the deadlock caused by work cancel not releasing netlock
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2024-10-13 02:05:26 +08:00
wangchen
b791e27a8d
igmp_group.c:add work_cancel_sync in igmp_grpfree
...
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2024-10-13 02:05:26 +08:00
wangchen
78b64cc220
igmp_leave:add check of dev status in igmp_leavegroup
...
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2024-10-13 02:05:26 +08:00
fangpeina
3f1fd42f73
drivers/input: fix complie err about undefined
...
There will be compilation errors about undefined reference to `enter_critical_section'.
Fixed by include irq.h
Signed-off-by: fangpeina <fangpeina@xiaomi.com>
2024-10-13 02:03:40 +08:00
wangchen
7dcbd235fc
netdev:In netdev_default,If there is only one loopback network devices, it returns NULL
...
Referring to Linux,if there is only a loopback network device and the destination address does not belong to the loopback address, then the loopback network devices is not selected
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2024-10-13 02:02:54 +08:00
Bowen Wang
b5b0430c39
net/vsock: add AF_VSOCK address family
...
Add AF_VSOCK address family support, This is the vsock framework
preparation patch.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:02:03 +08:00
hujun5
7ab27ec1c8
sched: replace sync pause with async pause for sched_backtrace
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-13 01:54:14 +08:00
buxiasen
4b7493901e
sched_backtrace: fix when dump running thread in other-core
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-13 01:54:14 +08:00
p-szafonimateusz
4e69a3d2db
include/nuttx/arch.h: MSI alloc API should be always available
...
MSI-like interrupts delivery can be used also for other devices than PCI, e.g HPET
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-10-13 00:33:29 +08:00
yangguangcai
80f2890c17
systick:when isr_handle is NULL will be crash.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-10-13 00:32:55 +08:00
xuxin19
1bba720c2f
build.yml:disable CMake Ninja for Msys2
...
CI in the msys2 environment, the CMake ninja generator
will have a problem with parameters being too long
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-12 22:02:52 +08:00
Marco Casaroli
a2b129fb1d
ci: use venv for check
...
To avoid the following CI error:
This environment is externally managed
--> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
2024-10-12 20:46:47 +08:00
wangmingrong1
b12bf1ef33
arm/cmake: fix cmake compile error
...
1. The -c parameter should not be added during the link phase, otherwise the link will fail.
2. If it is the clang compiler, its toolchain library should use --print-file-name to find it, otherwise an error will occur
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-12 20:37:43 +08:00
ska
3b273b1e3e
Revert "nuttx/arch: Enabling ARCH_MATH_H is required when compiling sim with …"
...
This reverts commit 57e901e5ea
.
2024-10-12 19:45:25 +08:00
raiden00pl
23d7e176c5
Documentation: cosmetic fixes to follow documentation convention
2024-10-12 18:12:10 +08:00
Bowen Wang
9363033356
tlsr82/nsh: set LIBC_RAND_ORDER be 0 to fix compile error
...
tc32-elf-ld generated: In function `nrand_r':
/data/project/code/vela-pt/nuttx/libs/libc/stdlib/lib_srand.c:241: undefined reference to `__fixunsdfsi'
telink compiler do not support float point, so set LIBC_RAND_ORDER
to be 0 to avoid function srand() use float point.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-12 18:11:58 +08:00
Jinliang Li
36c63705db
armv8-r/gicv3: disable 64bits access gic 64bits registers
...
When neon is enabled, compiler may optimize 64bits access to vstr, that
will cause data aborts.
Split 64bits access to double 32bits access for GIC_IROUTER/GICR_TYPER,
just like linux.
Signed-off-by: Jinliang Li <lijinliang1@lixiang.com>
Signed-off-by: chao an <anchao@lixiang.com>
2024-10-12 18:11:00 +08:00
Bowen Wang
e040a747aa
board/qemu-armv7a: use fdt_pci_ecam_register() to register pci ecam
...
Now qemu-armv7a can use the pci drivers
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-12 18:10:19 +08:00