Hello,
I'm trying to increase the RPMSG message buffer size in virtio_rpmsg_bus.c by modifying the following definitions: RPMSG_NUM_BUFS (512) and RPMSG_BUF_SIZE (512). I understand that the total allocated memory can not change, so I want to change the size to 2048 and the number of buffers to 128 After making these changes and rebuilding the kernel, I'm still receiving the "message is too big (512, 2032)" error message. I did add a check that verified the actual value of RPMSG_BUF_SIZE, so maybe the size of 512 is hardcoded elsewhere...
The len of 512 is sourced from the function "virtqueue_get_buf(rvq, &len)." The buffers seems to be created by the following code snippet in the same driver:
sg_init_one(&sg, cpu_addr, RPMSG_BUF_SIZE); err = virtqueue_add_buf(vrp->rvq, &sg, 0, 1, cpu_addr, GFP_KERNEL)
Did I miss something? I'm using Kernel 3.8.12 from GLSDK 6.04.00.02 for the OMAP54xEVM.