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-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-remoteproc@vger.kernel.org,
Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Subject: [PATCH v4 0/6] remoteproc: qcom: pas: Misc fixes
Date: Fri, 1 May 2026 00:42:47 +0530 [thread overview]
Message-ID: <20260430191253.4052025-1-mukesh.ojha@oss.qualcomm.com> (raw)
This series is a collection of misc fixes for the Qualcomm PAS remoteproc
driver and its supporting SCM/MDT loader infrastructure.
- Fix sparse __iomem warnings in qcom_adsp, qcom_pas and qcom_wcnss by
annotating mem_region fields with __iomem and using __force at call sites.
- Guard the DTB metadata release in qcom_pas_load() with a dtb_pas_id check,
consistent with all other release sites in the driver.
- Move PAS context allocation from probe into qcom_pas_alloc_memory_region()
so the DTB context is only created for subsystems that actually use it.
- Map/unmap the subsystem memory region on demand around firmware load and
coredump, avoiding potential XPU violations on EL2 platforms where the
region may be handed off to the remote side.
- Drop the now-unused dtb_mem_region field from struct qcom_pas.
- Add a keep_mdt_buf flag to struct qcom_scm_pas_context to make metadata
buffer retention explicit rather than implicit.
Changes in v4:
https://lore.kernel.org/lkml/20260331183957.2015440-1-mukesh.ojha@oss.qualcomm.com/
https://lore.kernel.org/lkml/20260331191210.2019758-2-mukesh.ojha@oss.qualcomm.com/
- Last series mistakenly divided two series cause laptop shutdown.
- Some minor refactor common code rest is same a rebased on latest
kernel.
- Added new 6/6 to the series.
Mukesh Ojha (6):
remoteproc: qcom: fix sparse warnings for __iomem annotated mem_region
remoteproc: qcom: pas: Guard dtb metadata release with dtb_pas_id
check
remoteproc: qcom: pas: Fix the PAS context creation placement
remoteproc: qcom: pas: Map/unmap subsystem region before
auth_and_reset
remoteproc: qcom: pas: Drop unused dtb_mem_region field
firmware: qcom: scm: introduce keep_mdt_buf flag in PAS context
drivers/firmware/qcom/qcom_scm.c | 21 +++++-
drivers/remoteproc/qcom_q6v5_adsp.c | 6 +-
drivers/remoteproc/qcom_q6v5_pas.c | 99 +++++++++++++++-----------
drivers/remoteproc/qcom_wcnss.c | 6 +-
drivers/soc/qcom/mdt_loader.c | 18 +++--
include/linux/firmware/qcom/qcom_scm.h | 1 +
include/linux/soc/qcom/mdt_loader.h | 4 +-
7 files changed, 99 insertions(+), 56 deletions(-)
--
2.53.0
next reply other threads:[~2026-04-30 19:13 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-30 19:12 Mukesh Ojha [this message]
2026-04-30 19:12 ` [PATCH v4 1/6] remoteproc: qcom: fix sparse warnings for __iomem annotated mem_region Mukesh Ojha
2026-06-18 13:53 ` Konrad Dybcio
2026-06-22 15:50 ` Mukesh Ojha
2026-07-06 17:31 ` Mukesh Ojha
2026-04-30 19:12 ` [PATCH v4 2/6] remoteproc: qcom: pas: Guard dtb metadata release with dtb_pas_id check Mukesh Ojha
2026-07-06 18:00 ` Dmitry Baryshkov
2026-04-30 19:12 ` [PATCH v4 3/6] remoteproc: qcom: pas: Fix the PAS context creation placement Mukesh Ojha
2026-07-06 18:02 ` Dmitry Baryshkov
2026-04-30 19:12 ` [PATCH v4 4/6] remoteproc: qcom: pas: Map/unmap subsystem region before auth_and_reset Mukesh Ojha
2026-06-24 11:45 ` Konrad Dybcio
2026-07-06 18:07 ` Dmitry Baryshkov
2026-04-30 19:12 ` [PATCH v4 5/6] remoteproc: qcom: pas: Drop unused dtb_mem_region field Mukesh Ojha
2026-06-24 11:47 ` Konrad Dybcio
2026-07-06 18:10 ` Dmitry Baryshkov
2026-04-30 19:12 ` [PATCH v4 6/6] firmware: qcom: scm: introduce keep_mdt_buf flag in PAS context Mukesh Ojha
2026-06-30 10:39 ` Konrad Dybcio
2026-06-30 11:14 ` Mukesh Ojha
2026-07-06 18:13 ` Dmitry Baryshkov
2026-07-07 7:38 ` Mukesh Ojha
2026-06-08 16:18 ` [PATCH v4 0/6] remoteproc: qcom: pas: Misc fixes 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=20260430191253.4052025-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®