nuttx-mirror/drivers/serial
hujun5 498c59450f fix a deadlock
0  up_testset (lock=0x404241c0 <g_uart1priv+32>) at /home/hujun5/下载/vela_sim/nuttx/include/arch/spinlock.h:96
1  spin_lock_wo_note (lock=<optimized out>) at /home/hujun5/下载/vela_sim/nuttx/include/nuttx/spinlock.h:207
2  spin_lock_irqsave_wo_note (lock=0x404241c0 <g_uart1priv+32>) at /home/hujun5/下载/vela_sim/nuttx/include/nuttx/spinlock.h:467
3  spin_lock_irqsave (lock=0x404241c0 <g_uart1priv+32>) at /home/hujun5/下载/vela_sim/nuttx/include/nuttx/spinlock.h:521
4  pl011_txint (dev=0x404240b0 <g_uart1port>, enable=false) at serial/uart_pl011.c:746
5  0x00000000402a3f1c in uart_xmitchars (dev=0x404240b0 <g_uart1port>) at serial/serial_io.c:118
6  0x00000000402a10f8 in pl011_txint (dev=<optimized out>, enable=<optimized out>) at serial/uart_pl011.c:756
7  0x00000000402a2ca0 in uart_write (filep=<optimized out>, buffer=<optimized out>, buflen=0) at serial/serial.c:1493
8  0x000000004028c464 in file_writev_compat (filep=0x4046cda0, uio=<optimized out>) at vfs/fs_write.c:81
9  0x000000004028c588 in file_writev (filep=<optimized out>, uio=uio@entry=0x40470dc0) at vfs/fs_write.c:161
10 0x000000004028c5fc in nx_writev (fd=<optimized out>, iov=iov@entry=0x40470e10, iovcnt=iovcnt@entry=1) at vfs/fs_write.c:257
11 0x000000004028c660 in writev (fd=<optimized out>, iov=iov@entry=0x40470e10, iovcnt=iovcnt@entry=1) at vfs/fs_write.c:356
12 0x000000004028c6dc in write (fd=<optimized out>, buf=buf@entry=0x404090b2 <g_nshgreeting>, nbytes=<optimized out>) at vfs/fs_write.c:421
13 0x00000000402adb10 in nsh_session (pstate=pstate@entry=0x40471080, login=login@entry=1, argc=argc@entry=1, argv=argv@entry=0x4046cf40) at nsh_session.c:108
14 0x00000000402ad94c in nsh_consolemain (argc=argc@entry=1, argv=argv@entry=0x4046cf40) at nsh_consolemain.c:75
15 0x00000000402ad894 in nsh_main (argc=argc@entry=1, argv=argv@entry=0x4046cf40) at nsh_main.c:74
16 0x00000000402a5880 in nxtask_startup (entrypt=0x402ad7fc <nsh_main>, argc=1, argv=0x4046cf40) at sched/task_startup.c:72
17 0x000000004029d444 in nxtask_start () at task/task_start.c:116
18 0x0000000000000000 in ?? ()

fix regresion from https://github.com/apache/nuttx/pull/15301

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-12-28 11:39:50 +08:00
..
CMakeLists.txt cmake(bugfix):add missing driver/serial CMake build source 2024-11-13 02:36:18 +08:00
Kconfig serial/gdbstub:Adjust serial port gdbstub Kconfig dependencies 2024-10-24 08:45:21 +08:00
Kconfig-16550 drivers/serial: Add 16550_DLF_SIZE option for DesignWare UART. 2024-10-10 02:38:12 +08:00
Kconfig-cmsdk drivers/serial:support arm cmsdk drivers 2024-04-26 18:42:35 -03:00
Kconfig-lpuart Add initial support for NXP S32K3 MCU family 2022-07-25 23:47:05 +08:00
Kconfig-pci serial/pci: Remove the product specific config 2024-11-17 08:40:26 +01:00
Kconfig-pl011 drivers/serial/uart_pl011.c : add the interface about clock and reset control for reducing power consumption. 2024-06-03 21:18:44 +08:00
Kconfig-sci We have ported NuttX on Renesas RX65N Micro-controller. This port includes following interfaces 2019-10-11 23:36:57 +08:00
Kconfig-uart drivers/serial/Kconfig: Split serial Rx/Tx DMA. 2019-12-03 07:06:30 -06:00
Kconfig-usart drivers/serial/Kconfig: Split serial Rx/Tx DMA. 2019-12-03 07:06:30 -06:00
Make.defs drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
ptmx.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pty.c arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
pty.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
serial.c Reapply "SYSLOG_DEFAULT: wrap up_putc/up_nputs calls with critical section" 2024-11-18 13:52:53 +08:00
serial_cmsdk.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
serial_dma.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
serial_gdbstub.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
serial_io.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
uart_16550.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
uart_bth4.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
uart_bth5.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
uart_hostfs.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
uart_pci_16550.c use small lock in following files 2024-12-28 11:39:50 +08:00
uart_pl011.c fix a deadlock 2024-12-28 11:39:50 +08:00
uart_ram.c arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
uart_rpmsg.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00