From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00DDE26E6F0 for ; Wed, 17 Dec 2025 21:31:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766007091; cv=none; b=QocGtCl5sk6QHfvhfLejE5ew5RB5iFCmlZjD/xdi5QdUT89laf6uCZCvMPBvrAr4s61H5COoyF2GizCa2RwwvIeAU7S7WT1x+Ohc8AmzBYI34pqbTVX+VALmVMfDYR7jnSPe6ZiNoTRtEGDs7Fm9bGadxGeeVYUgcr5TD2LYlRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766007091; c=relaxed/simple; bh=ZrwbbUW3N9FfT0wYKVT7nAip48ht2GpZQbyeczMtBq8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oqhG4VdQNBdqOYrx6TG5hgitGQZvwwfzowyK7Mj4UbWUFeBQ+d4PC8g27jYqLphFb1y4H/Nh3vtlVCSpoy3y0JXXaQHtNMvWfqVfjoBmBsLsD8oFzJDLsNgOePgSVNHk4QEPKgDt4cR4ovaEersWKkS3Re/ogXlPSqaZ2IBV1pU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=PEY/DN0E; arc=none smtp.client-ip=209.85.216.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PEY/DN0E" Received: by mail-pj1-f66.google.com with SMTP id 98e67ed59e1d1-34ccb7ad166so2505019a91.2 for ; Wed, 17 Dec 2025 13:31:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766007089; x=1766611889; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=f5JApYGuzxiB3a2BPggX8fFjm1eExovTMlFNv757Hsw=; b=PEY/DN0EqDb7hVmnPDk4K60GhaaOMYOuHi7dd4SlA7fmyLHEcJGP82pA52aXXC2Epo gkZTgoyFaaSP2UamHd9Hr0JlKsgd1O7NYylOTjbeT6V0b84k4MfRYgoBqNSlODuLPn0x ltveHrqkJ10M5tLfvgB4hJNri2LRnCSXLORu4GPIO1iA2YpSv6sL59DSeNFLlE3vj1Ly 1JPJo3nyi9Gy4DVKpFgbjTqrgQJNfJZEoPqJt4D/a9oezvt5dlztHQI6b3hvqxSasKOc 36VAQQMnFl7/0jTurispgfkt3X2luoGP9jtPXK3oIVp9PJHG/dCN50YWxCW1BYGLHXos vpTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766007089; x=1766611889; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f5JApYGuzxiB3a2BPggX8fFjm1eExovTMlFNv757Hsw=; b=e99LIQnws1spbX5omDtlN0WrMcu3xlpM7MQaVdtGuJQzWARXvEYg5lP27vXekWLaGH ImKrMELwUMw8WQLjCAts5vP3fxHqW5IpNtyWmneDTePtbtzOQViUnOPvJxnsjXBmLnpV 4Nj0dRWj8Si0CXP64OyqVq09xOuE0gBmwrdbDVf2ZprYLhJIcKZFimk1Ocli6Pv6I87W OKVr/EhDkhCEFmnlJUoqU7wPrU/obPswYzMzHDXWtfxd2fwnD89b8lwo0YGDNWAMp8/1 JbbvMESzfI9vYn7wh7PGBfKquJlwEuTsOwHhbBLGpvMFpDh6FHWROzle4TCqTZr894oQ XNew== X-Forwarded-Encrypted: i=1; AJvYcCUZ9OixfvMwDLaMue2Aje4DC9tdwvCZdI6qHGjGxDqlrALV0Lnvue8m0z+N5JmE2keuOvPNTliQtVNp8Ho=@vger.kernel.org X-Gm-Message-State: AOJu0YxKLMyIPeIltXAcctyNTs5BAextXfojFardL8mD8I6ZYvzqumS2 SDwZh6pNVOHcsIltyWQ+7bWk9N1PXO2hJC14mVZ3ro7iDwfmI5Zo7vwpiSLZhY0Igdk= X-Gm-Gg: AY/fxX5zgvNYc8PjmYfgE+lHsTehHJNr187lE9h5o3WB50PMyxOx202WHtpeLVI/4xp H6y3U79H4PNjmJvPIP7fLAE/c2x9DqGVnPEtnoAPsfqXNtAPm3mNiiMM5feVSnYbZNwNZDkBdHE VG7ZIfSSHHGJWZLgCtbmQBRfQN4dvtoEe7S7WD/JKWLCd27S8G8HCNWLyucbfU8ohG6uB7DUC+J yC4VF+MUcDWPVQPvUgGxMpLIuhpJSytrs6a1nYhwfGPoVAeCGRYM+oqg+stA1Nu5QsYHpChiKEd 6bVFwUBQhcwqSjDD0/qLz5o9OuYt9BLf4Z9clh9ZWk6Ni3Mdh7zEhk35AcvP5wjNeXtsOPnRDIT WsARvh1dUZYmBWpHKW5S/coNIRKnjMNiRFliFftGi0v6zdmOJBplRTp/Ge3eG1BHDMbZ3ajfW3D aBcJIoNq61NtJB X-Google-Smtp-Source: AGHT+IFlj92JtrStaZk3eC4JfdqeXsQIYzDTBERa3lbqEjrJAEjPEyL4DDHJKpCXCawtFFErwViJ3g== X-Received: by 2002:a17:90b:1fc6:b0:339:cece:a99 with SMTP id 98e67ed59e1d1-34abd6dd2fcmr18316438a91.13.1766007089154; Wed, 17 Dec 2025 13:31:29 -0800 (PST) Received: from p14s ([2604:3d09:148c:c800:cfb9:c35:9f28:8222]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34e746cbfb0sm293722a91.14.2025.12.17.13.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Dec 2025 13:31:28 -0800 (PST) Date: Wed, 17 Dec 2025 14:31:25 -0700 From: Mathieu Poirier To: Tanmay Shah Cc: andersson@kernel.org, mst@redhat.com, jasowang@redhat.com, xuanzhuo@linux.alibaba.com, eperezma@redhat.com, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, virtualization@lists.linux.dev, xiaoxiang@xiaomi.com Subject: Re: [RFC PATCH 0/2] Enhance RPMsg buffer management Message-ID: References: <20251114184640.3020427-1-tanmay.shah@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251114184640.3020427-1-tanmay.shah@amd.com> 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 > > base-commit: f982fbb1a6ca3553c15763ad9eb2beeae78d3684 > -- > 2.34.1 >