chao an
c3ddb1507b
tools/unix.mk: Pass APPDIR to arch's Makefile
...
make link custom library from apps/staging working
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-31 16:53:33 +08:00
Xiang Xiao
55679aec5f
drivers/camera: Support the private data for imgsensor and imgdata
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-31 08:04:39 +01:00
David Vosahlik
372fee9412
Added SocketCAN driver implementation to the tiva chip, modified the EK-TC1294XL launchpad board to use the new SocketCAN API
2023-01-31 14:07:23 +08:00
yinshengkai
3f97a87162
tools: add separate flags parameter for COMPILE/COMPILEXX
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-31 13:42:33 +08:00
dongjiuzhu1
74e032e924
drivers/pipes: fix write busy loop because POLLOUT always ready.
...
the size of pipes buffer +1 as compensate the full indicator
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-01-31 12:45:16 +08:00
Xiang Xiao
004853d6d1
drivers/watchdog: Fix the wrong value of WATCHDOG_AUTOMONITOR_PING_INTERVAL
...
if CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL equals 0, we should set
WATCHDOG_AUTOMONITOR_PING_INTERVAL to CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT / 2, not 0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-31 11:54:36 +08:00
Huang Qi
570c7587c7
risc-v/Toolchain.defs: Correct indent
2023-01-31 11:19:47 +08:00
Zhe Weng
c9e52cb283
net: Implement shutdown() for local stream socket
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-31 11:15:01 +08:00
Zhe Weng
d3dd349649
net: Implement shutdown() for usrsock
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-31 11:15:01 +08:00
Zhe Weng
8819eeaf15
net: Implement shutdown() interface and tcp shutdown
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-31 11:15:01 +08:00
Xiang Xiao
fcdba7a3ef
sim/usrsocktest: Enable CONFIG_DEBUG_ASSERTIONS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-31 12:08:05 +09:00
lilei19
1d8af7e105
add holder for mutex
...
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-01-31 12:08:05 +09:00
Nathan Hartman
6b89b6f945
Remove executable permissions from source files
...
* arch/arm/src/sama5/sam_flexcom_spi.h,
arch/risc-v/src/mpfs/mpfs_ihc_sbi.c,
drivers/usbdev/adb.c,
libs/libc/math/lib_scalbn.c,
libs/libc/math/lib_scalbnf.c,
net/ipfrag/Make.defs,
net/ipfrag/ipfrag.c,
net/ipfrag/ipfrag.h,
net/ipfrag/ipv4_frag.c,
net/ipfrag/ipv6_frag.c: Remove executable permission.
2023-01-30 20:34:51 -03:00
Nathan Hartman
f63754c4c0
arch/tiva: Remove dead store
...
* arch/arm/src/tiva/common/tiva_can.c:
(tiva_can_initialize): Remove the local variable 'canmod', which was
assigned but never used.
2023-01-31 01:36:09 +08:00
helei8
4b4004b874
drivers/mmcsd: Add MMC_IOC_CMD ioctl
...
Signed-off-by: helei8 <helei8@xiaomi.com>
2023-01-30 14:09:23 -03:00
Zhe Weng
ff68d9ac04
net/tun: Change TUN/TAP to use IOB
...
TUN/TAP is not working after IOB offload, try to fix.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-31 00:39:15 +08:00
Zhe Weng
be89bcc044
mm/iob: Support negative offset when copyin/out.
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-31 00:39:15 +08:00
chao an
0f35ad29a8
arm/unwinder: set default unwinder type to arm exidx/extab
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-31 00:38:42 +08:00
Zhe Weng
af0a35f9ae
net/slip: Change SLIP to use IOB
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-30 23:42:01 +08:00
wangxuedong
ba016eb5eb
libc/stdio: fix rounding errors for fractional values less than 1
...
Signed-off-by: wangxuedong <wangxuedong@xiaomi.com>
2023-01-30 23:39:56 +08:00
chao an
fa63da22ae
libs/netdb: add sanity check to avoid null pointer reference
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-30 23:37:29 +08:00
anjiahao
6f2f62f4ce
watchdog:fix Kconfig typo
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-30 15:49:50 +01:00
Ville Juven
0bebb94923
icicle/configs: Update some configs
...
- Remove the annoying color terminal for nsh target
- Add SHMFS for nsh and pnsh
- Increase stack user and kernel sizes for kernel mode
2023-01-30 21:57:25 +08:00
yinshengkai
2466c07aa3
libc/stream: fix syslogstream_addstring length error
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-30 14:27:04 +01:00
Jiuzhu Dong
17f410e647
arch/sim: add toolchain library libm
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2023-01-30 20:32:14 +08:00
Fotis Panagiotopoulos
2fe8f37001
Fixed non-UTF characters.
2023-01-30 20:08:03 +08:00
chao an
ac77492dd1
sim/rpserver/rpproxy: remove colon from syslog prefix
...
Before:
[server: ] show_tasks: PID PRI STACKBASE STACKSIZE COMMAND
[server: ] dump_task: 0 0 0xfff8e088 69600 Idle Task
After:
[server] show_tasks: PID PRI STACKBASE STACKSIZE COMMAND
[server] dump_task: 0 0 0xff870c58 69600 Idle Task
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-30 20:07:04 +08:00
chao an
2ffe564fa2
fs/procfs: sort level0 process id
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-30 14:57:43 +08:00
Masayuki Ishikawa
2ae8a9600f
boards: imxrt1060-evk: Fix iperf performance for netnsh
...
Summary:
- Before: iperf -s 94Mbps, iperf -c 0Mbps
- After : iperf -s 94Mbps, iperf -c 93Mbps
Impact:
- Should be none
Testing:
- Tested with iperf and telnet
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-01-30 13:25:15 +08:00
Masayuki Ishikawa
7af531f677
boards: sabre-6quad: Add netnsh_wb
...
Summary:
- This commits adds netnsh_wb which enables write buffers.
Impact:
- None
Testing:
- Tested with iperf (-s 205Mbps, -c 176Mbps) on QEMU-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-01-30 13:25:15 +08:00
Xuxingliang
7c9b362705
sensors/ioctl: add common cmd for accelerators
...
Signed-off-by: Xuxingliang <xuxingliang@xiaomi.com>
2023-01-30 12:03:26 +08:00
wangbowen6
81d37d0320
mm_memalign: avoid two adjacent free nodes situation.
...
Original code assumes the previous node in physical must be
ALLOCED, but other thread may free the previous node between
mm_malloc() and mm_lock(), and the original code didn't condsider
this, which will cause two adjacent free nodes situation and this
should not be happened.
This commit will merge the previous node and node if the previous
node is free to avoid the situation discribed above.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-01-30 11:47:06 +08:00
anjiahao
3cfd8a350b
sys/queue.h: remove CONFIG_ALLOW_MIT_COMPONENTS
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-30 11:26:04 +08:00
梁超众
b33474cb11
free TCP rx buffer immediately in tcp_close
...
Issue:
TCP rx buffer is freed after 4-way handshake with current design.
3 socket's rx buffer might be consumed during ffmpeg switch music procedure,
and this might cause IOB exhausted.
Solution:
free TCP rx buffer immediately in tcp_close to make sure IOB won't be
exhausted.
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-30 11:25:36 +08:00
chao an
98e1f9c36d
net/tcp: reuse common api to replace some ip select code
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-30 11:25:10 +08:00
rajvinder kaur
2b30f17607
stm32h7: socket CAN error handling.
2023-01-30 11:22:49 +08:00
Oleksandr Oryshchenko
0842a291e0
[Drivers] Add smart_loop_register_driver call to drivers_initialize
2023-01-30 11:09:40 +08:00
Oleksandr Oryshchenko
28f92e8238
[MTD/SmartFS] Extract register_driver call to own function
2023-01-30 11:09:40 +08:00
Xiang Xiao
631a8da1e2
sched: Map SCHED_OTHER to SCHED_FIFO or SCHED_RR
...
this behaviour is explicitly specified here:
https://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_08.html
and map SCHED_NORMAL to SCHED_OTHER like Linux:
https://man7.org/linux/man-pages/man7/sched.7.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-30 03:01:03 +02:00
chao an
2ad0a02182
sched/pthread: set default pthread name to parent's name
...
Align ps behavior with linux:
linux:
$ ps -e -T | grep hello
3758130 3758130 pts/10 00:00:00 hello
3758130 3758131 pts/10 00:00:00 hello
nuttx:
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK COMMAND
...
4 4 100 FIFO Task --- Waiting Signal 00000000 067504 hello
5 4 100 FIFO pthread --- Waiting Signal 00000000 067536 hello 0x561cef0dfc53 0x1
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-30 02:59:17 +02:00
pengyiqiang
0443889124
sim_framebuffer: fix fb_pollnotify not called
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-01-29 17:34:36 -03:00
ligd
9e39600c83
arch: fix sim_x11events calls but sim_x11initialize() hasn't ready
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-29 17:34:36 -03:00
dongjiuzhu1
e02a5a70eb
fs/partiton: add sanity check
...
mmcsd_spi don't support ioctl
when blocksize is zero, will cause crash.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-01-29 17:30:51 -03:00
dongjiuzhu1
224f53fe02
lib/math32.h: support LOG2_CEIL/LOG2_FLOOR function at compile time
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-01-29 17:29:19 -03:00
chao an
82520c0006
arm/itm_syslog: remove invaild select config
...
1. CONFIG_SYSLOG has been removed by Nutt on below commit:
| commit c5ac473bc0
| Author: Gregory Nutt <gnutt@nuttx.org>
| Date: Tue Jun 21 07:58:42 2016 -0600
|
| SYSLOG: Remove an obsolete, unused configuration item from Kconfig file
2. Fix comile warning
| armv7-m/arm_itm_syslog.c: In function 'itm_syslog_initialize':
| armv7-m/arm_itm_syslog.c:183:18: warning: passing argument 1 of 'syslog_channel' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
| 183 | syslog_channel(&g_itm_channel);
| | ^~~~~~~~~~~~~~
| In file included from armv7-m/arm_itm_syslog.c:29:
| nuttx/syslog/syslog.h:155:49: note: expected 'struct syslog_channel_s *' but argument is of type 'const struct syslog_channel_s *'
| 155 | int syslog_channel(FAR struct syslog_channel_s *channel);
| |
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-29 19:54:55 +08:00
zhangyuan21
e6d2f0623a
backtrace: use CURRENT_REGS when in interrupt context
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-01-29 02:48:00 -08:00
liangchaozhong
ade9d39478
make iperf works on SIM platform
...
Solution:
1. enable iperf on SIM projects
2. enlarge IOB's settings
Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-29 16:20:02 +08:00
genghuihui
63387a4a50
feature:add audio AUDIOIOC_SETPARAMTER ioctl command
...
add AUDIOIOC_SETPARAMTER iotcl command in include/nuttx/audio/audio.h
Signed-off-by: genghuihui <genghuihui@xiaomi.com>
2023-01-29 14:40:40 +08:00
qinwei1
b989e4f3a6
arch:arm64: add support for nuttx arm64 Toolchain Selection
...
Summary:
1. to enable Toolchain select Kconfig option, making something depend on
the opton to be configured with menuconfig
Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2023-01-29 14:37:16 +08:00
zhanghongyu
e0c97ca742
dns: packed dns_header_s and dns_question_s
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-01-29 14:35:01 +08:00