Alan Carvalho de Assis
1be9d7c57f
esp32s3-devkit: Initialize EFUSE driver
2023-01-20 15:40:46 +08:00
Alan Carvalho de Assis
adc5f52fcf
esp32s3: Add support to EFUSE
2023-01-20 15:40:46 +08:00
Max Kriegleder
57034f483d
esp32: fix lower half oneshot for usage with nxsched_oneshot_start
2023-01-20 15:39:47 +08:00
Jukka Laitinen
e2a7cee5ed
arch/mpfs: Make selection of SBI boot or direct boot run-time configurable
...
Allow bootloader to select run-time whether the payload binary is booted with
SBI or directly by jumping to entrypoint address.
- Use just one bitmask to select sbi or direct boot for each hart
- Add mpfs_set_use_sbi function to allow selecting how to boot
- Initialize the bitmask by default according to the configuration flags
- Add a header file for including the function prototypes in bootloader code
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2023-01-20 00:08:51 +08:00
Xiang Xiao
931677a86e
tools: Add showstack.sh to parse *.su files
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-19 10:35:20 -03:00
Xiang Xiao
fd64e38072
build: Add STACK_USAGE(-fstack-usage) to assist the stack analysis
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-19 10:35:20 -03:00
Peter Bee
ab059a7ba3
Documentation/p/a/rp2040: add docs for waveshare-rp2040-lcd-1.28
...
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2023-01-19 18:52:01 +08:00
Ville Juven
6c2e0b7333
mm/mm_extend: Increase total heap size accordingly
...
When adding more heap memory, the total heap size was not updated. This
results in a crash in mm_mallinfo:
DEBUGASSERT((size_t)info->uordblks + info->fordblks == heap->mm_heapsize);
This commit fixes this issue
2023-01-19 16:41:43 +08:00
Xiang Xiao
82550887c2
c++: Change the default value of CXX_STANDARD from c++17 to gnu++17
...
since many 3rd party code use some gnu c++ extension
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-19 08:21:48 +01:00
Xiang Xiao
6b1e0ad1c4
tm4c1294-launchpad/Kconfig: Fix warning: defaults for choice values not supported
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-19 08:21:35 +01:00
Masayuki Ishikawa
138f3faeef
boards: sabre-6quad: Adjust TCP and UDP configurations
...
Summary:
- This commit adjusts TCP and UDP configurations based on
sabre-6quad/configs/netnsh/defconfig
Impact:
- sabre-6quad only
Testing:
- Tested with QEMU-7.1
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2023-01-19 08:09:33 +01:00
Gustavo Henrique Nihei
11e401c0bc
esp32[c3|s3]: Fix relative path in file header
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-01-19 10:11:34 +08:00
Gustavo Henrique Nihei
5a25b46b8b
esp32[c3|s3]: Improve documentation of Linker Scripts
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-01-19 10:11:34 +08:00
Gustavo Henrique Nihei
2436065096
espressif: Add missing Apache Foundation copyright header
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-01-19 10:11:34 +08:00
Gustavo Henrique Nihei
ed91c97f93
xtensa/esp32: Remove deprecated CONFIGFILE variable
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-01-19 10:11:34 +08:00
Xiang Xiao
530e67ba4b
fs: Define DT_xxx to number directly
...
and map DTYPE_xxx to DT_xxx like other OS
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-19 00:52:25 +02:00
Peter Bee
85f57fb50c
boards/arm/rp2040: add waveshare rp2040 lcd 1.28
...
Added board files and sample configs for waveshare-rp2040-lcd-1.28.
https://www.waveshare.com/wiki/RP2040-LCD-1.28
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2023-01-18 19:31:43 -03:00
Peter Bee
9deeae0dee
boards/arm/rp2040: add gc9a01 drivers
...
Added gc9a01 drivers to rp2040
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2023-01-18 19:31:43 -03:00
Peter Bee
5d08844413
boards/arm/rp2040: move duplicate peripheral configs to common
...
Kconfigs with same names in different files could not be handled
correctly
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2023-01-18 19:31:43 -03:00
Masayuki Ishikawa
dc454765fb
Revert "add holder for mutex"
...
This reverts commit fc176addeb
.
2023-01-19 06:04:48 +09:00
Jukka Laitinen
5920a8b673
mm/mempool/mempool_multiple.c: Remove void * arithmetic
...
Cast substraction arguments to FAR char *, which gives the same result as the
gcc extension on the original void * arithmetic.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2023-01-18 22:03:17 +08:00
To Doan Ngoc Hai
6ca75deec8
drivers/can/can.c: Change size_t type printf formatter %d -> %zu
2023-01-18 22:03:17 +08:00
Ville Juven
0922121bc0
riscv/addrenv: Do not free physical memory for SHM area
...
SHM area is just mapped memory, the physical backup is not owned by the
process, so the process must not free it.
In ARM this is already handled as the regions are destroyed one by one,
while this implementation does a page directory walk instead.
2023-01-18 21:59:55 +08:00
David
c19b5eeb8d
Add support of CAN character device for tm4c1294 launchpad.
2023-01-18 12:15:53 +01:00
David
5dbd082fad
Bugfix of typo in tiva_can.c
2023-01-18 12:15:53 +01:00
Gustavo Henrique Nihei
a4c9da9280
xtensa/esp32: Fix ESP32_SPIRAM_USER_HEAP under Protected mode
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-01-18 17:41:09 +08:00
Gustavo Henrique Nihei
e451b43798
xtensa/esp32: Improve Wi-Fi driver to support MM_KERNEL_HEAP
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-01-18 17:41:09 +08:00
Gustavo Henrique Nihei
705e29fb27
xtensa/esp32: Support allocation of userspace heap into External RAM
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-01-18 17:41:09 +08:00
lilei19
fc176addeb
add holder for mutex
...
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-01-18 17:40:58 +08:00
chao an
64dd7e6376
net/tcp: add Selective-ACK support
...
Reference:
https://datatracker.ietf.org/doc/html/rfc2018
Iperf2 client/server test on esp32c3:
Drop(1/50):
CONFIG_NET_TCP_DEBUG_DROP_SEND=y
CONFIG_NET_TCP_DEBUG_DROP_SEND_PROBABILITY=50 // Drop probability: 1/50
CONFIG_NET_TCP_DEBUG_DROP_RECV=y
CONFIG_NET_TCP_DEBUG_DROP_RECV_PROBABILITY=50 // Drop probability: 1/50
Drop(1/50) + OFO/SACK:
CONFIG_NET_TCP_DEBUG_DROP_SEND=y
CONFIG_NET_TCP_DEBUG_DROP_SEND_PROBABILITY=50 // Drop probability: 1/50
CONFIG_NET_TCP_DEBUG_DROP_RECV=y
CONFIG_NET_TCP_DEBUG_DROP_RECV_PROBABILITY=50 // Drop probability: 1/50
CONFIG_NET_TCP_OUT_OF_ORDER=y
CONFIG_NET_TCP_SELECTIVE_ACK=y
---------------------------------------------------------
| TCP Config | Server | Client | |
|-------------------------------------------------------|
| Original | 12 | 9 | Mbits/sec |
| Drop(1/50) | 0.6 | 0.3 | Mbits/sec |
| Drop(1/50) + OFO/SACK | 8 | 8 | Mbits/sec |
---------------------------------------------------------
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-18 16:24:09 +08:00
chao an
c581cc5f9b
net/tcp: parse tcp options in common function
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-18 16:24:09 +08:00
chao an
d175f50f01
net/tcp: add out-of-order segment support
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-18 16:24:09 +08:00
chao an
0e7d397553
net/tcp: new api tcp_dataconcat() to concatenate/pack iob chain
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-18 16:24:09 +08:00
anjiahao
b362f18d6a
mempool:Calibration total memory statistics
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-18 09:02:33 +01:00
anjiahao
d846004533
mempool:use two-dimensional array avoid competition
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-18 09:02:33 +01:00
anjiahao
288725a5f8
mempool:fix a bug when use smp on mempool backtrace
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-18 09:02:33 +01:00
wangbowen6
01c96a211f
touchscreen.h: move the #ifdef CONFIG_INPUT position
...
the application can access the remote cpu touch driver by
rpmsgdev, so the defines and struct will be used even if not
enable the CONFIG_INPUT/CONFIG_INPUT_TOUCHSCREEN.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-01-18 09:02:08 +01:00
Xiang Xiao
f8d33e40ac
Fix mmap/fs_mmap.c:259:13: warning: 'mapped' may be used uninitialized in this function [-Wmaybe-uninitialized]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-18 08:40:33 +01:00
Zhe Weng
1cf3147626
net/netdev: Avoid hardcoded guardsize when using d_iob
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-18 14:41:07 +08:00
anjiahao
632ed0d3a4
Optimize multipe mempool memory space usage
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-18 14:12:45 +08:00
anjiahao
6b530fceae
mempool:change mempool_multiple way of initialization
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-18 14:12:45 +08:00
anjiahao
49ffd99eaf
mempool:use single queue insdie of list
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-01-18 14:12:45 +08:00
anjiahao
f24fb2b10a
mempool:add a private pointer to stroe private data
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-18 14:12:45 +08:00
anjiahao
e7d02ffac2
mempool:remove multiple fixed api
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-18 14:12:45 +08:00
anjiahao
f00d56337f
mempool:remove unnecessary alignment
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-18 14:12:45 +08:00
ligd
0a88799bab
sched: fix task_delete crash in SMP case
...
A testcase as following:
child_task()
{
sleep(3);
}
main_task()
{
while (1)
{
ret = task_create("child_task", child_task, );
sleep(1);
task_delete(ret);
}
}
Root casuse:
task_delete hasn's cover the condition that the deleted-task
is justing running on the other CPU.
Fix:
Let the nxsched_remove_readytorun() do the real work
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-18 14:11:18 +09:00
Dong Heng
f35f32d4ee
xtensa/esp32: Fix SPI bugs
...
1. Fix SPI master/slave clock init/deinit error
2. Fix SPI slave RX process error
2023-01-18 12:23:08 +08:00
zhangyuan21
acd108a5ed
pthread: fixed pthread_cancel and pthread_exit crash in SMP mode
...
1. When pthread exit, set the default cancellability state to NONCANCELABLE state.
2. Make sure modify tcb->flags is atomic operations.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-01-18 11:57:40 +08:00
zhangyuan21
9fd30c7f63
sched/pthread: check pthread group and flags before join
...
Prevent users from using the wrong pid and causing system crash.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-01-18 11:57:40 +08:00
Ville Juven
fb12b6e3a9
libelf/elf_addrenv_free(): Don't instantiate address environment prior to destroying it
...
Same as with group_free(), there is no need to instantiate the address
environment to destroy it.
The only problem was the ARM implementation modified the L1 mappings
in up_addrenv_destroy(), which it no longer does.
2023-01-18 11:02:19 +08:00