[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d4733fde-b1de-4852-9c75-c1c7e1896a9e@amd.com>
Date: Wed, 17 Dec 2025 16:20:33 -0600
From: Tanmay Shah <tanmay.shah@....com>
To: Mathieu Poirier <mathieu.poirier@...aro.org>
CC: <andersson@...nel.org>, <mst@...hat.com>, <jasowang@...hat.com>,
<xuanzhuo@...ux.alibaba.com>, <eperezma@...hat.com>,
<linux-kernel@...r.kernel.org>, <linux-remoteproc@...r.kernel.org>,
<virtualization@...ts.linux.dev>, <xiaoxiang@...omi.com>
Subject: Re: [RFC PATCH 0/2] Enhance RPMsg buffer management
On 12/17/25 3:31 PM, Mathieu Poirier wrote:
> On Fri, Nov 14, 2025 at 10:46:38AM -0800, Tanmay Shah wrote:
>> Take rx and tx buffer size from virtio device config space in the
>> resource table. This allows each firmware to configure RPMsg buffer size
>> as needed in each direction.
>>
>> Original seris:
>> https://lore.kernel.org/all/1548949280-31794-1-git-send-email-xiaoxiang@xiaomi.com/
>>
>> Following modificaitons are done to the original series:
>> - Separate dma allocation is not done for tx and rx buffers. Instead
>> allocated chunk of memory is split between tx and rx buffers.
>> - If vdev doesn't support VIRTIO_RPMSG_F_BUFSZ feature then use the
>> default size of 512 bytes for buffers
>> - Change MAX_RPMSG_BUF_SIZE to DEFAULT_RPMSG_BUF_SIZE
>> - move virtio_rpmsg.h from uapi to linux dir
>> - RPMsg buffer size must be set to hold rpmsg header at minimum in the
>> vdev config space of the firmware.
>> - align total buf size to page size when allocating and deallocating
>> memory
>>
>> Xiang Xiao (2):
>> rpmsg: virtio_rpmsg_bus: allow the different vring size for send/recv
>> rpmsg: virtio_rpmsg_bus: get buffer size from config space
>>
>> drivers/rpmsg/virtio_rpmsg_bus.c | 105 ++++++++++++++++++++-----------
>> include/linux/virtio_rpmsg.h | 24 +++++++
>> 2 files changed, 93 insertions(+), 36 deletions(-)
>> create mode 100644 include/linux/virtio_rpmsg.h
>>
>
> This set is going somewhere. Please address the comments that were received and
> send a new revision.
>
> Apologies for the long review delay.
> Mathieu
>
Sure Mathieu, no problem. I will be on leave in the January, and will start
working on this patch series once I come back.
Thanks,
Tanmay
>>
>> base-commit: f982fbb1a6ca3553c15763ad9eb2beeae78d3684
>> --
>> 2.34.1
>>
Powered by blists - more mailing lists