Commit Graph

2542 Commits

Author SHA1 Message Date
gaohedong 9cbcb35e88 net/ethernet: fix compile warning issue
fix compile warning issue for tasking compiler

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-21 01:33:54 +08:00
gaohedong b45bbd3520 net/ethtool: add ethtool-ioctl to get/set hardware channel info
add ethtool-ioctl to get/set hardware channel info

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-21 01:33:46 +08:00
zhanghongyu be40cb001e netdev_lock: workaround for compilation error caused by the include of header files
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:33:28 +08:00
zhangkai25 a985bb1c62 net\netdev: Add macro protection to ensure that Microsoft vc compiler compiles successfully
Signed-off-by: zhangkai25 <zhangkai25@xiaomi.com>
2026-04-21 01:32:13 +08:00
zhangkai25 160ce787f0 netdev_ioctl adds SIOCDEVPRIVATE
Signed-off-by: zhangkai25 <zhangkai25@xiaomi.com>
2026-04-21 01:32:05 +08:00
wenquan1 9547209b0c Revert "net/arp: reducing unnecessary ARP requests can mitigate"
This reverts commit 696a94c8055dc59933457e8ce5c3c91dbecab980.
first, when continuous ping from tester to vela, if ignore arp expire when ping response use arp_out to build L2 layer, this cause TC13 testing arp entry expire feature failed. second, the patch of support queue iob when arp_out failed can fix this bug.
2026-04-21 01:31:39 +08:00
zhanghongyu 255a766079 arp: the manually configured arp table should not have a timeout period
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:29:11 +08:00
zhanghongyu f92159af7b net/utils/net_lock.c: add api to lock conn and netdev
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:28:23 +08:00
nuttxs 3db7d5c6cf net/arp: reducing unnecessary ARP requests can mitigate
network congestion and avoid packet delays caused by
waiting for ARP responses

Signed-off-by: nuttxs <zhaoqing.zhang@sony.com>
2026-04-21 01:27:25 +08:00
zhanghongyu fe3b5f9fbe include/netinet/arp.h: change the type of arp_dev from uint8_t to char
the same variable type in linux is char, in order to avoid modifying
the third-party library code when porting the third-party library code.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:25:34 +08:00
gaohedong ec12413b02 net/ethernet: ARP can be configured on interface
ARP can be configured on interface.

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
2026-04-21 01:25:32 +08:00
wangjinjing1 4daee9b533 net/can: add can transceiver state ioctl cmd
get transceiver state:SIOCGCANTRSVSTATE
set transceiver state:SIOCSCANTRSVSTATE

Signed-off-by: wangjinjing1 <wangjinjing1@xiaomi.com>
2026-04-21 01:23:41 +08:00
wangjinjing1 c58c66438a net/can: add can ioctl cmd SIOCCANOFLUSH
Signed-off-by: wangjinjing1 <wangjinjing1@xiaomi.com>
2026-04-21 01:23:41 +08:00
Zhe Weng a0f790d932 netdev/ioctl: Add support for simple VLAN ioctl
Supporting ADD_VLAN_CMD and DEL_VLAN_CMD of SIOCSIFVLAN
Ref: https://github.com/torvalds/linux/blob/v6.12/net/8021q/vlan.c#L621

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2026-04-21 01:19:43 +08:00
zhanghongyu 6d236bab71 net/netdev/netdev_ioctl.c: correct the valid judgment logic of cmd
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-21 01:17:32 +08:00
openvela-robot 5081b31bd0 cmake(sync):sync CMakeLists.txt conflict of libc with github
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 01:11:30 +08:00
openvela-robot 39fce4b20d arch/x86_64: Resolving NUC Boot Failure Issue
The segment of the Xen PVH boot protocol was not specified during linking and was placed before .loader.text, causing the boot to fail

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2026-04-21 01:11:24 +08:00
openvela-robot d2e613094f arm64/makefile: No longer using hwasan pile insertion
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2026-04-21 01:11:19 +08:00
openvela-robot a3dd40b0d9 mm: call sched_note within mm lock
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:11:12 +08:00
openvela-robot 8b787c52e2 sched: sync minor differences in community code
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-21 01:11:07 +08:00
openvela-robot bf0c4ea69a libc/modlib: Make modlib selectable from defconfig
since bootloader may call modlib functions directly
to load elf firmware without binfmt, dlfcn or module.

BTW, this patch also remove the duplicated selecttion

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-21 01:11:02 +08:00
openvela-robot d194b91929 Revert "math32.h: remove typeof depends"
This reverts commit 4e9f8176a08aa25c7173bc4c748e721b0841ddac.

Reason for revert:
This patch are using to fix the following build warning when build with greenhills compiler:
    CC:  syslog/vsyslog.c "pthread/pthread_create.c", line 443: warning #1931-D: operand of sizeof is
              not a type, variable, or dereferenced pointer expression
              ptcb->cmn.timeslice = MSEC2TICK(CONFIG_RR_INTERVAL);
                                    ^

    CC:  dirent/lib_closedir.c "sched/sched_profil.c", line 81: warning #1931-D: operand of sizeof is not a
              type, variable, or dereferenced pointer expression
        wd_start(&prof->timer, PROFTICK, profil_timer_handler, arg);
                               ^

    "sched/sched_profil.c", line 142: warning #1931-D: operand of sizeof is not a
              type, variable, or dereferenced pointer expression
        wd_start(&prof->timer, PROFTICK, profil_timer_handler, (wdparm_t)prof);
                               ^

    CC:  common/arm_modifyreg8.c "sched/sched_setscheduler.c", line 165: warning #1931-D: operand of sizeof is
              not a type, variable, or dereferenced pointer expression
                tcb->timeslice  = MSEC2TICK(CONFIG_RR_INTERVAL);
                                  ^

    CC:  misc/lib_utsname.c "sched/sched_unlock.c", line 275: warning #1931-D: operand of sizeof is not a
              type, variable, or dereferenced pointer expression
                rtcb->timeslice = MSEC2TICK(CONFIG_RR_INTERVAL);
                                  ^

    "sched/sched_roundrobin.c", line 119: warning #1931-D: operand of sizeof is
              not a type, variable, or dereferenced pointer expression
                tcb->timeslice = MSEC2TICK(CONFIG_RR_INTERVAL);
                                 ^

we need to keep the modification
2026-04-21 01:10:57 +08:00
openvela-robot ac82d776ab usb: Fix issue with the calculation descriptor length error
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
2026-04-21 01:10:47 +08:00
openvela-robot 0662b2ac02 rpmsgdev/blk: sync with communitfy, minor nxstyle fix
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:10:42 +08:00
openvela-robot 97534cf708 add lin status changes the format of the reported frame and add the macros that lin needs
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2026-04-21 01:10:37 +08:00
openvela-robot 492cec3ec5 nuttx/sim: Fix MacOs build error with argument unused during compilation: '-no-pie'
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-21 01:10:31 +08:00
openvela-robot 1f0a222301 sim/m64:Fix ld error with .rodata can not be used when making a PIE object.
/usr/bin/ld: nuttx.rel: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-21 01:10:25 +08:00
openvela-robot 80196e894b nuttx: Change the judgment of GCCVER version to greater equal.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-21 01:10:19 +08:00
openvela-robot 6c85ce6822 vsprintf:fix bug when print int64 0x8000000000000000
stdio/lib_libvsprintf.c:1018:17: runtime error: negation of -9223372036854775808 cannot be
represented in type 'long long int'; cast to an unsigned type to negate this value to itself
    #0 0x3326a86 in vsprintf_internal stdio/lib_libvsprintf.c:1018
    #1 0x332926b in lib_vsprintf stdio/lib_libvsprintf.c:1363
    #2 0x3777978 in vfprintf stdio/lib_vfprintf.c:52
    #3 0x671b3a0 in printf stdio/lib_printf.c:44
    #4 0x37abc0c in hello_main /data/project/code/vela-pt/apps/examples/hello/hello_main.c:38
    #5 0x33201d3 in nxtask_startup sched/task_startup.c:70
    #6 0x3208ecb in nxtask_start task/task_start.c:134
    #7 0x3357a49 in pre_start sim/sim_initialstate.c:52

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:10:13 +08:00
openvela-robot 78d736af82 arm/toolchain.defs: sync the whole-archive config with community
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-21 01:10:07 +08:00
openvela-robot 47daa79e0b nuttx/x86_64:Add _sinit and _einit initialization.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-21 01:10:02 +08:00
openvela-robot 5d60745acb strptime.c:len is not defined.
Bring all code that uses the variable len under the CONFIG_LIBC_LOCALE

Signed-off-by: chenjiahua1 <chenjiahua1@xiaomi.com>
2026-04-21 01:09:56 +08:00
openvela-robot 679535b72f coredump: add architecture-specific registers dump, including NVIC and MPU
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2026-04-21 01:09:50 +08:00
wangxiaoxin 8b38ca9b7f add a flag of lin internal sleep/wakeup state
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2026-04-21 01:09:45 +08:00
Xiang Xiao 4d5ec01d6b net: Remove IFF_DOWN flag to compatible with Linux/*BSD
turn off interface by checking IFF_UP flag isn't set:
https://github.com/apache/nuttx/issues/1838

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-21 01:09:06 +08:00
openvela-robot 154f6f9208 cmake(sync):sync cmake Toolchain change from github
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 01:09:02 +08:00
openvela-robot 36139bb0b5 arch/intel64: optimise context switch
We save interrupted TCB state on tcb->xcp.regs not interrupt stack now
which allows us to remove x86_64_savestate() from up_switch_context()
and other places.

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-21 01:08:56 +08:00
openvela-robot 199768d644 note: sync minor differences in community code
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-21 01:08:50 +08:00
openvela-robot 29a809813f Revert "libc/atomic: decoupling atomic and spinlock to avoid recursion"
This reverts commit c37b0de28c96615cb1d5f0251903d89639223444.
2026-04-21 01:08:44 +08:00
openvela-robot 7f4881e106 get g_tcbinfo just use elf memory
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-21 01:08:38 +08:00
openvela-robot 2767a5fedd cmake: add newly added sources to cmake
These newly added files are missing from cmake.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:08:33 +08:00
openvela-robot ebd9346620 sched/signal: exit sig action when tcb group is null
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
2026-04-21 01:08:26 +08:00
openvela-robot 5be1dc755f Doc: Migrate changing the system clock configuration
Migrate the Changing the System Clock Configuration documentation from
the Confluence wiki to the official documentation

Signed-off-by: Ludovic Vanasse <ludovicvanasse@gmail.com>
2026-04-21 01:08:20 +08:00
openvela-robot 88759aa806 rpmsg/rpmsg_virtio: minor fix about rpmsg_virtio
1. code style, add FAR to pointer;
2. code style, add default branch in switch case statement;

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:08:13 +08:00
openvela-robot 9174e751c2 systick:when isr_handle is NULL will be crash.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-21 01:07:59 +08:00
openvela-robot 0f462a120f cmake: fix the typo in comments
fix the typo in comments and sync with community

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-21 01:07:53 +08:00
openvela-robot 980658916b build.yml:disable CMake Ninja for Msys2
CI in the msys2 environment, the CMake ninja generator
will have a problem with parameters being too long

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 01:07:47 +08:00
openvela-robot 227d0f1390 tools/gdb/gdbinit.py:add hint
Signed-off-by: yangao1 <yangao1@xiaomi.com>
2026-04-21 01:07:41 +08:00
openvela-robot 63a654ed6a board/qemu-armv7a: use fdt_virtio_mmio_devices_register() to register mmio devices
Use common implementation to register mmio device

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:07:35 +08:00
openvela-robot d1e9e4fa1c Revert "mq: change mqueue msg mail to dynamic array"
This reverts commit 55f6f5e0af41e96980429c91d45521f7aa553b75.

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-21 01:07:29 +08:00