Yongrong Wang
1b24139020
virtio-pci/mmio: Features change to 64 bit in all virtio_dispatch and fix compile warning
...
virtio/virtio-pci-legacy.c:399:48: warning: passing argument 2 of ‘pci_bus_write_io_dword’ makes integer from pointer without a cast [-Wint-con>
399 | pci_write_io_dword(vpdev->dev, vpdev->ioaddr + VIRTIO_PCI_GUEST_FEATURES,
| ^
| |
| void *
/home/wyr/work/code/project/vela/nuttx/include/nuttx/pci/pci.h:559:65: note: expected ‘uintptr_t’ {aka ‘long unsigned int’} but argument is of >
559 | int pci_bus_write_io_dword(FAR struct pci_bus_s *bus, uintptr_t where,
| ~~~~~~~~~~^~~~~
Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
2024-10-09 23:32:58 +08:00
wangyongrong
5aeb644bc5
virtio: adapt to the new OpenAMP
...
Sync all the virtio api usage to sync with new OpenAMP
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-10-09 23:32:58 +08:00
wangyongrong
8e799ff823
rpmsg: upgrade API passing on parameters with the upgrade of OpenAMP
...
All the rpmsg transport layer and rpmsg services sync the API
with new OpenAMP
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-10-09 23:32:58 +08:00
wangyongrong
2bc9256684
openamp/libmetal.defs: fix OpenAMP upgrade err
...
fix nuttx/openamp/libmetal/lib/cpu.h don't have <metal/processor/generic/cpu.h>
error, let's use generic/cpu.h for all arch in NuttX
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-10-09 23:32:58 +08:00
wangyongrong
ef67a866f3
openamp: replace VIRTIO_DRIVER/DEVICE_ONLY to VIRTIO_DRIVER/DEVICE_SUPPORT
...
New OpenAMP change the VIRTIO_DRIVER/DEVICE_ONLY to the
VIRTIO_DRIVER_DEVCE_SUPPORT, so upgrade the NuttX OpenAMP config too
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-10-09 23:32:58 +08:00
Bowen Wang
8b4376683a
openamp: sync the openamp and libmetal to the last commit
...
Upgrade the openamp is a troublesome thing, so diretly sync the
open-amp and libmetal the newest commit.
We can update the commit and remove the patch when this patch has
been merged in the OpenAMP repo.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-09 23:32:58 +08:00
buxiasen
264252497c
pm: fix pm_wakelock_uninit api block, wd api need irq not disabled
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-10-09 23:31:49 +08:00
dongjiuzhu1
a005f4bff1
drivers/power: using baterr/batinfo to avoid frequency log output
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-09 23:31:49 +08:00
zhangshengchao
e26a01d9a6
regulator:add bypass logic when registering
...
do not control regulators when set bypass flag
Signed-off-by: zhangshengchao <zhangshengchao@xiaomi.com>
2024-10-09 23:31:49 +08:00
zhangwenjian
18497e5bc6
long double need use the format of 'Lf'
...
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2024-10-09 23:00:59 +08:00
wanggang26
955a3838f7
mmcsd: refine emmc capacity calculate
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-09 22:24:18 +08:00
liwenxiang1
4c19e75ff5
libs/x86_64:Add the setjmp/longjmp function
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 22:24:03 +08:00
yinshengkai
3271142b87
note: print without relying on format strings
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-09 22:23:29 +08:00
yinshengkai
b5cf4310cb
gote: implement asynchronous printf formatting
...
Do not format immediately when calling sched_note_printf, but delay formatting until dump trace.
After turning on SYSTEM_NOTE, similar asynchronous syslog functions can be achieved.
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-09 22:23:29 +08:00
liwenxiang1
fa48d9e972
drivers/timers:Arch_alarm and arch_timer add up_ndelay interface
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 22:11:03 +08:00
wangmingrong1
47fc3a67f7
sim/kconfig: delete non-existent dependencie
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-09 21:27:47 +08:00
yinshengkai
034af29aab
arch: adjust gcov configuration name
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-09 21:27:47 +08:00
liwenxiang1
8fe6c0ee8e
arch/x86_64: Map the new page table with read-write permissions
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 20:51:58 +08:00
Filipe Cavalcanti
42b7097cc2
xtensa/esp32s3: fix missing peripheral initialization for watchdog timer
2024-10-09 20:49:48 +08:00
liwenxiang1
eb411101c5
arch/x86_64:Configure arch delay using CONFIG_ALARM_ARCH
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 20:49:19 +08:00
ligd
17c6d2f394
arm64: update knsh qemu doc
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 20:47:43 +08:00
ligd
784937a03c
arm64: fix backtrace failed
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 20:47:43 +08:00
Bowen Wang
f172f222be
arm64_checkstack: fix crash, optimize the stack color, sync with arm
...
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 20:47:43 +08:00
wangming9
3054b1ad51
arch/arm64: Fixed arm64_cache_get_info obtaining cache.
...
Summary:
Select icache or dcache by setting register csselr_el1.
Signed-off-by: wangming9 <wangming9@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 20:47:43 +08:00
wangming9
cb62c783a9
arch/arm64: Add the interface for icache and dcache.
...
Summary:
Add up_get_icache_size、up_invalidate_icache、up_get_dcache_size
Signed-off-by: wangming9 <wangming9@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 20:47:43 +08:00
Bowen Wang
6ea3dcace4
misc/rpmsgdev: fix block mode read/write bug in rpmsgdev
...
Rpmsg dev server always open the real char device with nonblock mode,
so let client try to read/wrtie the read device every read/write
operation.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-09 19:53:28 +08:00
liwenxiang1
0647b49990
drivers/battery: Fix Goldfish Battery x64 unresponsive interrupt issue
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 18:32:29 +08:00
fangzhenwei
a6f8730c51
local_sock: fix accept use-after-free
...
we should get next waiter before acceptor released
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2024-10-09 18:16:01 +08:00
wangmingrong1
5c3025e2fb
mm/mempool: Merge two memory requests
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-09 18:15:13 +08:00
wangmingrong1
0866010101
arm64/makefile: No longer using hwasan pile insertion
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-09 18:15:13 +08:00
wangmingrong1
dd57400e7b
mm/mempool: Fix mempool tag kasan error
...
The address needs to be reset only when comparing addition, subtraction, multiplication and division addresses. Otherwise, the original address is always returned or saved.
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-09 18:15:13 +08:00
ligd
183ff9b6cc
mm/mempool: fix mempool crash when use KASAN SW_TAG
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 18:15:13 +08:00
ligd
5258e48be6
mm/heap: fix heap crash when use KASAN SW_TAG
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 18:15:13 +08:00
ligd
26dc3b297a
arm64: exclude mpu from sanitize for SMP mode
...
CPU0 boot -> mm_init() -> sannitize on -> boot other CPUs
CPU1 boot -> mpu_init -> error
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 18:15:13 +08:00
ligd
e9617583bc
arm64-r/mpu: add TBI setting to r82 when use SW_TAG
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-09 18:15:13 +08:00
jianglianfang
8b49e17f1f
stm32f429i-disco: disable TM32_FB_CMAP
...
The default bpp is STM32_LTDC_L1_L8, when TM32_FB_CMAP=y,and The default bpp is STM32_LTDC_L1_RGB565 when TM32_FB_CMAP=n. The color-format bpp of stm32f429i is 16, so we should be disable TM32_FB_CMAP, otherwise fb demo will result in an error.
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2024-10-09 18:14:52 +08:00
yinshengkai
73d9a1b4a2
sim: disable sim uart output processing
...
Using the host serial port to send data in sim will convert \r to \r\n
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-09 18:13:46 +08:00
zhangshoukui
10c0d00e6d
Fix to compile parameters not taking effect When cmake version is greater than 3.18
...
https://cmake.org/cmake/help/latest/command/set_source_files_properties.html
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
2024-10-09 18:12:50 +08:00
raiden00pl
e419d2c392
arch/arm/Kconfig: fix copy-paste error
...
ARCH_CHIP_CSK6 has nothing to do with ST chips:
fix option string and move below ST related options
2024-10-09 18:11:20 +08:00
Lup Yuen Lee
a38e533bfa
CI: Set PR Label to the Arch-Specific Board
...
This PR changes the Labeling of PRs so that the Architecture (arm, risc-v, xtensa, ...) is specified in the Board Label. Previously the CI Workflow would set Generic Board Labels like "Area: Board support". Now it will set the Arch-Specific Board Label like "Board: arm".
The Board Label will be used by the upcoming CI Build Rules to skip unnecessary builds. So "Board: arm" will enable only the builds for `arm-01` to `arm-14`. This is explained here: https://github.com/apache/nuttx/issues/13775
2024-10-09 18:00:16 +08:00
liwenxiang1
8b86f5de60
arch/x86_64: add support for thread_local
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 17:58:01 +08:00
liwenxiang1
5e15fff58a
arch/x68_64: properly align ap boot stack for vector operations
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 17:40:37 +08:00
liwenxiang1
b4c4cbc28b
arch/x86_64: Resolve weak symbol compilation relocation errors
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 17:39:42 +08:00
Windrow14
90836e5db1
libs/libc/fdt/Make.defs: cannot move due to directory not empty bugfix
...
Remove old directory so that "mv" can succeed instead of triggering "Directory not empty" error.
Signed-off-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Jacky Cao <Jacky.Cao@sony.com>
Tested-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
2024-10-09 15:42:17 +08:00
anjiahao
fa59adde40
Simplify BOARD_MEMORY_RANGE initialization logic
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-09 15:41:48 +08:00
xuxingliang
89f3ef4480
gdbstub: add RLE compression
...
Refer to
https://sourceware.org/gdb/current/onlinedocs/gdb.html/Overview.html
w/o compression, nxgcore command took 41seconds.
w compression, 28second.
If we enable `set trust-readonly-sections on` to read from elf whenever
possible, it furture reduces to 14.9seconds.
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2024-10-09 15:41:48 +08:00
yangsong8
81d704cd82
gdbstub: support the use of recvbuf and sendbuf
...
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
2024-10-09 15:41:48 +08:00
anjiahao
e007ace00d
gdbstub:support only use gdbstub when panic
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-09 15:41:48 +08:00
anjiahao
5817f6153d
gdbstub:expand buffer size to increase transfer speed
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-09 15:41:48 +08:00
anjiahao
e0bcad3a1d
gdbstub:support gdbstub memory access control
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-09 15:41:48 +08:00