walnux/drivers
wangjianyu3 a5b85fcd96 misc/rpmsgdev: Fix invalid pointer error when there are more than one remotes
Test: (see tests/testcases/rpmsgdev for details)
  # 1. Register dummy device
  testdev -d 0 -r "/dev/ttyGNSS0"
  # 2. Call rpmsgdev_export() to export the device to remote
  testdev -d 2 -c "droid" -l "/dev/ttyGNSS0"

Log:
  [ap] arm_busfault: PANIC!!! Bus Fault:
  [ap] arm_busfault:        IRQ: 5 regs: 0x3c434e44
  [ap] arm_busfault:        BASEPRI: 00000000 PRIMASK: 00000000 IPSR: 00000005 CONTROL: 00000004
  [ap] arm_busfault:        CFSR: 00008200 HFSR: 00000000 DFSR: 00000000 BFAR: 00000000 AFSR: 00040000
  [ap] arm_busfault: Bus Fault Reason:
  [ap] arm_busfault:        Precise data bus error
  [ap] dump_assert_info: Current Version: NuttX ****** ***** *** 12.3.0 ********** Sep 23 2024 18:35:50 arm
  [ap] dump_assert_info: Assertion failed panic: at file: armv8-m/arm_busfault.c:113 task: testdev process: testdev 0x2c86ca75

Backtrace:
  backtrace_unwind
  /workspace/nuttx/arch/arm/src/common/arm_backtrace_unwind.c:632
  sched_backtrace
  /workspace/nuttx/sched/sched/sched_backtrace.c:105
  sched_dumpstack
  /workspace/nuttx/libs/libc/sched/sched_dumpstack.c:69
  dump_running_task
  /workspace/nuttx/sched/misc/assert.c:629
  arm_busfault
  /workspace/nuttx/arch/arm/src/armv8-m/arm_busfault.c:113
  irq_dispatch
  /workspace/nuttx/sched/irq/irq_dispatch.c:142
  arm_doirq
  /workspace/nuttx/arch/arm/src/armv8-m/arm_doirq.c:95
  strcmp
  /workspace/nuttx/libs/libc/machine/arm/armv8-m/gnu/arch_strcmp.S:107
  rpmsgdev_server_created
  /workspace/nuttx/drivers/misc/rpmsgdev_server.c:520 (discriminator 1)
  rpmsg_register_callback
  /workspace/nuttx/drivers/rpmsg/rpmsg.c:245
  rpmsgdev_export
  /workspace/nuttx/drivers/misc/rpmsgdev_server.c:552
  _register_driver
  /workspace/tests/testcases/rpmsgdev/testdev.c:216
  nxtask_startup
  /workspace/nuttx/libs/libc/sched/task_startup.c:70
  nxtask_start
  /workspace/nuttx/sched/task/task_start.c:114

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-23 23:59:12 +02:00
..
1wire nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
analog nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
audio drivers/audio: fix samp rate conversion issue 2024-08-27 22:00:39 +08:00
bch BCH: Add readonly configuration for BCH devices 2024-09-19 03:53:20 +08:00
can can/sja1000: drop driver dependency on __builtin functions 2024-09-19 09:39:04 +08:00
clk math: Optimize the implementation of log2ceil and log2floor 2024-09-23 10:03:54 +02:00
contactless nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
coresight math: Optimize the implementation of log2ceil and log2floor 2024-09-23 10:03:54 +02:00
crypto nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
devicetree nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08: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 nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
efuse nuttx: use lib_free for memory de-allocation after strdup or asprintf 2023-08-08 11:58:29 -03:00
i2c i2c: Optimize access to private data 2024-09-20 13:28:03 +02:00
i2s nuttx: use sizeof instead of define or number in snprintf 2024-08-25 19:22:15 +08:00
input bits:rename __set_bit to set_bit __clear_bit to clear_bit 2024-09-23 10:03:54 +02:00
ioexpander drivers/gpio: save memory if dont support signal 2024-09-15 11:29:55 +08:00
ipcc nuttx: use sizeof instead of define or number in snprintf 2024-08-25 19:22:15 +08:00
lcd bits:rename __set_bit to set_bit __clear_bit to clear_bit 2024-09-23 10:03:54 +02:00
leds drivers/leds/ws2812: Fix WS2812 pixel size 2023-12-24 16:38:06 -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 misc/rpmsgdev: Fix invalid pointer error when there are more than one remotes 2024-09-23 23:59:12 +02:00
mmcsd mmcsd: fix a build error 2024-09-19 15:44:59 +08:00
modem nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
motor Fix allocated memory test 2024-06-28 09:30:42 +02:00
mtd ftl: should pre-allocate eblock for car case 2024-09-16 10:25:36 +08:00
net vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
note nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
pci Support nuttx pci endpoint driver framework 2024-09-23 10:03:54 +02:00
pinctrl driver/pinctl: add pinctrl framework 2024-09-17 02:25:47 +08:00
pipes drivers/pipes: add fcntl(F_SETPIPE_SZ/F_GETPIPE_SZ) support 2024-09-10 11:35:15 +08:00
power nuttx/drivers:Modify errcode returned by relay_ioctl 2024-08-29 01:04:03 +08:00
rc nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
regmap drivers/regmap: add exit function interface. 2024-08-27 21:43:58 +08:00
reset drivers/reset: support rpmsg reset 2024-09-15 20:21:41 +08:00
rf build: add initial cmake build system 2023-07-08 13:50:48 +08:00
rmt nuttx: use sizeof instead of define or number in snprintf 2024-08-25 19:22:15 +08:00
rpmsg rpmsg_port_spi: set mreq to high to trigger next transmission 2024-09-17 01:55:51 +08:00
rptun drivers/rpmsg: add get_local_cpuname to rpmsg ops 2024-09-17 01:55:51 +08:00
segger drivers/segger: upgrade to v3.54 2024-07-03 17:31:23 +08:00
sensors sensor: Fixed the problem of user information lag in cross-core communication "stublist". 2024-09-21 23:09:48 +08:00
serial fs_inode:Change the type of i_crefs to atomic_int 2024-09-23 14:07:03 +08:00
spi spi_slave: keep consistent with the parameter of the spi_slave_receive function declaration 2024-09-13 12:27:31 +08:00
syslog drivers/syslog: compile syslog_device.c if console/char/file channel enabled 2024-09-23 14:36:40 +08:00
thermal Thermal/dummy: Fix depends error 2024-09-23 08:57:29 +08:00
timers clock: Replace all ts and tick conversion functions 2024-09-12 18:14:39 +08:00
usbdev composite.c warning 2024-09-16 10:33:01 +08:00
usbhost nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
usbmisc nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
usbmonitor nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
usrsock rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
video drivers/fb: add panbuffer clear ioctl 2024-09-13 09:15:38 +08:00
virtio drivers: fix gcc14 errors for virtio 2024-09-16 11:25:40 -03:00
wireless nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
.gitignore
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
drivers_initialize.c Add thermal framework 2024-09-23 08:57:29 +08:00
Kconfig Add thermal framework 2024-09-23 08:57:29 +08:00
Makefile Add thermal framework 2024-09-23 08:57:29 +08:00