Increased (1024) RPMSG Buffer Size will fail on Mailbox vdev declaration
Hey there, I am trying to increase the RPMSG buffer size to 1024 on the STM32MP1 for the last couple of days. The A7 side seems to be working fine but the M4 side seems to struggle with the vdev declaration on the device tree.
On the A7 side: virtio_rmpsg_buss.c
#define MAX_RPMSG_NUM_BUFS (1024)
#define MAX_RPMSG_BUF_SIZE (1024)
#define RPMSG_RESERVED_ADDRESSES (2048)
#define RPMSG_NS_ADDR (53)stm32mp15xx-dkx.dtsi:
vdev0buffer: vdev0buffer@10044000 {
compatible = "shared-dma-pool";
reg = <0x10044000 0x10000>;
no-map;
};On the M4 side: rpmsg_virtio.h
* Configurable parameters */
#ifndef RPMSG_BUFFER_SIZE
#define RPMSG_BUFFER_SIZE (1024)
#endifThe user-space can see and send messages to the RPMSG channel but when debugging the M4 part I get what to seems to be a memory allocation error
(gdb) 0x1000b47e in MAILBOX_Poll (vdev=0x10020f70) at ../OPENAMP/mbox_ipcc.c:105Any ideas or advice will be highly appreciated.
