From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 7EF8B45C70A for ; Mon, 24 Aug 2026 16:33:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787589209; cv=none; b=OsPagjd83MmLHoGpI2DuCG01dbW0xdB7Owpqm8LUppffRA2cO91IiHFRZ9MkCRBH21svezoH3H9iA/BTWrU3SdsWKzZ2mZe2r4MHDnpLvgEgggWwhFJSIwv8I4ri9Pmx0tcql70Oyu9z6Yt/qnfOXtWj8ouqWi5Cazbkrf6tbu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787589209; c=relaxed/simple; bh=PDQRMWW7Rcll+5kc+ejeeDKv6zoJD/yxOX9E1C8BeDI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b9XarFKInCHaWDJ8o2WC7HSyAYjasNy+utd3cnrIKEBwdo8Aa7UVY/70VlDwS5h2lh90wCHofuiN/HDQcetXRpHrB0KeRK69ZEK2G53sEytp8FY0GkkUXbcbjd2+ZRKOIWqojfEHqTB/x/gzw4T8AHx+83BtCM7kg8l80SThrUQ= 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=IR/sYCAS; arc=none smtp.client-ip=209.85.216.48 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="IR/sYCAS" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-38e347638adso3429182a91.0 for ; Mon, 24 Aug 2026 09:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1787589207; x=1788194007; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=M+QSibAn0UMx/gBIlWURwPsPXJu7ntnUEMY3GNgVUUE=; b=IR/sYCASbrAeVpfaGiNuWW/UlER1Y6f5cxQeL3CWYWqKgaDi4qRfnDESxe2edlcl5q OAeY2yDha6hDxruRyzWLYXIXZCPdoVndtZ5zmEjZMYwKtho/0qzKuc4mVRAU+hgzK3ga cdZ5+M8teIVzw7i941QRzOpFVXZYDeMBQf9nvvbki7HTpL6O5pkc0NMG0A/CITkDU4WN wIqtoOuWJFAeA/uJTfUhYUOLaXpz/SJq5kFIM7fHKYNqb5vz2C7BNfd167M+1nJ6fvqS UVkkn3p1/Us7Lw8ezKKWSd169pTeeDZ8+I2MDBZBCaqwiecPe2cL3o9PL+dhkpGzNw0f 9dEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787589207; x=1788194007; h=in-reply-to:content-disposition:content-type: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 :content-type; bh=M+QSibAn0UMx/gBIlWURwPsPXJu7ntnUEMY3GNgVUUE=; b=Bt0HxqnV7D/4hU8Q0A/KyvxjolQMgJAbBfk+fZKdasQlUFImFiqGrBOirftXVIntxa VVLSurxspMOs2WZLUE25kB+r3UrrAd/WijKRn0BnDpU38BJaxpCQVmYplUlQWsUC/Y4n HydyVTLmcA2Yol7zWvOJURVE6Hh1nYtvBD7zifSRKcQY1Yme8VbEu4x16aWnxLelnVZ0 NWjI3kUZoEehYhT4Y9L8IaXMsT2sdT/LXCvqUk6P5xC2wlITL0TbB3t7RpHC5BCM1aPO BiSb4JWcS/AMv4WMfBCwjHzziWiK9fCX8/rkezSHcoPPTahVvdyj1bwAm7+Pv4BilzDh B8sQ== X-Forwarded-Encrypted: i=1; AHgh+Ro9v0dw57QoBlbP7QGNUD7uoAJdyeB67FACK0PuedyC/XTcWelZNUQqPmIHUw/wKy3CDCP2aSo3vrlFxEY=@vger.kernel.org X-Gm-Message-State: AFuF++kdCZzdT2+gqeCOhLkXCBrrgmIuWYZYUe955BE0aR7bf49iESmR VVa9IprhQFGHVcXDwvYrmhKyyie/nqBgy72reRqVux+AC0p164+aPH2YncLPRiQMqHY= X-Gm-Gg: AR+sD11Dp3sfXV9nF/oLHP56zw2EFSZVREB8Wp+qaFc6RdPDYpJNgQSemiP0KlwKjtn hJkglxK2d5xGMlUU81DdJFG8UHBuLaPMv7WdllaguuWPxCspbF7d6M7EqhnOIIdRJuS3vrFZpra 0OXQ5zENBosr+n1IHSR5G22C2qTxcJJrdThwOts+QrhYFYVds+CoRQ36lSQcgBpQUXimuw8Qn+j JuAQ4F6KdfM/a2iRAsboMypqtgnSQBu/HIzdRRSJAux1Fm98uzLignDkHJxwqmVZ8+z1daPo1an ucRFnrnaH4OyfvAfj2QLMdGmW295CZUBxq2+NDekOTwCuUd2ZgoJPmxnX/Y1DY+TztDtdlHSSBf 7yyEESXy5H8TcbimX+g07KaYKJ1byYBDSPbsVKvSMqhYfyDRPuFbClBszo23aeypxN6pIi3uqjx eEa7/M1ujIKmJQIquSZesWfNyCH/4KqdZvzYfErlM9UueZwA01yHh0LGyXFF8pY17T X-Received: by 2002:a17:90a:fc47:b0:380:105f:8ffd with SMTP id 98e67ed59e1d1-395df5e76b5mr38827905a91.16.1787589206702; Mon, 24 Aug 2026 09:33:26 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:82f2:24c5:571b:87b2]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39645d69065sm133297a91.13.2026.08.24.09.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2026 09:33:26 -0700 (PDT) Date: Mon, 24 Aug 2026 10:33:23 -0600 From: Mathieu Poirier To: Tanmay Shah Cc: andersson@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, linux-remoteproc@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 4/5] docs: rpmsg: add virtio config space details Message-ID: References: <20260814044238.518296-1-tanmay.shah@amd.com> <20260814044238.518296-5-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: <20260814044238.518296-5-tanmay.shah@amd.com> On Thu, Aug 13, 2026 at 09:42:37PM -0700, Tanmay Shah wrote: > The virtio config space can provide single rpmsg buffer size in each > direction. Document details of the configurable buffer size via virtio > config space. > > Signed-off-by: Tanmay Shah > --- > > Changes in v6: > - rpmsg.rst: modify alignment related documentation > > Changes in v5: > - fix documentation of buffer alignment > > Documentation/staging/rpmsg.rst | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/Documentation/staging/rpmsg.rst b/Documentation/staging/rpmsg.rst > index 63612b7ee120..cabaf3d11ae7 100644 > --- a/Documentation/staging/rpmsg.rst > +++ b/Documentation/staging/rpmsg.rst > @@ -299,3 +299,20 @@ by the bus, and can then start sending messages to the remote service. > > The plan is also to add static creation of rpmsg channels via the virtio > config space, but it's not implemented yet. > + > +Configurable buffer sizes > +========================= > + > +By default each rpmsg buffer is 512 bytes, and the same size is used for both > +the receive and transmit directions. Remote processors that need a different > +size (for example a larger MTU, or different RX and TX sizes) can advertise it "... or differnt RX and TX queue sizes)... > +through the virtio device config space by setting the VIRTIO_RPMSG_F_BUFSZ > +feature bit. > + > +When this feature is negotiated, the driver reads struct virtio_rpmsg_config > +from the config space. This structure provides the size of a single buffer for > +each direction (TX and RX). The device should advertise TX/RX buffer sizes > +that already satisfy its own alignment constraints. > + > +If the feature is not negotiated, the default 512-byte buffers are used for > +both directions. > -- > 2.43.0 >