nuttx/drivers/serial
fangpeina 11f06eb0f5 drivers/serial: fix deadlock when executing rexec in a user task
CPU0                                                  CPU1
task:nsh_main     task:user_app                       rexecd
nsh_consolemain	  system
uart_read         rexec				      ---
got recv.lock     poll			              ---
	          uart_poll       rpmsg_socket_poll   rpmsg_socket_close
wait recvsem      get recv.lock   poll_notify
                  deadlock        routine work

the error accurs in CPU0 when waiting console input

resolve: unlock recv.lock when waiting recvsem

Signed-off-by: fangpeina <fangpeina@xiaomi.com>
2024-09-14 10:27:40 +08:00
..
CMakeLists.txt drivers/serial:support arm cmsdk drivers 2024-04-26 18:42:35 -03:00
Kconfig drivers/serial:support arm cmsdk drivers 2024-04-26 18:42:35 -03:00
Kconfig-16550 drivers/serial: Make the 16550 rx trigger level configurable 2024-08-03 10:31:36 +08:00
Kconfig-cmsdk drivers/serial:support arm cmsdk drivers 2024-04-26 18:42:35 -03:00
Kconfig-lpuart
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
Kconfig-uart
Kconfig-usart
Make.defs drivers/serial:support arm cmsdk drivers 2024-04-26 18:42:35 -03:00
ptmx.c pty: use mutex to protect alloc minor 2024-08-25 22:16:53 +08:00
pty.c nuttx: use sizeof instead of define or number in snprintf 2024-08-25 19:22:15 +08:00
pty.h Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
serial_cmsdk.c drivers/serial:support arm cmsdk drivers 2024-04-26 18:42:35 -03:00
serial_dma.c drivers/serial: unmodify head and tail pointers 2023-09-19 09:41:07 +08:00
serial_gdbstub.c serial/gdbstub: Change GDBSTUB_ to GDB_ 2024-06-24 23:51:43 +08:00
serial_io.c tty:support tty c_cc VMIN & VTIME 2023-04-29 13:48:52 +08:00
serial.c drivers/serial: fix deadlock when executing rexec in a user task 2024-09-14 10:27:40 +08:00
uart_16550.c serial/uart_16550: remove up_putc spinlock 2024-09-12 18:11:30 +08:00
uart_bth4.c poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
uart_bth5.c poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
uart_pl011.c serial/uart_pl011: default syslog needs to check flow control in up_putc 2024-09-12 17:15:40 +08:00
uart_ram.c drivers/serial: add ram uart driver 2023-09-19 09:41:07 +08:00
uart_rpmsg.c fix:uart_rpmsg_dmareceive data copy to nbuffer should start from data + length 2024-08-22 09:23:12 -03:00