zhanghongyu
99c2d2009a
udp: remove DEBUGASSERT for ip6_is_ipv4addr
...
fix build break if enable CONFIG_NET_IPv6 only
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-01-28 09:04:29 +02:00
zhanghongyu
c1521b2ef2
tcp: add TCP_ACKDATA flag to close event callback
...
The close package cannot be sent in time without TCP_ACKDATA
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-01-28 09:02:42 +02:00
zhanghongyu
3725fe28fb
tcp: fix trans data error when fast retrans
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-01-28 09:02:14 +02:00
anjiahao
ed89d7252b
minidumpserver: add arm-a support
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-28 09:00:59 +02:00
liangchaozhong
fbe641a916
socket:return -EAGAIN if timeout happends in psock_tcp_send
...
psock_tcp_send will enter busyloop state when no IOB keeps at unavailable state
when the socket is blocking socket and this will cause WDT.
According to socket's manpage, -1 should be returned while errno set to EAGAIN
if send/recv timeout was set.
Here's the description:
SO_RCVTIMEO and SO_SNDTIMEO
Specify the receiving or sending timeouts until reporting an error. The argument is a struct timeval. If an input or output function blocks for this period of time, and data has been sent or received, the return value of that function will be the amount of data transferred; if no data has been transferred and the timeout has been reached then -1 is returned with errno set to EAGAIN or EWOULDBLOCK, or EINPROGRESS (for connect(2)) just as if the socket was specified to be nonblocking. If the timeout is set to zero (the default) then the operation will never timeout. Timeouts only have effect for system calls that perform socket I/O (e.g., read(2), recvmsg(2), send(2), sendmsg(2)); timeouts have no effect for select(2), poll(2), epoll_wait(2), and so on.
Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
2023-01-28 08:06:57 +02:00
Peter Bee
fa17262e5d
Doc/rp2040: fix typo
...
Missing blank line in waveshare-rp2040-lcd-1.28
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2023-01-28 13:19:16 +08:00
anjiahao
287467b81b
netdb: Add return check in rexec_af
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-27 15:31:28 -03:00
dongjiuzhu1
f325ed7180
sys/epool.h: add EPOLLET (edge-triggered) flag to fix compile break
...
dbus/dbus/dbus-pollable-set-epoll.c:258:18: error: ‘EPOLLET’ undeclared
(first use in this function); did you mean ‘EPOLLERR’?
258 | event.events = EPOLLET;
| ^~~~~~~
| EPOLLERR
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-01-27 15:30:55 -03:00
Xiang Xiao
ac3a667860
Fix chip/intel64_handlers.c:136: error: "SIGFPE" redefined [-Werror]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-27 13:21:49 -03:00
dongjiuzhu1
937bb44c45
signal: add marco _NSIG
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-01-27 13:21:49 -03:00
yintao
739be67744
sched: Add SIGFPE, SIGILL and SIGSEGV definition
...
Signed-off-by: yintao <yintao@xiaomi.com>
2023-01-27 13:21:49 -03:00
Ville Juven
42d0e356c2
arch/addrenv: Change group_addrenv_t to arch_addrenv_t
...
This is preparation for moving address environments out of the group
structure into the tcb.
Why move ? Because the group is destroyed very early in the exit phase,
but the MMU mappings are needed until the context switch to the next
process is complete. Otherwise the MMU will lose its mappings and the
system will crash.
2023-01-27 23:17:01 +08:00
David
22feaeeebb
Bugfixed the SocketCAN send via setting the dev->d_len to dev->d_sndlen. The dev->d_len wouldn't be assigned otherwise.
2023-01-27 23:08:05 +08:00
Max Kriegleder
8c465a64b9
stm32h7: add lower half timer driver
2023-01-27 13:29:10 +08:00
Petro Karashchenko
8e72b07a62
nuttx: Add missing FAR and CODE
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-27 13:23:25 +08:00
Alan Carvalho de Assis
e0cb643545
Update arch/xtensa/src/esp32s3/esp32s3_rng.c
...
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-27 13:16:35 +08:00
Alan Carvalho de Assis
2d635be05f
Update arch/xtensa/src/esp32s3/esp32s3_rng.c
...
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-27 13:16:35 +08:00
Alan Carvalho de Assis
f2b53d7234
Add board config example to test random number generator
2023-01-27 13:16:35 +08:00
Alan Carvalho de Assis
b27351828a
esp32s3: Add RNG driver
...
Fix multiplier noticed by Tiago
Co-author: Tiago Medicci <tiago.medicci@espressif.com>
2023-01-27 13:16:35 +08:00
Gustavo Henrique Nihei
80bbb0f24c
esp32c3: Fix IRQ initialization, it was crashing on DEBUG_ASSERTIONS
...
Co-author: Alan C. Assis <alan.carvalho@espressif.com>
2023-01-27 13:15:39 +08:00
qiaohaijiao1
adba1e5e19
arch/sim: ignore return value of snd_pcm_pause/resume
...
snd_pcm_pause, snd_pcm_resume failed with -5, -38 errno.
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2023-01-27 01:10:15 +02:00
qiaohaijiao1
05a12ba69e
sim/sim_alsa: register pcm1p/pcm1c audio device.
...
use pcm1p/pcm1c to simulate offload playback/capture.
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
2023-01-27 01:10:15 +02:00
ligd
d17b6fa58b
sim/alsa: don't let siwtch out when open alsa
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-27 01:10:15 +02:00
chao an
931a4f6969
arch/EXTRA_LIBS: link all staging library
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-27 01:08:26 +02:00
chentao9
1e8d9466d6
ref: charge: add support for voltage infomation
...
Signed-off-by: chentao9 <chentao9@xiaomi.com>
2023-01-27 00:40:43 +02:00
丁欣童
63879598fa
sensors/fakesensor: fix timestamp is woring when batch.
...
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com>
2023-01-27 00:39:15 +02:00
梁超众
7b8ef5dc1b
usrsock: only TCP data should be aggregrated for rpmsg case
...
non-streaming socket's rx data should not be aggregrated.
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2023-01-27 00:38:32 +02:00
Jiuzhu Dong
5bd448825b
driver/sensor: sync set buffer number to remote proc
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2023-01-27 00:37:49 +02:00
Jiuzhu Dong
c9c5940382
driver/sensor: using recursive lock to fix deadlock beacuse rptun reentrancy
...
nxsem_wait
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../sched/semaphore/sem_wait.c:155 (discriminator 2)
sem_wait
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../sched/semaphore/sem_wait.c:273
nxmutex_lock
/home/neo/projects/monkey/nuttx/include/nuttx/mutex.h:161
nxrmutex_lock.isra.0
/home/neo/projects/monkey/nuttx/include/nuttx/mutex.h:348
sensor_rpmsg_unsub_handler
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:1048
rpmsg_virtio_rx_callback
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../openamp/open-amp/lib/rpmsg/rpmsg_virtio.c:334
virtqueue_notification
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../openamp/open-amp/lib/virtio/virtqueue.c:623
up_block_task
/home/neo/projects/monkey/nuttx/arch/arm/src/common/arm_blocktask.c:82 (discriminator 2)
nxsem_tickwait
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../sched/semaphore/sem_tickwait.c:116
rptun_wait_tx
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/rptun/rptun.c:522
rpmsg_virtio_wait_tx_buffer
/home/neo/projects/monkey/nuttx/include/openamp/rpmsg_virtio.h:120
sensor_rpmsg_push_event_one
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:778
sensor_rpmsg_alloc_stub
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:547
sensor_rpmsg_sub_handler
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:991
rpmsg_virtio_rx_callback
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../openamp/open-amp/lib/rpmsg/rpmsg_virtio.c:334
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2023-01-27 00:37:49 +02:00
fangzhenwei
8a1489c291
driver/h4:increase h4 uart tx/rx buffer default size
...
tx buffer size 1024 to 2048
rx buffer size 1024 to 8096
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2023-01-27 00:27:02 +02:00
xinbingnan
7076de9e8a
sensors/bmi160.c: fix the problem Linux SPI doesn't working properly
...
CH341A chip only supports SPI MODE0, and BMI160 supports both MODE0 and MODE3. So, changing MODE3 to MODE0 makes all cases available.
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-01-27 00:26:13 +02:00
chao an
d031989e0e
arch/arm: make DSP arch extension configurable
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-26 22:39:30 +02:00
Lucas Saavedra Vaz
bd06945de2
boards/xtensa/esp32-lyrat: Set up touch pad interruptions
2023-01-26 14:33:08 -03:00
Lucas Saavedra Vaz
eee4396b06
arch/xtensa/esp32: Add support for touch pad interruptions
2023-01-26 14:33:08 -03:00
Lucas Saavedra Vaz
c4aa37ee2f
arch/xtensa: Fix 'interruption' typos
2023-01-26 14:33:08 -03:00
Lucas Saavedra Vaz
07fd4b564d
arch/xtensa/esp32: Fix SENS_TOUCH_XPD_WAIT definition
2023-01-26 14:33:08 -03:00
zhuyanlin
3c6b844fcd
arch:xtensa:toolchain: add -Wno-atmoic-alignment flags for xcc
...
see a bug here:
https://bugs.llvm.org/show_bug.cgi?id=43603
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2023-01-26 17:11:54 +02:00
Xiang Xiao
f9836c94fb
epoll.h: Add u64 field like Linux
...
https://man7.org/linux/man-pages/man2/epoll_wait.2.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 17:11:37 +02:00
Xiang Xiao
267e80a9e7
boards: Update Administrator tea result to 8Tv+Hbmr3pLVb5HHZgd26D
...
continue the change: https://github.com/apache/nuttx/pull/6843
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 17:11:07 +02:00
Petro Karashchenko
af55d894f9
boards/spresense: remove BOARDIOC_SDCARD_SETNOTIFYCB ioctl
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 23:08:28 +08:00
Ville Juven
1c84fc9cd9
Revert "sched/release_tcb: Do not release stack for user processes here"
...
This reverts commit 1a67dc7c68
.
2023-01-26 21:15:25 +08:00
Ville Juven
29eaf95ced
Revert "sched/sched_releasetcb: Fix code style issue from prior patch"
...
This reverts commit 920956b20f
.
2023-01-26 21:15:25 +08:00
Ville Juven
686b990a85
arch/ARCH_KERNEL_STACK: Fix signal handling with kernel stack
...
There were two issues with signal handling:
- With a kernel stack the "info" parameter was passed from kernel memory.
This is fixed by making a stack frame to the user stack and copying it
there.
- If the signal handler uses a system call, the kernel stack was completely
and unconditionally destroyed, resulting in a crash in the user application
There is also no need to check ustkptr, it is always NULL. Why ? Because
signal delivery is deferred when a system call is being executed.
2023-01-26 20:41:42 +08:00
Xiang Xiao
37b8748f17
time.h: Add CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID definition
...
see the spec here:
https://pubs.opengroup.org/onlinepubs/000095399/functions/clock_getres.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 13:00:23 +02:00
duduita
2fc1192019
Add initial support to Meadow F7Micro board
2023-01-26 18:05:21 +08:00
Xiang Xiao
819fbd22cc
sched: Implement tkill/tgkill
...
https://linux.die.net/man/2/tgkill
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 08:11:56 +02:00
Xiang Xiao
34ac8b2e07
signal.h: Don't include pthread.h to avoid the mutual reference
...
let's use pthread_attr_s directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-26 08:11:56 +02:00
Petro Karashchenko
2c972bd402
fs/shm: update pointer arithmetic logic
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00
Petro Karashchenko
d35d8b4a12
fs/shm: use ERROR instead of -1
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00
Petro Karashchenko
e5dbc3328c
sched/misc/assert: remove extra indentations
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:26:09 +08:00