| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
serial: support gsmmux Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
nuttx: add TTY_SIGINT/SIGTSTP depend config !DISABLE_SIGNALS in case that they can not work normally Signed-off-by: wangshaoxin <wangshaoxin@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.3-0806 Signed-off-by: liuhaitao <liuhaitao@xiaomi.com> | 2 个月前 | |
drivers/serial: simplify 16550_PCI_UARTx_CLOCK config Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
We have ported NuttX on Renesas RX65N Micro-controller. This port includes following interfaces 1. Serial (UART) driver (13 ports) 2. Ethernet driver This port is provided on two boards 1. RSK RX65N-2MB 2. GR-Rose The port is built on Cygwin environment. As part of this port, we have created two documents 1. Readme.txt for each board 2. User manual to provide information about development environment setup Both these documents are placed under 1. /boards/renesas/rx65n/rx65n-grrose 2. /boards/renesas/rx65n/rx65n-rsk2mb We have run 'nxstyle' for coding guidelines and 'ostest' for testing NuttX features on test platform. We have shared the log with no errors as confirmation of valid port. | 2 个月前 | |
drivers/serial/Kconfig: Split serial Rx/Tx DMA. | 2 个月前 | |
drivers/serial/serial: prevent race conditions on 8-bit architectures Some code paths in drivers/serial/serial.c load head and tail values of receive and transmit circular buffers with interrupts enabled, making it possible that the interrupt handler changes the value. As noted in the code, this is safe as long as the load itself is atomic. That is not true for 8bit architectures which fetch the 16-bit values using two load instructions. If interrupt handler runs between those two instructions and changes the value, the read returns corrupted data. This patch introduces CONFIG_ARCH_LDST_16BIT_NOT_ATOMIC configuration option which is automatically selected for AVR architecture. Based on this option, head and tail values are reduced to 8-bit length so the read remains atomic. Patch was tested by building on rv-virt:nsh - disassembly of functions from serial.c showed no difference which is correct as Risc-V does not need to protect reads of these values. There should be no impact for architectures that do not set the new configuration option. It was also tested by by custom echo application running on AVR128DA28. Signed-off-by: Kerogit <kr.git@kerogit.eu> | 2 个月前 | |
serial: support gsmmux Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
drivers/serial: fix the issue of the refs count for filep being zeroed out by utilizing dup2 file_open will clear filep, include f_refs Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com> | 2 个月前 | |
driver/serial/pty: Fixed use-after-free issue when pty_register2 registration failed. unregister_driver() will call pty_unlink(), which may call pty_destroy() to free devpair if pp_nopen == 0. So we must return here directly to avoid use-after-free Adjust the order in which minor are released, unregistering the driver first to avoid race conditions. Signed-off-by: yangsong8 <yangsong8@xiaomi.com> | 2 个月前 | |
drivers: 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> | 2 个月前 | |
gdbstub: use poll to attach to uart Previously gdbstub can only work with uart in interrupt mode, now it's compatible with both DMA and interrupt. Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com> | 2 个月前 | |
serial/cmsdk: fix RX lockup caused by up_putc disabling RX interrupts up_putc() uses disableuartint/restoreuartint to temporarily suppress all UART interrupts while doing polled TX output. This includes clearing CTRL.RX_INT_ENABLE. On the CMSDK APB UART, the hardware only sets INTSTATUS_RX when a character is received AND RX_INT_ENABLE is asserted at that moment. If a character arrives during the window where up_putc() has cleared RX_INT_ENABLE, the UART latches RX_BUF_FULL in STATE but does NOT set INTSTATUS_RX. When restoreuartint() re-enables RX_INT_ENABLE the interrupt is never generated, so the byte stays in the single- entry holding register forever. Because RX_BUF_FULL blocks further reception, the UART is permanently stalled — no more RX interrupts fire, and if the console reader task blocks on input the TX path stalls as well. Fix this by having up_putc() only disable/restore the TX-side interrupt enables (TX_INT_ENABLE and TX_OVERRUN_INT_ENABLE). Polled character transmission has no need to suppress RX interrupts, so leaving them enabled closes the race window entirely. Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
drivers: 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> | 2 个月前 | |
gdbstub: move file_open into uart_gdbstub_attach The USB CDCACM has not yet been successfully recognized at this point, and executing file_open will return an error. Signed-off-by: yangsong8 <yangsong8@xiaomi.com> | 2 个月前 | |
drivers/serial: using temp space to receive when rxbuffer is full Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com> | 2 个月前 | |
serial/16550: add sched_lock to avoid txint happen context switch switch backtrace: uart_write uart_enabletxinit u16550_txint uart_spinlock false uart_xmitchars uart_spinlock true uart_datasent poll_notify uart_spinunlock true <--------- context switch, change cpu id uart_spinunlock false rspin_unlock DEBUGASSERT(lock->owner == this_cpu() + 1); trigger crash Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com> | 2 个月前 | |
bluetooth: bth4 adjust critical section to spin lock Signed-off-by: chengkai <chengkai@xiaomi.com> | 2 个月前 | |
drivers: 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> | 2 个月前 | |
Revert "drivers/serial/uart_gsmmux: fix atomic print type not match" This reverts commit a14f0514f3bf930cdf9f6a4b63d60ec8e0d5ddeb. Reason for revert: revert type warning process Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
drivers: 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> | 2 个月前 | |
use small lock in following files arch/xtensa/src/esp32s3/esp32s3_rtc_lowerhalf.c arch/z16/src/z16f/z16f_serial.c arch/z80/src/z8/z8_serial.c boards/arm/max326xx/max32660-evsys/src/max326_button.c boards/arm/stm32/stm32f4discovery/src/stm32_gs2200m.c drivers/i2c/i2c_bitbang.c drivers/power/supply/act8945a.c drivers/serial/uart_pci_16550.c drivers/serial/uart_pl011.c drivers/wireless/bluetooth/bt_uart_shim.c Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
serial/pl011: fix pl011_putc SMP race on IMSC causing RX input loss The original pl011_putc() busy-waits for the TX FIFO to drain without any lock protection. On SMP this allows two CPUs to race past the TXFF check simultaneously and write DR into a full FIFO, losing characters. More critically, because pl011_putc holds no lock while other paths (pl011_txint, pl011_rxint) do hold sport->lock when they read-modify-write the IMSC register, the unprotected pl011_putc creates a window where concurrent IMSC updates from the interrupt call-back chain can clobber each other, resulting in IMSC being zeroed. Once IMSC == 0 the UART stops generating interrupts and RX input is lost while TX (polled via putc) continues to work. Fix by using a try-lock loop in pl011_putc: take sport->lock, check TXFF, if not full write DR and release; if full release immediately and retry. This ensures the TXFF check and DR write are atomic while never busy-waiting with the lock held, so the interrupt path and other CPUs can always make progress. Signed-off-by: guanyi3 <guanyi3@xiaomi.com> | 2 个月前 | |
uart_ram: fix warning on incompatible pointer type Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com> | 2 个月前 | |
uart_rpmsg: copy devname and cpuname to local Signed-off-by: wangshaoxin <wangshaoxin@xiaomi.com> | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 |