From: sashiko-bot@kernel.org
To: "Komal Bajaj" <komal.bajaj@oss.qualcomm.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/2] remoteproc: qcom: pas: Add Shikra remoteproc support
Date: Thu, 21 May 2026 13:56:59 +0000 [thread overview]
Message-ID: <20260521135659.A15C11F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260521-shikra-rproc-v3-2-2fca0bbe1ad7@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Missing `ssctl_id` initialization for `shikra_lpaicp_resource` causing graceful shutdown failure.
--
commit de542ab4b48a2146f6973ba793bbbd6328de204c
Author: Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>
remoteproc: qcom: pas: Add Shikra remoteproc support
This commit adds the CDSP, LPAICP and MPSS Peripheral Authentication Service
support for the Qualcomm Shikra SoC.
> diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c
> index da27d1d3c9da6..0101f1db6458e 100644
> --- a/drivers/remoteproc/qcom_q6v5_pas.c
> +++ b/drivers/remoteproc/qcom_q6v5_pas.c
[ ... ]
> @@ -1457,6 +1457,51 @@ static const struct qcom_pas_data sc7280_wpss_resource = {
[ ... ]
> +static const struct qcom_pas_data shikra_lpaicp_resource = {
> + .crash_reason_smem = 682,
> + .firmware_name = "lpaicp.mbn",
> + .dtb_firmware_name = "lpaicp_dtb.mbn",
> + .pas_id = 0x56,
> + .dtb_pas_id = 0x57,
> + .minidump_id = 0,
> + .auto_boot = true,
> + .ssr_name = "lpaicp",
> + .sysmon_name = "lpaicp",
> +};
[Severity: High]
Does this resource definition need an ssctl_id initialized?
The sysmon subdevice is enabled by setting .sysmon_name = "lpaicp", but it
fails to define .ssctl_id. Because .ssctl_id is uninitialized, it defaults
to 0, which means qcom_add_sysmon_subdev() will be passed 0 as the QMI
SSCTL instance ID.
Looking at ssctl_new_server() in drivers/remoteproc/qcom_sysmon.c, the
version 2 QMI service binding requires svc->instance ==
sysmon->ssctl_instance. Since modern Qualcomm PAS QMI SSCTL services
advertise non-zero instance IDs, could this cause the binding to fail?
If the remoteproc framework never establishes an SSCTL connection to the
LPAICP DSP, sysmon_stop() will explicitly skip waiting for the SSCTL service
connection since ssctl_instance == 0.
When the DSP needs to be stopped, will sysmon_stop() bypass
ssctl_request_shutdown() and forcefully power off the DSP instead of
gracefully shutting down?
Forceful shutdowns of active DSPs can lead to hardware state corruption
or SMMU faults, which often cascade into kernel panics on these platforms.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260521-shikra-rproc-v3-0-2fca0bbe1ad7@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-05-21 13:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-21 13:21 [PATCH v3 0/2] remoteproc: qcom: Add Shikra remoteproc support Komal Bajaj
2026-05-21 13:21 ` [PATCH v3 1/2] dt-bindings: remoteproc: qcom,shikra-pas: Document Shikra PAS remoteprocs Komal Bajaj
2026-05-22 6:32 ` Krzysztof Kozlowski
2026-05-21 13:21 ` [PATCH v3 2/2] remoteproc: qcom: pas: Add Shikra remoteproc support Komal Bajaj
2026-05-21 13:56 ` sashiko-bot [this message]
2026-05-22 13:08 ` Komal Bajaj
2026-06-11 1:47 ` [PATCH v3 0/2] remoteproc: qcom: " Bjorn Andersson
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=20260521135659.A15C11F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=komal.bajaj@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@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