Alan Carvalho de Assis
bb84b08735
esp32s3-meadow: Add NSH terminal over USB Device (not USB-JTAG-Serial)
2023-06-19 11:02:08 +08:00
Alan Carvalho de Assis
82bc515ede
esp32s3-eye: Add NSH terminal over USB Device (not USB-JTAG-Serial)
2023-06-19 11:02:08 +08:00
Alan Carvalho de Assis
985e2beae0
esp32s3-devkit: Add NSH terminal over USB Device (not USB-JTAG-Serial)
2023-06-19 11:02:08 +08:00
wangbowen6
b3fead9d28
openamp: add OPENAMP_DEBUG config to enable/disable openamp debug
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-06-18 16:17:44 +03:00
wangbowen6
fa94317447
openamp/Kconfig: add config to enable/disable the cache feature
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-06-18 16:17:44 +03:00
Xiang Xiao
9b6cd96671
mm: Rename PID_MM_INVALID to PID_MM_LEAK
...
to express the intent more clear
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-18 14:26:07 +03:00
Xiang Xiao
b00237ac01
mm: Move PID_MM_MEMPOOL after PID_MM_ALLOC
...
so the allocation from mempool could be dumped correctly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-18 09:12:14 +03:00
Xiang Xiao
f01deff80f
mm: Rename MM_BACKTRACE_XXX_PID to PID_MM_XXX
...
and move the definition to malloc.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-18 09:12:14 +03:00
Xiang Xiao
ddbe9eb6ab
mm: Rename mm_memdump_s to malltask
...
align with the naming of mallinfo_task
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-18 09:12:14 +03:00
Xiang Xiao
c76f9f9349
mm/heap: Count mm_heap_s overhead in mm_mallinfo
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-17 19:11:07 -03:00
Xiang Xiao
1d5ca4e809
mm/mempool: Avoid the allocation number of expend block equals zero
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-17 19:11:07 -03:00
Richard Tucker
225d347306
stm32 tickless: stop assertion when calling up_timer_gettime before initialised
...
up_timer_gettime can be called before module is initialised when
CONFIG_SCHED_IRQMONITOR is enabled.
This fix aligns with stm32f7 implementation.
2023-06-17 11:05:40 -03:00
Bowen Wang
69756f277e
rptun_dump: do not acquire the lock when has hold the lock
...
Otherwise, system will crash again when call rptun_dump_all()
after has acquired the lock.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2023-06-17 19:38:39 +08:00
wangbowen6
41e399aa43
rptun: init the semtx before the thread/workqueue created
...
If the rptun driver set auto start, the smetx may has been used
in rptun_notify_wait() but not inited.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-06-17 19:38:39 +08:00
wangbowen6
372fba70bb
mm_heap: dump and stat the mm_heapend node also
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-06-17 19:37:14 +08:00
wangbowen6
4b8db6f22c
taks_exithook: fix the build error when enable CONFIG_SCHED_DUMP_LEAK
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-06-17 19:37:14 +08:00
wangbowen6
940bbfc720
rpmsg: support the fdsan feature for rpmsg dev/mtd/blk
...
Directly return -ENOTTY in rpmsgxxx_ioctl() when the command is
not supported to avoid fdsan command FIOC_SETTAG and FIOC_GETTAG
pass to the rpmsg dev/mtd/blk server with CONFIG_FDSAN enabled.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-06-17 19:34:39 +08:00
Bowen Wang
8515294caa
lib_syslograwstream: fix bug when iob alloc failed
...
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2023-06-17 19:33:41 +08:00
wangbowen6
7117d3ea8a
fs_fsync: should not call fs's ioctl when fs not support sync api
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-06-17 19:31:17 +08:00
wangbowen6
279667a8f5
fs_romfs: avoid the romfs ERROR log when enable FDSAN
...
Error log:
[ 0.003400] [remote] romfs_ioctl: ERROR: Invalid cmd: 783
[ 0.003400] [remote] romfs_ioctl: ERROR: Invalid cmd: 782
[ 0.003500] [remote] romfs_ioctl: ERROR: Invalid cmd: 783
[ 0.003600] [remote] romfs_ioctl: ERROR: Invalid cmd: 782
[ 0.042900] [remote] romfs_ioctl: ERROR: Invalid cmd: 783
[ 0.043100] [remote] romfs_ioctl: ERROR: Invalid cmd: 782
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-06-17 19:31:17 +08:00
zhangyuan21
514e77b75e
semaphore: Optimize priority inheritance with only one holder
...
This PR is a modification that optimizes priority inheritance
for only one holder. After the above modifications are completed,
the mutex lock->unlock process that supports priority inheritance
can be optimized by 200 cycles.
Before modify: 2000 cycle
After modify: 1742 cycle
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-06-17 08:26:46 +03:00
Dong Heng
8f25329260
xtensa/esp32s3: SPI support quad I/O mode
2023-06-16 16:07:05 -03:00
Lucas Saavedra Vaz
fa5db655cd
boards/xtensa/esp32s3-devkit: Revert NSH defconfig deletion
...
Restore the NSH defconfig
2023-06-16 14:35:18 -03:00
Xiang Xiao
14e5bcaf6e
fs/fdcheck: Let FDCHECK depend on SCHED_HAVE_PARENT
...
since the implementation of fdcheck call getppid
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-16 18:08:05 +03:00
Xiang Xiao
275db394bc
boards/sim: Enable fdcheck and fdsan in kasan config
...
to improve the ci build coverage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-16 08:31:16 +03:00
Xiang Xiao
c49bf046bd
libc/fdcheck: Fix undefined reference to `getppid'
...
and change get[p]pid to _SCHED_GET[P]PID
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-06-16 08:31:16 +03:00
Tiago Medicci Serrano
17c65d2067
risc-v/espressif: use the unquoted CHIP_SERIES
variable
...
Instead of using `CONFIG_ESPRESSIF_CHIP_SERIES`, use the unquoted
version `CHIP_SERIES`.
2023-06-16 11:14:36 +08:00
Tiago Medicci Serrano
368b6cb489
esp32s3/wifi: update Wi-Fi driver to the newest esp-hal-3rdparty
2023-06-16 11:14:36 +08:00
Tiago Medicci Serrano
6559ac4034
risc-v/espressif: update to the newest esp-hal-3rdparty version
...
Also, get esp-hal-3rdparty by git cloning (instead of downloaded)
to enable getting its git submodules.
2023-06-16 11:14:36 +08:00
zhanghongyu
7b5af12158
statfs: add f_fsid field for third-party code compile
...
because NuttX doesn't have the device number, so we're not assigning a
valid value here. just memset to zero.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-06-16 11:10:25 +08:00
zhanghongyu
b723e90356
fs: move memset to upper lever for statfs
...
if struct statfs add new members, such as f_fsid, no additional code
changes are required.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-06-16 11:10:25 +08:00
Zhe Weng
f80539b6a8
netdev/upper: Use atomic when we have atomic support from compiler
...
Ref: How to test atomic support https://beej.us/guide/bgc/html/split/chapter-atomics.html
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-06-15 19:31:59 -03:00
Zhe Weng
483eb10f37
netdev/upper: Make quota_load public
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-06-15 19:31:59 -03:00
zhangyuan21
6ede91c5e7
sched/group: Ensure that the setting of tg_members if safe in SMP
...
Fixed ltp_stress_mqueues_multi_send_rev_1 test issue:
In SMP mode, tg_members will operate on different cores.
Adding interrupt locking operations ensures that the operation
of tg_members will not be interrupted by other cores.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-06-15 22:24:00 +08:00
Simon Filgis
04f8bab063
Dynamic adjustment of the orientation, switch orientation on the fly:
...
1. orientation is a parameter of initialize
2. y and x offset need to be adjusted with the orientaiton
3. bpp must be changed no matter what
2023-06-15 10:15:11 -03:00
zhangyuan21
fc9f87824c
sched/pthread: Return ESRCH when the task is in the process of exit.
...
Resolving the issue with the ltp_interfaces_pthread_join_6_2 test case.
In SMP mode, the pthread may still be in the process of exiting when
pthread_join returns, and calling pthread_join again at this time will
result in an error. The error code returned should be ESRCH.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-06-15 10:12:25 -03:00
zhangyuan21
c71007323e
fs/vfs: Proper use of sigisemptyset
...
Use sigandset function instead of & operation,
because the sigset_t structure has been changed.
This PR is to adapt to the changes made in #8885 .
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-06-15 10:11:36 -03:00
Dong Heng
d492823128
xtensa/esp32s3: Add USB OTG device driver
2023-06-14 18:04:27 -03:00
Lucas Saavedra Vaz
4bcf454ae5
arch/xtensa/esp32s2: Fix SPI DMA implementation
2023-06-15 03:29:30 +08:00
hujun5
b2ff151282
libc/fdcheck: if pid_expect is 0, fdcheck does not take effect
...
there are some user code like this:
/* close all inherited fds */
for (i = 3; i < maxfds; i++)
func (i);
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-06-15 03:29:17 +08:00
hujun5
04db52612e
libc/fdcheck: child process that uses the parent process'fd will crash
...
In many cases, it is legal for the child process to use the fd
created by the parent process,
so to improve compatibility, we allow the child process
to use the fd of the Parent process.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-06-15 03:29:17 +08:00
raiden00pl
387944b837
usbdev/cdcacm.c: register console only for device with minor number 0
...
With this change, we can register several CDCACM devices where one is used as a console
2023-06-14 16:24:20 -03:00
raiden00pl
2f58b55b4d
arch/{nrf52|nrf53}/usbd: various fixes to improve USB stability
...
USBD has many limitation that make it hard to work properly:
- only one EasyDMA channel which must be shared for all EPs
- only one DMA transfer can take place at a time
- some registers are unavailable during DMA transfer
- in case of any problems, the peripheral silently blocks,
or lose the transmitted bytes without information for the user
This commit is trying to fix these problem and makes the USBS stack more reliable.
Tested with high-speed CDCACM data transfers and that's the best I've been able to get in terms of stability.
2023-06-14 16:23:25 -03:00
wangchen
693898d566
netdb/dns: fix dns wrong response ID error
...
In every dns query, we use the new socket to avoid receiving last response ID
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2023-06-15 03:20:46 +08:00
Ville Juven
9b5746cb5f
riscv/barrier: Define more granular memory barriers
...
Separate barriers for full (memory + I/O) and local memory (cache) flushing.
2023-06-14 16:14:57 -03:00
Zhe Weng
f2690837e7
arch/sim: Support more sockopts on native socket
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-06-14 15:50:31 +03:00
SPRESENSE
1e7f5e8aa8
boards: spresense: Add Power domain definitions
...
Add power domain definitions for using PM System.
2023-06-14 08:49:19 +02:00
SPRESENSE
b1f3d5e573
arm/cxd56xx: Fix build error in CONFIG_PM=y
2023-06-14 08:49:19 +02:00
yanghuatao
29a336d6a8
sched/tls: remove PTHREAD_CLEANUP from Kconfig
...
use PTHREAD_CLEANUP_STACKSIZE to enable or disable interfaces pthread_cleanup_push() and pthread_cleanup_pop().
reasons:(1)same as TLS_TASK_NELEM (2)it is no need to use two variables
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2023-06-14 12:00:48 +08:00
Sebastien Lorquet
43fec5dd53
pca9555: fix const correctness of pin set parameters
2023-06-13 16:10:52 -03:00