mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-remoteproc@vger.kernel.org,
	Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Subject: [PATCH 0/5] Decouple resource table definitions from remoteproc
Date: Wed,  6 May 2026 10:31:02 +0530	[thread overview]
Message-ID: <20260506050107.1985033-1-mukesh.ojha@oss.qualcomm.com> (raw)

The motivation for this series came from [1], which first introduced
support for Secure PAS with Linux running at EL2. That series covered
both remoteproc subsystems (ADSP/CDSP) and non-remoteproc subsystems
(VIDEO), but resource table parsing was duplicated from the remoteproc
code. The remoteproc driver support for Secure PAS at EL2 has since been
merged, and video enablement is being pursued with [2].

The resource table wire-format structs live in <linux/remoteproc.h>,
but non-remoteproc drivers (e.g. video, GPU) on EL2 SoCs also need
them to parse tables obtained via SCM calls. Move the definitions to
a standalone <linux/rsc_table.h>, add a generic rsc_table_for_each_entry()
iterator, and use it in the remoteproc core and a new Qualcomm MDT
loader API for IOMMU mapping of RSC_DEVMEM entries.

This series is build on top of series
https://lore.kernel.org/lkml/20260430191253.4052025-1-mukesh.ojha@oss.qualcomm.com/
not for technical dependency but for the file change in mdt_loader file.

[1]
https://lore.kernel.org/lkml/aKXqSU-487b6Je2B@linaro.org/

[2]
https://lore.kernel.org/lkml/20260505-glymur-v4-0-17571dbd1caa@oss.qualcomm.com/

Mukesh Ojha (5):
  remoteproc: Move resource table data structure to its own header
  remoteproc: use rsc_table_for_each_entry() in rproc_handle_resources()
  soc: qcom: mdt_loader: add qcom_mdt_pas_map/unmap_devmem_rscs()
  firmware: qcom: scm: replace <linux/remoteproc.h> with
    <linux/rsc_table.h>
  MAINTAINERS: add rsc_table.h to remoteproc entry

 MAINTAINERS                          |   1 +
 drivers/firmware/qcom/qcom_scm.c     |   4 +-
 drivers/remoteproc/remoteproc_core.c |  81 +++---
 drivers/soc/qcom/mdt_loader.c        | 189 ++++++++++++++
 include/linux/remoteproc.h           | 269 +-------------------
 include/linux/rsc_table.h            | 359 +++++++++++++++++++++++++++
 include/linux/soc/qcom/mdt_loader.h  |  22 ++
 7 files changed, 612 insertions(+), 313 deletions(-)
 create mode 100644 include/linux/rsc_table.h

-- 
2.53.0


             reply	other threads:[~2026-05-06  5:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-06  5:01 Mukesh Ojha [this message]
2026-05-06  5:01 ` [PATCH 1/5] remoteproc: Move resource table data structure to its own header Mukesh Ojha
2026-05-25 15:53   ` Mathieu Poirier
2026-05-26  7:49     ` Mukesh Ojha
2026-05-06  5:01 ` [PATCH 2/5] remoteproc: use rsc_table_for_each_entry() in rproc_handle_resources() Mukesh Ojha
2026-05-25 15:51   ` Mathieu Poirier
2026-05-06  5:01 ` [PATCH 3/5] soc: qcom: mdt_loader: add qcom_mdt_pas_map/unmap_devmem_rscs() Mukesh Ojha
2026-05-26  6:47   ` Dmitry Baryshkov
2026-05-26  8:15     ` Mukesh Ojha
2026-05-06  5:01 ` [PATCH 4/5] firmware: qcom: scm: replace <linux/remoteproc.h> with <linux/rsc_table.h> Mukesh Ojha
2026-05-06  5:01 ` [PATCH 5/5] MAINTAINERS: add rsc_table.h to remoteproc entry Mukesh Ojha

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=20260506050107.1985033-1-mukesh.ojha@oss.qualcomm.com \
    --to=mukesh.ojha@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --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®