mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Francesco Valla <francesco@valla.it>
To: Rob Herring <robh@kernel.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>,
	 Bjorn Andersson <andersson@kernel.org>,
	Kees Cook <kees@kernel.org>,
	 "Gustavo A. R. Silva" <gustavoars@kernel.org>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	 Robin Murphy <robin.murphy@arm.com>,
	Mark Brown <broonie@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Frank Li <Frank.Li@nxp.com>,
	 Peng Fan <peng.fan@nxp.com>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	 linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org,  virtualization@lists.linux.dev,
	imx@lists.linux.dev, iommu@lists.linux.dev,
	 linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH RFC 08/12] dt-bindings: remoteproc: add remoteproc-virtio
Date: Wed, 7 Oct 2026 18:34:14 +0200	[thread overview]
Message-ID: <asZ0KdG7lloNwDfx@bywater> (raw)
In-Reply-To: <20261007134206.GB2792240-robh@kernel.org>

Hello Rob,

On Wed, Oct 07, 2026 at 08:42:06AM -0500, Rob Herring wrote:
> On Tue, Oct 06, 2026 at 06:51:52PM -0600, Mathieu Poirier wrote:
> > On Tue, 6 Oct 2026 at 12:39, Rob Herring <robh@kernel.org> wrote:
> > >
> > > On Tue, Sep 22, 2026 at 09:44:20PM +0200, Francesco Valla wrote:
> > > > On Tue, Sep 22, 2026 at 09:40:31AM -0600, Mathieu Poirier wrote:
> > > > > On Wed, Sep 16, 2026 at 11:10:53PM +0200, Francesco Valla wrote:
> > > > > > Add a new binding to describe remoteproc-provided virtio devices; while
> > > > > > these are discovered through a resource table parsed by the remoteproc
> > > > > > infrastructure at runtime, their description can be needed to probe
> > > > > > non-discoverable buses (such as I2C) or to link consumers and suppliers.
> > > > > >
> > > > > > Each vdev is described by a dedicated "group" node, which then includes
> > > > > > a virtio-device node, which binding is already existent and used by
> > > > > > virtio-mmio. Each vdev shall be stattically linked to a "group" node
> > > > > > using its index inside the resource table as the reg property of the
> > > > > > node; this permits to have multiple instances of the same type of
> > > > > > device.
> > > > > >
> > > > > > The binding is intended to be generic and adopted by any remoteproc
> > > > > > provider.
> > > > > >
> > > > > > Signed-off-by: Francesco Valla <francesco@valla.it>
> > > > > > ---
> > > > > >  .../bindings/remoteproc/remoteproc-virtio.yaml     | 89 ++++++++++++++++++++++
> > > > > >  1 file changed, 89 insertions(+)
> > > > > >
> > > > > > diff --git a/Documentation/devicetree/bindings/remoteproc/remoteproc-virtio.yaml b/Documentation/devicetree/bindings/remoteproc/remoteproc-virtio.yaml
> > > > > > new file mode 100644
> > > > > > index 000000000000..c4a0d84b1460
> > > > > > --- /dev/null
> > > > > > +++ b/Documentation/devicetree/bindings/remoteproc/remoteproc-virtio.yaml
> > > > > > @@ -0,0 +1,89 @@
> > > > > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > > > > > +%YAML 1.2
> > > > > > +---
> > > > > > +$id: http://devicetree.org/schemas/remoteproc/remoteproc-virtio.yaml#
> > > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > > > > +
> > > > > > +title: Virtio devices over remoteproc
> > > > > > +
> > > > > > +description: |
> > > > > > +  Virtio devices ("vdevs") can be exposed using the remoteproc infrastructure
> > > > > > +  and its resource table. For some of them, a device tree node might be needed
> > > > > > +  to describe remote undiscoverable hardware and/or connect consumers and
> > > > > > +  providers.
> > > > > > +
> > > > > > +maintainers:
> > > > > > +  - Francesco Valla <francesco@valla.it>
> > > > > > +
> > > > > > +properties:
> > > > > > +  virtio:
> > > > > > +    description: Contains a group of Virtio devices exposed by the remoteproc.
> > > > > > +
> > > > > > +    properties:
> > > > > > +      '#address-cells':
> > > > > > +        const: 1
> > > > > > +
> > > > > > +      '#size-cells':
> > > > > > +        const: 0
> > > > > > +
> > > > > > +    patternProperties:
> > > > > > +      "^vdev@[0-9a-f]+$":
> > > > > > +        type: object
> > > > > > +
> > > > > > +        properties:
> > > > > > +          reg:
> > > > > > +            description: Virtio device index inside the resource table.
> > >
> > 
> > There are 2 configurations we need to account for: (1) each device
> > located behind the remote processor gets its own set of virtqueues and
> > adheres to the virtio specifications.  This is the configuration
> > targeted by this thread.  The other configuration (2), discussed in
> > the other thread, involves virtio piggy-backed over RPMSG.  The hope
> > is to represent both configurations using the same bindings.  For (1),
> > virtio devices will be advertised in the resource table and for (2),
> > virtio devices will be announced via the existing remoteproc namespace
> > service.
> > 
> > > Who/what defines the resource table?
> > 
> > The resource table is part of the firmware image and is parsed by the
> > remoteproc core.  For (1), as presented in this set, "reg" links the
> > entry in the resource table with the device definition in the DT.  For
> > (2), the definition is also a device index, but said index is
> > communicated to the remoteproc core using a namespace announcement
> > rather than the resource table.
> > 
> > I hope to establish bindings for configuration (1) and merge that work
> > first.  Once that is done we can extend it to cover (2).
> 
> "Defined by firmware" is all I needed. Please make sure the binding 
> patches include this information or I'll forget and just ask again.
>

I'll include this detail in the next version of the bindings; I'm always
working on .rst documentation to add to the next version of the patchset.

> Rob

Regards,
Francesco


  reply	other threads:[~2026-10-07 16:34 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-16 21:10 [PATCH RFC 00/12] remoteproc: add support for any virtio device Francesco Valla
2026-09-16 21:10 ` [PATCH RFC 01/12] remoteproc: virtio: cleanup rproc_add_virtio_dev error path Francesco Valla
2026-09-16 21:10 ` [PATCH RFC 02/12] remoteproc: virtio: replace commas with semicolons Francesco Valla
2026-09-16 21:10 ` [PATCH RFC 03/12] remoteproc: virtio: support dynamic number of vrings Francesco Valla
2026-09-16 21:10 ` [PATCH RFC 04/12] dma-coherent: add base and size APIs Francesco Valla
2026-09-16 21:10 ` [PATCH RFC 05/12] remoteproc: always report VIRTIO_F_VERSION_1 feature Francesco Valla
2026-09-21 15:47   ` Mathieu Poirier
2026-09-22  6:32     ` Francesco Valla
2026-09-22 15:10       ` Mathieu Poirier
2026-09-16 21:10 ` [PATCH RFC 06/12] remoteproc: virtio: add bounce buffering for data buffers Francesco Valla
2026-09-22 15:58   ` Mathieu Poirier
2026-09-22 19:39     ` Francesco Valla
2026-09-23 14:44       ` Mathieu Poirier
2026-09-23 16:05         ` Francesco Valla
2026-09-25 15:07           ` Mathieu Poirier
2026-09-25 16:48             ` Robin Murphy
2026-09-25 19:05               ` Francesco Valla
2026-09-27 22:12                 ` Francesco Valla
2026-09-25 17:03   ` Robin Murphy
2026-09-16 21:10 ` [PATCH RFC 07/12] dt-bindings: spi: add bindings for spi-virtio Francesco Valla
2026-09-16 21:10 ` [PATCH RFC 08/12] dt-bindings: remoteproc: add remoteproc-virtio Francesco Valla
2026-09-22 15:40   ` Mathieu Poirier
2026-09-22 19:44     ` Francesco Valla
2026-09-23 14:56       ` Mathieu Poirier
2026-10-06 18:39       ` Rob Herring
2026-10-07  0:51         ` Mathieu Poirier
2026-10-07 13:42           ` Rob Herring
2026-10-07 16:34             ` Francesco Valla [this message]
2026-09-16 21:10 ` [PATCH RFC 09/12] remoteproc: search for a fwnode during vdev registration Francesco Valla
2026-09-16 21:10 ` [PATCH RFC 10/12] remoteproc: imx_rproc: always use non-blocking mailboxes Francesco Valla
2026-09-16 21:10 ` [PATCH RFC 11/12] dt-bindings: remoteproc: imx-rproc: support virtio Francesco Valla
2026-09-16 21:10 ` [PATCH RFC 12/12] PoC: arm64: dts: imx93-11x11-frdm: add multiple vdevs Francesco Valla
2026-09-22 15:43   ` Mathieu Poirier
2026-09-22 20:19     ` Francesco Valla
2026-09-23 15:48       ` Mathieu Poirier
2026-09-23 18:42         ` Francesco Valla
2026-09-24 15:49           ` Mathieu Poirier
2026-09-25 19:13             ` Francesco Valla
2026-09-25  8:39   ` Alexander Stein
2026-09-25 19:26     ` Francesco Valla
2026-09-18 16:53 ` [PATCH RFC 00/12] remoteproc: add support for any virtio device Mathieu Poirier
2026-09-19  7:33   ` Francesco Valla
2026-09-21  3:31     ` Mathieu Poirier
2026-09-22  6:28       ` Francesco Valla
2026-09-22 13:53         ` Mathieu Poirier
2026-09-23 15:13 ` Robin Murphy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=asZ0KdG7lloNwDfx@bywater \
    --to=francesco@valla.it \
    --cc=Frank.Li@nxp.com \
    --cc=andersson@kernel.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gustavoars@kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=iommu@lists.linux.dev \
    --cc=kees@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=mathieu.poirier@linaro.org \
    --cc=peng.fan@nxp.com \
    --cc=robh@kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=s.hauer@pengutronix.de \
    --cc=virtualization@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®