Commit Graph

17640 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
a45ccc69cb [virtio] Address review feedback - simplify documentation and fix cppcheck
- Removed TESTING.md and SPECIFICATIONS.md as requested
- Simplified README.md with essential information only
- Added Chinese version README_zh.md with language links
- Fixed cppcheck AST error by rewriting version check condition
- Changed from (version != 1 && version != 2) to ((version < 1) || (version > 2))

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2025-12-04 22:42:36 +00:00
copilot-swe-agent[bot]
28683c8fec [virtio] Add VirtIO specification references document
- Added SPECIFICATIONS.md with official VirtIO spec links
- Documented v1.0, v1.1, and v1.2 specifications
- Included QEMU documentation references
- Added feature bits and status bits reference tables
- Addresses issue comment requesting specification links

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2025-12-04 15:59:50 +00:00
copilot-swe-agent[bot]
4c01059cf2 [virtio] Add comprehensive testing guide
- Added TESTING.md with test procedures for legacy and modern VirtIO
- Documented QEMU command lines for both modes
- Included device-specific testing instructions
- Added debugging tips and common issues section

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2025-12-04 15:53:55 +00:00
copilot-swe-agent[bot]
ee5dac3daa [virtio] Add comprehensive documentation and maintain backward compatibility
- Added README.md with usage guide and migration instructions
- Updated Kconfig to keep RT_USING_VIRTIO10 as alias for backward compatibility
- Documented key differences between legacy and modern VirtIO
- Added troubleshooting and contributing guidelines

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2025-12-04 15:47:55 +00:00
copilot-swe-agent[bot]
81d0c2a75d [virtio] Add modern VirtIO (v1.2.0) support with backward compatibility
- Updated Kconfig to support both legacy and modern versions
- Added version field to virtio_device structure
- Implemented 64-bit feature negotiation for modern virtio
- Updated queue initialization for modern virtio (separate desc/driver/device areas)
- Added FEATURES_OK check for modern virtio
- Updated all device drivers (blk, net, console, gpu, input) to use new APIs
- Updated BSP drivers to accept both version 1 (legacy) and version 2 (modern)

Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2025-12-04 15:41:45 +00:00
copilot-swe-agent[bot]
e12ae42809 Initial plan 2025-12-04 15:24:38 +00:00
GuEe-GUI
6fb43f6676 [PHY/OFW] Fixup the phy link up waiting forever
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-04 16:05:37 +08:00
GuEe-GUI
04af612f50 [PHY/OFW] Change the log level
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-04 16:05:37 +08:00
GuEe-GUI
7c4e928df7 [DM/PHY] Make Kconfig import for DM
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-04 16:05:37 +08:00
GuEe-GUI
62e1fe3699 [Drivers/phy] Fixup header include for v2
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-04 16:05:37 +08:00
GuEe-GUI
798c84647c [DM/I2C] Update I2C for DM
1. Add get id match data API.
2. Set I2C device name default before adding to bus.
3. Add Kconfig import for DM.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-04 16:00:13 +08:00
GuEe-GUI
e5db582cfa [DM/MISC] Update MISC API
1. Fixup RT_DIV_ROUND_DOWN_ULL and RT_DIV_ROUND_UP_ULL, rt_do_div.
2. Support RT_DIV_ROUND_CLOSEST_ULL.
3. Make new DIV API.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-04 15:59:52 +08:00
GuEe-GUI
1e82368778 [DM/CAN] Update CAN for DM
1. Kconfig import wtih DM
2. Add DM API for Drivers

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-04 15:55:33 +08:00
GuEe-GUI
4337d7fb30 [DM/PCI] Fixup the C99, 6.8.1 Labeled statements p4
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-04 15:53:55 +08:00
Rbb666
35816c14b7 [action]Add automatic testing for SMP. 2025-12-04 15:53:07 +08:00
GuEe-GUI
2ffa4f3d60 [DFS] Support 9PFS
What is 9PFS (https://en.wikipedia.org/wiki/9P_(protocol)):
9P (or the Plan 9 Filesystem Protocol or Styx) is a network protocol developed for the Plan 9 from Bell Labs distributed operating system as the means of connecting the components of a Plan 9 system. Files are key objects in Plan 9. They represent windows, network connections, processes, and almost anything else available in the operating system.

rt-thread could share filesystem in VM mode with 9pfs such as QEMU...

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-04 15:48:28 +08:00
Tm-C-mT
acef64ed2a [libcpu-riscv]: [surpport SMP]: Add SMP support for qemu-virt64-riscv
1.Add the necessary function declarations for SMP enablement and implement the corresponding
functionalities, including rt_hw_secondary_cpu_up, secondary_cpu_entry, rt_hw_local_irq_disable,
rt_hw_local_irq_enable, rt_hw_secondary_cpu_idle_exec, rt_hw_spin_lock_init, rt_hw_spin_lock,
rt_hw_spin_unlock, rt_hw_ipi_send, rt_hw_interrupt_set_priority, rt_hw_interrupt_get_priority,
rt_hw_ipi_init, rt_hw_ipi_handler_install, and rt_hw_ipi_handler.

2.In the two functions (rt_hw_context_switch_to and rt_hw_context_switch) in context_gcc.S,
add a call to rt_cpus_lock_status_restore to update the scheduler information.

3.If the MMU is enabled, use the .percpu section and record different hartids by configuring
special page tables; if the MMU is not enabled, record them directly in the satp register.
Additionally, add dynamic startup based on core configuration.The .percpu section is only used
when both ARCH_MM_MMU and RT_USING_SMP are enabled. However, there is a certain amount of space
waste since no macro guard is added for it in the link script currently.

4.The physical memory of QEMU started in CI is 128MB, so RT_HW_PAGE_END is modified from the
original +256MB to +128MB. Modify the SConscript file under the common64 directory to include
common/atomic_riscv.c in the compilation process.

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-12-04 15:42:09 +08:00
Tm-C-mT
dd19c0eb72 [utest]: Solve the address misalignment issue of atomic operations
In smp_assigned_idle_cores_tc, the finish_flag involves atomic operations
and thus requires address alignment.

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-12-04 11:17:50 +08:00
GUI
7836d26d39 [MM] Update MM System (#10989)
* [MM] Fixup MM

1. Fixup some LOG_D args.
2. Stop installing page when `rt_aspace_map_phy` fail.

* [MM] Support page MPR dynamic size

For RISC-V or dynamic address space arch in the future.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-03 21:49:52 +08:00
GUI
e5e0ad29bf [DM/DMA] Update DMA #10987
* Append WT attribute.
* Change the API with pool size only.
* Add address mask for DMA
* Change DMA lock to mutex
* Add pause callback for DMA engine driver
* Add DMA Engine test
* Add ARM PL330 DMA Engine driver
2025-12-03 21:47:49 +08:00
yans
0ea9d8f3be [bsp][renesas] Add ra8p1-titan-board BSP. 2025-12-03 21:44:51 +08:00
yans
99e78544f4 [bsp/renesas][drivers] Added adaptation for ra8p1. 2025-12-03 21:44:51 +08:00
GuEe-GUI
d79475e02c [DM][SPI] Support SFUD for DM
DM need > c99

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-02 21:37:42 +08:00
GuEe-GUI
9b02fdc30a [Driver][SPI] Add 'W25Q128JWPIM' for SFUD
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-02 21:37:42 +08:00
GuEe-GUI
33d9c50efb [DM][REGULATOR] Support operator delay
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-02 21:36:58 +08:00
GuEe-GUI
7ebc10a688 [DM][REGULATOR] Fixup regulator find error
Just not regulator really, user can work ok, so remove the error no.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-02 21:36:58 +08:00
GuEe-GUI
39a52cdad2 [LIBC/AIO] Set the AIO work stack size default.
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-02 09:50:52 +08:00
CYFS
db9ee0cd9f [bsp][stm32]:remove duplicated header includes for drv_stdio.h 2025-12-01 21:53:00 +08:00
godmial
2fb53c83c5 [bsp][spi flash]: 优化GD32F470 SPI Flash初始化和UART0配置 (#10983)
* feat(gd32): 优化GD32F470 SPI Flash初始化和UART0配置

主要修改:
1. SPI Flash初始化优化
   - 添加可配置的SPI Flash自动初始化选项(BSP_USING_SPI_FLASH)
   - 支持按SPI总线独立配置Flash初始化(BSP_USING_SPIx_FLASH)
   - 避免SPI Flash初始化与其他SPI设备(如OLED、WIFI)冲突
   - 添加SPI5 Flash支持
   - 修改drv_spi_flash.c,仅在明确配置的SPI总线上初始化Flash

2. UART0配置修复
   - 将UART0的AFIO默认值从AF1改为AF7
   - 修复串口无响应问题

这些修改使得用户可以更灵活地配置SPI Flash初始化,避免自动初始化导致的设备冲突问题。

* feat(gd32): 解耦SPI Flash与SFUD的依赖关系
2025-12-01 14:47:53 +08:00
wdfk-prog
75d6c1cec5 fix(finsh): Fix crash in 'tail' command with insufficient '-n' arguments 2025-11-30 12:58:51 +08:00
CYFS
5c20c4f8db [bsp][hpm]:fix scons --dist 2025-11-30 12:57:38 +08:00
Chuan
2fcdd86dbc docs(utest):Add standardized documentation for IPC Completion Test
Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-26 22:53:01 +08:00
Chuan
7983d97738 docs(utest):Add standardized documentation for IPC Workqueue Test
Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-26 22:53:01 +08:00
Chuan
604d123186 [utest][serial bypass]:Add standardized documentation for Serial Bypass Test 2025-11-26 22:52:39 +08:00
Tm-C-mT
9c2279acdc [docs][utest]:Add comments for smp_bind_affinity
Add comments for smp_bind_affinity, And fixed some comment issues in smp_affinity_pri2_tc.

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-11-26 22:51:25 +08:00
Tm-C-mT
cafd9c6dfe [docs][utest]:Add comments for smp_affinity_pri2
Add comments for smp_affinity_pri2

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-11-26 22:51:25 +08:00
Tm-C-mT
ea37d4c2c9 [docs][utest]:Add comments for smp_affinity_pri1
Add comments for smp_affinity_pri1

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
2025-11-26 22:51:25 +08:00
kurisaw
5706c5ef4d [gd32/arm][bsp]: synchronous kconfig update 2025-11-26 21:42:29 +08:00
kurisaw
98b9ecdba6 [gd32/arm][drivers]: general GD serial driver adapter 2025-11-26 21:42:29 +08:00
kurisaw
d32ed6a4af [gd32/arm][drivers]: add support for the H7 series and optimize the GPIO driver 2025-11-26 21:42:29 +08:00
Chuan
5423d43e25 [utest][audio]:Add standardized documentation for Audio Test 2025-11-26 19:21:19 +08:00
Ze-Hou
d3e26999ce bsp: k230: add dma support to the i2c driver
1. add dma support to the I2C driver to improve efficiency.

Signed-off-by: Ze-Hou <yingkezhou@qq.com>
2025-11-25 22:12:24 +08:00
dongly
583d7f47c7 [soft_rtc]修正GET_TIMESPEC/GET_TIMEVAL 获取 ns/us 的错误; 优化soft_rtc实现 2025-11-25 09:44:07 +08:00
guozhanxin
6695599afc [tool] fixed scons --target=xmake 2025-11-23 22:31:56 +08:00
Chuan
af6e310b61 docs(utest):Add standardized documentation for Mailbox Test
Signed-off-by: ChuanN-sudo <fjchuanil@gmail.com>
2025-11-23 15:14:14 +08:00
wdfk-prog
0a02fd4545 docs:[STM32][drv_gpio] Add detailed Doxygen comments for GET_PIN macro 2025-11-22 10:11:38 +08:00
wdfk-prog
836eecc2f9 fix:[STM32][drv_can] Suppress unused variable warning in send error path 2025-11-22 10:11:38 +08:00
4444x
4e7a78ee0b [docs]:Add standardized function comment blocks for mutex_tc 2025-11-22 10:10:32 +08:00
liuyucai
29fb860ad4 finsh: replace str/mem functions with rt-prefixed versions
Replace standard string and memory functions with RT-Thread's rt-prefixed
equivalents where available:

- strcpy -> rt_strcpy
- strncpy -> rt_strncpy
- strcmp -> rt_strcmp
- strncmp -> rt_strncmp
- strlen -> rt_strlen
- strstr -> rt_strstr
- memcpy -> rt_memcpy
- memcmp -> rt_memcmp

Functions like strcat, strchr remain unchanged as RT-Thread does not provide
rt-prefixed versions.
2025-11-22 09:31:37 +08:00
蒙蒙plus
6ab057be41 🐞 fix(at_socket):修复socket 在开启server下的connect连接
修复accept在错误执行过程中返回无效socket问题
2025-11-21 17:23:54 +08:00