From: Robert Marko <robimarko@gmail.com>
To: andersson@kernel.org, konradybcio@kernel.org,
abelvesa@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, agross@kernel.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Cc: Ziyang Huang <hzyitc@outlook.com>, Robert Marko <robimarko@gmail.com>
Subject: [PATCH 2/3] soc: qcom: smp2p: kick WCSS after restart when requested
Date: Thu, 26 Nov 2026 11:56:51 +0100 [thread overview]
Message-ID: <20261126105722.188103-2-robimarko@gmail.com> (raw)
In-Reply-To: <20261126105722.188103-1-robimarko@gmail.com>
From: Ziyang Huang <hzyitc@outlook.com>
IPQ8074 and IPQ6018 WCSS need another outbound kick after a remoteproc
restart. On IPQ8074, ath11k starts WCSS, stops it for coldboot
calibration, and then starts it again. The first start succeeds, but
the second times out waiting for the SMP2P ready indication.
The first start gets an outbound kick from qcom_smp2p_probe(). The
SMP2P driver remains bound across the restart, so this kick is not
repeated. WCSS waits for another kick before raising its inbound
slave-kernel ready bit.
When the SSR ACK feature is negotiated, qcom_smp2p_check_ssr()
resets last_value to zero before inbound entries are processed. If
slave-kernel is also zero, qcom_smp2p_notify_in() sees no change and
skips it. Kick the peer before the unchanged-value check when an
inbound entry is zero.
Limit this behavior to WCSS links with qcom,wcss-restart-kick. Other
SMP2P links do not need a kick for a zero inbound value.
Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Co-developed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
---
drivers/soc/qcom/smp2p.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c
index cf06a49149be..bf11b7d450a4 100644
--- a/drivers/soc/qcom/smp2p.c
+++ b/drivers/soc/qcom/smp2p.c
@@ -128,6 +128,7 @@ struct smp2p_entry {
* @ssr_ack_enabled: SMP2P_FEATURE_SSR_ACK feature is supported and was enabled
* @ssr_ack: current cached state of the local ack bit
* @negotiation_done: whether negotiating finished
+ * @wcss_restart_kick: kick WCSS when an inbound entry returns to zero
* @local_pid: processor id of the inbound edge
* @remote_pid: processor id of the outbound edge
* @ipc_regmap: regmap for the outbound ipc
@@ -151,6 +152,7 @@ struct qcom_smp2p {
bool ssr_ack_enabled;
bool ssr_ack;
bool negotiation_done;
+ bool wcss_restart_kick;
unsigned local_pid;
unsigned remote_pid;
@@ -341,6 +343,10 @@ static void qcom_smp2p_notify_in(struct qcom_smp2p *smp2p)
trace_smp2p_notify_in(entry, status, val);
+ /* Some WCSS firmware needs a kick after restarting. */
+ if (smp2p->wcss_restart_kick && val == 0)
+ qcom_smp2p_kick(smp2p);
+
/* No changes of this entry? */
if (!status)
continue;
@@ -681,6 +687,8 @@ static int qcom_smp2p_probe(struct platform_device *pdev)
return -ENOMEM;
smp2p->dev = &pdev->dev;
+ smp2p->wcss_restart_kick =
+ of_property_read_bool(pdev->dev.of_node, "qcom,wcss-restart-kick");
INIT_LIST_HEAD(&smp2p->inbound);
INIT_LIST_HEAD(&smp2p->outbound);
--
2.56.1
next prev parent reply other threads:[~2026-11-26 10:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 10:56 [PATCH 1/3] dt-bindings: soc: qcom: smp2p: document WCSS restart kick Robert Marko
2026-11-26 10:56 ` Robert Marko [this message]
2026-11-26 11:08 ` [PATCH 2/3] soc: qcom: smp2p: kick WCSS after restart when requested sashiko-bot
2026-11-26 10:56 ` [PATCH 3/3] arm64: dts: qcom: ipq8074: add WCSS SMP2P node Robert Marko
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=20261126105722.188103-2-robimarko@gmail.com \
--to=robimarko@gmail.com \
--cc=abelvesa@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hzyitc@outlook.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=robh@kernel.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