nuttx/drivers
chao an 93ff6f9703 drivers/rptun: check the status before stop remote proc
Race condition if the remote proc is stoped during initialization phase

| #0  0x0249f959 in rpmsg_destroy_ept (ept=0xffffffc0) at open-amp/lib/rpmsg/rpmsg.c:376
| #1  0x024a938c in rpmsg_deinit_vdev (rvdev=0xf2303a48) at open-amp/lib/rpmsg/rpmsg_virtio.c:971
| #2  0x02117e33 in rptun_dev_stop (rproc=0xf2303a04, stop_ns=true) at rptun/rptun.c:891
| #3  0x021181d8 in rptun_do_ioctl (priv=0xf2303a00, cmd=11010, arg=0) at rptun/rptun.c:922
| #4  0x02119722 in rptun_ioctl_foreach (cpuname=0x0, cmd=11010, value=0) at rptun/rptun.c:1086
| #5  0x0211b9df in rptun_poweroff (cpuname=0x0) at rptun/rptun.c:1378
| #6  0x02053aa6 in board_power_off (status=0) at sim/sim_head.c:206
| #7  0x0253d65c in boardctl (cmd=65283, arg=0) at boardctl.c:400
| #8  0x021eb497 in cmd_poweroff (vtbl=0xef606280, argc=1, argv=0xef9b73e0) at nsh_syscmds.c:356
| #9  0x021cdb4d in nsh_command (vtbl=0xef606280, argc=1, argv=0xef9b73e0) at nsh_command.c:1164
| #10 0x021baa72 in nsh_execute (vtbl=0xef606280, argc=1, argv=0xef9b73e0, redirfile=0x0, oflags=0) at nsh_parse.c:845
| #11 0x021c6b0a in nsh_parse_command (vtbl=0xef606280, cmdline=0xef606708 "poweroff") at nsh_parse.c:2744
| #12 0x021c7166 in nsh_parse (vtbl=0xef606280, cmdline=0xef606708 "poweroff") at nsh_parse.c:2828
| #13 0x0221fa2f in nsh_session (pstate=0xef606280, login=1, argc=1, argv=0xef7a7860) at nsh_session.c:245
| #14 0x021f8c04 in nsh_consolemain (argc=1, argv=0xef7a7860) at nsh_consolemain.c:75
| #15 0x021b77eb in nsh_main (argc=1, argv=0xef7a7860) at nsh_main.c:74
| #16 0x02166ddf in nxtask_startup (entrypt=0x21b76ca <nsh_main>, argc=1, argv=0xef7a7860) at sched/task_startup.c:70
| #17 0x020b363c in nxtask_start () at task/task_start.c:134

Signed-off-by: chao an <anchao@xiaomi.com>
2023-11-07 18:27:05 +08:00
..
1wire 1wrie:fix typo 2023-08-03 00:06:24 -07:00
analog drivers/ioexpander: Add const to the value array of multiwritepin 2023-09-28 10:09:51 +08:00
audio kernel: replace all usleep to nxsig_usleep in kernel space 2023-10-25 15:46:03 +08:00
bch enable O_CLOEXEC explicit 2023-09-22 13:51:00 +08:00
can Add new ioctls 2023-10-27 13:52:28 -03:00
clk Kconfigs: rename {Rpmsg|rpmsg} to RPMGS 2023-10-28 13:58:56 +08:00
contactless mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
crypto kernel: replace all usleep to nxsig_usleep in kernel space 2023-10-25 15:46:03 +08:00
devicetree fdt: Add initial FDT support and procfs for userspace export 2023-08-05 12:41:06 -07:00
dma Nuttx/dma: add dma framework for nuttx 2023-04-22 01:02:51 +08:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
eeprom Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
efuse nuttx: use lib_free for memory de-allocation after strdup or asprintf 2023-08-08 11:58:29 -03:00
i2c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
i2s mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
input Kconfigs: rename {Rpmsg|rpmsg} to RPMGS 2023-10-28 13:58:56 +08:00
ioexpander Kconfigs: rename {Rpmsg|rpmsg} to RPMGS 2023-10-28 13:58:56 +08:00
ipcc fs/inode: remove all unnecessary check for filep/inode 2023-08-29 09:47:11 +08:00
lcd Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
leds mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
loop enable O_CLOEXEC explicit 2023-09-22 13:51:00 +08:00
math math/mpi: add mpi driver in math 2023-10-17 13:43:43 +08:00
misc drivers/ramdisk: add missing 'FAR' 2023-09-16 14:17:47 +08:00
mmcsd Fix error: 'mmcsd_general_cmd_read' defined but not used 2023-09-26 00:45:50 +03:00
modem kernel: replace all usleep to nxsig_usleep in kernel space 2023-10-25 15:46:03 +08:00
motor kernel: replace all usleep to nxsig_usleep in kernel space 2023-10-25 15:46:03 +08:00
mtd Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
net Kconfigs: rename {Rpmsg|rpmsg} to RPMGS 2023-10-28 13:58:56 +08:00
note note: fix notesnap compilation failure 2023-10-23 12:50:19 +03:00
pipes mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
power pm: use pm_staytimeout() in greedy_governor_activity() 2023-10-31 09:05:40 +08:00
rc Fix Kconfig style 2023-08-02 16:57:09 +02:00
regmap Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
reset added mutex lock before lookup reset controller by name 2023-08-11 20:39:16 +08:00
rf build: add initial cmake build system 2023-07-08 13:50:48 +08:00
rptun drivers/rptun: check the status before stop remote proc 2023-11-07 18:27:05 +08:00
segger clock: replace all up_perf_xx with perf_xx 2023-10-02 16:11:43 +02:00
sensors Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
serial Kconfigs: rename {Rpmsg|rpmsg} to RPMGS 2023-10-28 13:58:56 +08:00
spi driver/spi: avoid calling QPOLL to change rx_length and cause data loss 2023-09-24 10:34:55 +08:00
syslog Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
timers Kconfigs: rename {Rpmsg|rpmsg} to RPMGS 2023-10-28 13:58:56 +08:00
usbdev drivers/usbdev: config USBDEV_TRACE_INITIALIDSET when disbale USBDEV_TRACE 2023-10-26 16:32:18 +08:00
usbhost Fix some typos in comments 2023-10-11 08:14:49 +02:00
usbmisc kernel: replace all usleep to nxsig_usleep in kernel space 2023-10-25 15:46:03 +08:00
usbmonitor build: add initial cmake build system 2023-07-08 13:50:48 +08:00
usrsock usrsock_rpmsg_server: Keep msg order in recursive call 2023-11-01 10:14:18 +08:00
video Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
virtio kernel: replace all sem_* to nxsem_*: in kernel space 2023-10-25 15:46:03 +08:00
wireless bluetooth rpmsg depends on RPTUN 2023-10-27 13:27:05 -03:00
.gitignore
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
drivers_initialize.c drivers/serial: add ram uart driver 2023-09-19 09:41:07 +08:00
Kconfig nuttx/drivers: add regmap subsystems support. 2023-09-27 00:46:51 +08:00
Makefile nuttx/drivers: add regmap subsystems support. 2023-09-27 00:46:51 +08:00