mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Francesco Valla <francesco@valla.it>
To: Bjorn Andersson <andersson@kernel.org>,
	 Mathieu Poirier <mathieu.poirier@linaro.org>,
	 Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>,
	 Joakim Zhang <joakim.zhang@cixtech.com>
Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org,
	 Francesco Valla <francesco@valla.it>
Subject: [PATCH 0/4] remoteproc: virtio: Fixes and cleanups in the vdev<->pdev relationship
Date: Sun, 08 Nov 2026 23:32:36 +0100	[thread overview]
Message-ID: <20261108-remoteproc_pdev_decouple-v1-0-3dc2fad4951d@valla.it> (raw)

Hello,

while proceeding on [1] I noticed a possible simplification on the
rproc-virtio registration and tracking path, which led to the discovery
of a couple of bugs. This series is the result of the work that followed
and thus contains both (proposed) fixes for the bugs and the
aforementioned simplification, which consists in less poking the backing
pdev from the vdev side.

Patches 1 and 2 can be collapsed into one, but I preferred to leave them
separate to show the reasoning behind (and to allow cherry-picking, if
that's the case).

If anyone is reviewing [1], or plans to: please consider this series
first. I'm in no rush to have that accepted, and some (critical, in the
case of iommu) details need to be squared out, while this series fixes
what I think to be real bugs. I would have preferred to spot them
before, but...

AI disclosure: an LLM was used to review the work, but all code is my
own, as well as the commit messages (I'll be happy to fix the english,
don't hesitate to correct me also on that).

Thank you!

Regards,
Francesco

[1] https://lore.kernel.org/linux-remoteproc/20261102-remoteproc_virtio_map-v2-0-26b300e01c62@valla.it/

Signed-off-by: Francesco Valla <francesco@valla.it>
---
Francesco Valla (4):
      remoteproc: virtio: Decouple vdev from the parent pdev
      remoteproc: virtio: Rework memory release
      remoteproc: virtio: Drop rvdevs list and associated functions
      remoteproc: virtio: Stop de-referencing pdev from its children

 drivers/remoteproc/remoteproc_core.c     | 34 ++++++++++----------
 drivers/remoteproc/remoteproc_internal.h |  4 +--
 drivers/remoteproc/remoteproc_virtio.c   | 53 +++++++++++++-------------------
 include/linux/remoteproc.h               | 10 ++----
 4 files changed, 43 insertions(+), 58 deletions(-)
---
base-commit: ec1f9ba57b02fe12a6fa5f141206d439ba3d044e
change-id: 20261107-remoteproc_pdev_decouple-9933eb3a5998

Best regards,
--  
Francesco Valla <francesco@valla.it>


             reply	other threads:[~2026-11-08 22:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-08 22:32 Francesco Valla [this message]
2026-11-08 22:32 ` [PATCH 1/4] remoteproc: virtio: Decouple vdev from the parent pdev Francesco Valla
2026-11-08 22:32 ` [PATCH 2/4] remoteproc: virtio: Rework memory release Francesco Valla
2026-11-08 22:32 ` [PATCH 3/4] remoteproc: virtio: Drop rvdevs list and associated functions Francesco Valla
2026-11-08 22:32 ` [PATCH 4/4] remoteproc: virtio: Stop de-referencing pdev from its children Francesco Valla
2026-11-09 14:19 ` [PATCH 0/4] remoteproc: virtio: Fixes and cleanups in the vdev<->pdev relationship Mathieu Poirier

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=20261108-remoteproc_pdev_decouple-v1-0-3dc2fad4951d@valla.it \
    --to=francesco@valla.it \
    --cc=andersson@kernel.org \
    --cc=arnaud.pouliquen@foss.st.com \
    --cc=joakim.zhang@cixtech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=mathieu.poirier@linaro.org \
    /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®