Bowen Wang
99876fa529
arm64/mmu_region: add ivshmem mmu region for arm64
...
Now the ivhsmem memory region can be used in arm64
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-09-10 14:34:31 +08:00
yangshuyong
6a09037efd
arm64/qemu_boot: add the pcie cfg address for arm64
...
1. Extend the arm64 address to 48bit;
2. Add pci cfg address to the mmu map table;
Signed-off-by: yangshuyong <yangshuyong@xiaomi.com>
2024-09-10 14:34:31 +08:00
Stuart Ianna
f69a62583c
arch/risc-v/src/litex: Update parameter to match new register typedef.
...
This silences the warning produced after the uintreg_t definitions was introduced in 8ebc3aa9e8
.
2024-09-10 14:03:16 +08:00
Stuart Ianna
f96370700e
arch/risc-v/src/litex/litex_serial: Fix build warning after inline spinlock change.
...
Resolves regression introduced in a4fece3450
.
2024-09-10 14:03:16 +08:00
shizhenghui
d285e5bc31
Dockerfile: add subversion to final images
...
Add subversion to install list ensure linux docker
can use svn command to download source code.
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-09-10 12:17:20 +08:00
adriendesp
42f471ba4d
Fix xmc4_spi.c DX select.
...
Added option to have different DX for each USIC channel.
2024-09-10 11:36:59 +08:00
Zhe Weng
dde7411679
netdev/statistics: Add bytes for netdev statistics log
...
Now the log looks like:
wlan0:T30/30(3385B),R(14+24)/40(6061B)
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-09-10 11:36:03 +08:00
meijian
a7224cf35a
net/netstatistics: add tx/rx bytes statistics for dev
...
We can see them in ifconfig:
ap> ifconfig
wlan0 Link encap:Ethernet HWaddr 42:64:7f:b3:12:03 at UP mtu 1500
inet addr:10.0.1.2 DRaddr:10.0.1.1 Mask:255.255.255.0
inet6 DRaddr: ::
RX: Received Fragment Errors Bytes
00000b9b 00000000 00000000 21daf5
IPv4 IPv6 ARP Dropped
00000a33 00000137 00000031 00000000
TX: Queued Sent Errors Timeouts Bytes
00000ac4 00000ac4 00000000 00000000 1a2103
Total Errors: 00000000
Signed-off-by: meijian <meijian@xiaomi.com>
2024-09-10 11:36:03 +08:00
Bowen Wang
0fbfcf4caf
virtio-blk: support called read/write in interrupt
...
Coredump need call the block read/write ops in interrupt
Not consider the ops called in thread and intterupt simultaneously.
Only used for coredump now.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-09-10 11:35:35 +08:00
zhanghongyu
cd86499e83
local_socket: add SO_SNDBUF & SO_RCVBUF support for accept socket
...
SO_SNDBUF takes effect only after the connection in STREAM mode
is successful
support full life cycle modification of SO_RCVBUF
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-09-10 11:35:15 +08:00
ligd
98c6cd45db
local_socket: add SO_SNDBUF & SO_RCVBUF support
...
lets a user program modify the size of the local_socket buffer
using setsockopt.
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-09-10 11:35:15 +08:00
zhanghongyu
420648b0c6
drivers/pipes: add fcntl(F_SETPIPE_SZ/F_GETPIPE_SZ) support
...
allows user programs to modify pipe size, but not larger than
CONFIG_DEV_PIPE_MAXSIZE
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-09-10 11:35:15 +08:00
Alin Jerpelea
41537fe90f
cmake: migrate to SPDX identifier
...
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2024-09-10 11:34:40 +08:00
Alin Jerpelea
61a4ab8966
binfmt: migrate to SPDX identifier
...
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2024-09-10 11:34:18 +08:00
Alin Jerpelea
95ef3b77c2
audio: migrate to SPDX identifier
...
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2024-09-10 11:33:26 +08:00
Alexey Matveev
f56b7b8c06
smartfs procfs: fix double declare g_smartfs_operations
2024-09-10 11:32:32 +08:00
zhangyuan29
fbc8605b27
sem: add mutex protect in sem_trywait
...
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2024-09-10 01:26:31 +08:00
makejian
3240540952
pthread/realtime: export interfaces about pthread ceiling priority
...
pthread_mutex_setprioceiling and pthread_mutex_getprioceiling refers
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutex_setprioceiling.html
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-10 01:26:31 +08:00
makejian
85f8677e21
nxmutex: export priority ceiling interfaces with nxsem
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-10 01:26:31 +08:00
makejian
ee78219f9c
semaphore: export priority ceiling interfaces in semaphore
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-10 01:26:31 +08:00
makejian
bcb90fab7c
nuttx/crypto: export Diffie-Hellman algorithm
...
Supplementary CRK_DH_MAKE_PUBLIC and CRK_DH_COMPUTE_KEY with curve25519
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-09 23:55:33 +08:00
makejian
882c09abb3
nuttx/crypto: export ecdsa sign and verify in SECP256R1 curve
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-09 23:55:33 +08:00
dongjiuzhu1
cccdaf8f88
include/sensors: import public pre-processor definitions types and to uorb.h
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-09 22:40:30 +08:00
dongjiuzhu1
33f3c3552f
Revert "Fix unwanted flush in the SPI slave driver"
...
because if priv->rx_length is zero , need to call SPIS_CTRLR_QPOLL to
receive new data from lower half and update priv->rx_length.
This reverts commit 6cb649ecf6
.
2024-09-09 11:05:07 -03:00
zhanghongyu
7ba125f7cd
netdb: Make NETDB_DNSSERVER_NAMESERVERS effective for NETDB_RESOLVCONF
...
prevent the server list in resolv.conf from increasing indefinitely
the one that is overwritten is always the one configured first.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-09-09 19:47:09 +08:00
dongjiuzhu1
4e24eec7b6
sched/group/setuptask_file: duplicate idle task fd for kernel thread
...
The file descriptors of kernel threads should be clean and should
not be generated based on user threads. Instead, an idle thread
hould be chosen.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-09 19:45:29 +08:00
YAMAMOTO Takashi
0078896456
esp32: fix a way to test a config
...
found by GCC -Wundef
2024-09-09 10:48:09 +02:00
YAMAMOTO Takashi
92a2e22c6c
Restore ASSERT/VERIFY semantics
...
This partly fixes esp32-devkitc:knsh.
2024-09-09 15:25:04 +08:00
dongjiuzhu1
43d0d95f81
fs/inode: using inode reference to indicate unlink and simply code
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-09 08:42:34 +08:00
dongjiuzhu1
c6815bba3b
fs/mount: move inode_lock to before bind to avoid deadlock(nsh and rptun)
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-09 08:42:34 +08:00
Alan Carvalho de Assis
b733030532
doc: Add NuttX Simulation page from Confluence
2024-09-09 08:40:31 +08:00
yanghuatao
c43c91816d
toolchain/ghs: add ghs link script for mps2-an500 platform
...
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2024-09-09 01:26:13 +08:00
dongjiuzhu1
2a8c023357
fs/inode: using orig_row to ensure correct free logic
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-09 01:24:08 +08:00
dongjiuzhu1
6542806248
fs/inode: fix assert when free error address
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-09 01:24:08 +08:00
dongjiuzhu1
c978f2fe4c
drivers/mtd/bch: fix size_t overflow when offset > 4GB
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-09 01:23:02 +08:00
Huang Qi
9d5b9b7c05
Documentation: Add usage guide for the debugpoint command
...
See https://github.com/apache/nuttx-apps/pull/2549
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-09-08 21:43:47 +08:00
George White
3f00c4aae0
rp2040: support pico-sdk 2.0.0
...
Since the introduction of the rp2350, the pico-sdk project has been
re-arranged and elf2uf2 has been merged in to a new 'picotool' binary
which is supplied and installed separately.
2024-09-08 21:43:22 +08:00
dongjiuzhu1
5f0230d79f
drivers/bch: fix uint32 overflow issue
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-08 21:42:38 +08:00
guoshichao
99df615c9b
toolchain/ghs: fix the ghs build warning
...
CXX: libcxxmini/libxx_new.cxx cxarm: cxarm: cxarm: cxarm: Warning: cxarm: cxarm: Unknown option "--gnu++17" passed to linker
Warning: Warning: Warning: Warning: cxarm: Unknown option "--gnu++17" passed to linker
Unknown option "--gnu++17" passed to linker
Warning: Unknown option "--gnu++17" passed to linker
Unknown option "--gnu++17" passed to linker
Unknown option "--gnu++17" passed to linker
Warning: Unknown option "--gnu++17" passed to linker
CXX: libcxxmini/libxx_newa.cxx cxarm: Warning: Unknown option "--gnu++17" passed to linker
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2024-09-08 21:42:13 +08:00
hujun5
41e976d119
libs/libc/queue: inline queue list to improve performance
...
add a config CONFIG_LIBC_INLINE_QUEUE to inline the queue list
test:
We can use qemu for testing.
compiling
make distclean -j20; ./tools/configure.sh -l qemu-armv8a:nsh_smp ;make -j20
running
qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic -machine virt,virtualization=on,gic-version=3 -net none -chardev stdio,id=con,mux=on -serial chardev:con -mon chardev=con,mode=readline -kernel ./nuttx
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-09-08 18:13:33 +08:00
hujun5
1e57a5653c
sched/sched: simplify the implementation of the function nxsched_readytorun_setpriority
...
Configuring NuttX and compile:
$ ./tools/configure.sh -l qemu-armv8a:nsh_smp
$ make
Running with qemu
$ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic \
-machine virt,virtualization=on,gic-version=3 \
-net none -chardev stdio,id=con,mux=on -serial chardev:con \
-mon chardev=con,mode=readline -kernel ./nuttx
reason:
If the type of tcb is TSTATE_TASK_ASSIGNED, removing it using nxsched_remove_not_running
and then putting it back into the queue may result in a context switch.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-09-08 17:53:59 +08:00
hujun5
1c5a0bf6cc
irq: add [enter|leave]_critical_section_nonirq
...
Configuring NuttX and compile:
$ ./tools/configure.sh -l qemu-armv8a:nsh_smp
$ make
Running with qemu
$ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic \
-machine virt,virtualization=on,gic-version=3 \
-net none -chardev stdio,id=con,mux=on -serial chardev:con \
-mon chardev=con,mode=readline -kernel ./nuttx
reason:
In some non-irq scenarios, we can simplify
the implementation of critical sections to improve performance.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-09-08 17:50:51 +08:00
dependabot[bot]
5c90cd23f6
build(deps): bump github/super-linter from 6 to 7
...
Bumps [github/super-linter](https://github.com/github/super-linter ) from 6 to 7.
- [Release notes](https://github.com/github/super-linter/releases )
- [Changelog](https://github.com/github/super-linter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/super-linter/compare/v6...v7 )
---
updated-dependencies:
- dependency-name: github/super-linter
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-07 12:08:11 +08:00
Luchian Mihai
eadc2f5690
feat: add basic driver for amg88xx sensor
...
Basic amg88xx sensor handling (open, close, read, ioctl).
No interrupts supported. I intend to add support for this feature when I
gain more know-how on nuttx/posix.
2024-09-07 12:03:38 +08:00
p-szafonimateusz
882c0d0a47
arch/x86_64: convert all asm() to __asm__()
...
asm() is not supported by -std=c99, __asm__() is more portable
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-09-07 01:01:24 +02:00
YAMAMOTO Takashi
8b81689f2c
Appease a GCC warning
...
```
common/xtensa_swint.c:442:24: error: passing argument 1 of 'up_dump_register' discards 'volatile' qualifier from pointer target type [-Werror=discarded-qualifiers]
442 | up_dump_register(CURRENT_REGS);
| ^~~~~~~~~~~~
```
2024-09-06 21:17:57 +02:00
Jorge Guzman
ae596418ae
arm/linum-stm32h753bi: Add support to RFID MFRC522
...
Signed-off-by: Jorge Guzman jorge.gzm@gmail.com
2024-09-06 14:10:08 -03:00
ouyangxiangzhen
dc7d3470e6
arch/x86_64: Fix wrong RDTSCP implementation
...
RDTSCP instruction reads the current value of the processor’s
time-stamp counter (a 64-bit MSR) into the EDX:EAX registers, and it
also reads the value of the IA32_TSC_AUX MSR (address C0000103H) into
the ECX register. However, the current RDTSCP implementation does not
provide a hint for the compiler that ECX has been changed, resulting in
register corrupted and subtle errors.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-09-06 17:27:20 +02:00
p-szafonimateusz
e58efb17cc
qemu-intel64: simplify linker script
...
simplify linker script for qemu-intel64 - remove not needed AT instructions
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-09-06 21:01:28 +08:00
ouyangxiangzhen
f6e4ab25bd
arch/x86_64: Support QEMU PVH ELF loader
...
Enabling CONFIG_ARCH_CHIP_INTEL64_PVH_BOOT will allow nuttx.elf loaded by QEMU -kernel parameter.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-09-06 20:56:46 +08:00