* [PATCH 1/3] dt-bindings: soc: qcom: smp2p: document WCSS restart kick
@ 2026-11-26 10:56 Robert Marko
2026-11-26 10:56 ` [PATCH 2/3] soc: qcom: smp2p: kick WCSS after restart when requested Robert Marko
2026-11-26 10:56 ` [PATCH 3/3] arm64: dts: qcom: ipq8074: add WCSS SMP2P node Robert Marko
0 siblings, 2 replies; 3+ messages in thread
From: Robert Marko @ 2026-11-26 10:56 UTC (permalink / raw)
To: andersson, konradybcio, abelvesa, robh, krzk+dt, conor+dt, agross,
linux-arm-msm, devicetree
Cc: Robert Marko
On IPQ8074 and IPQ6018, WCSS firmware waits for a new outbound
doorbell after its inbound SMP2P entry returns to zero during a
remoteproc restart. Without it, WCSS does not raise the ready
indication on the next boot.
Document qcom,wcss-restart-kick for SMP2P links that require this
additional doorbell.
Signed-off-by: Robert Marko <robimarko@gmail.com>
---
.../devicetree/bindings/soc/qcom/qcom,smp2p.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smp2p.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smp2p.yaml
index 7862d68c9678..5c90d9db8f73 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,smp2p.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smp2p.yaml
@@ -59,6 +59,14 @@ properties:
description:
Two identifiers of the inbound and outbound smem items used for this edge.
+ qcom,wcss-restart-kick:
+ type: boolean
+ description:
+ IPQ8074 and IPQ6018 WCSS firmware need another outgoing doorbell when
+ the inbound entry returns to zero during a remote processor restart.
+ Without this kick, WCSS does not raise the ready indication for the
+ next boot.
+
patternProperties:
"^master-kernel|slave-kernel|ipa-ap-to-modem|ipa-modem-to-ap|sleepstate|wlan-ap-to-wpss|wlan-wpss-to-ap$":
type: object
--
2.56.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/3] soc: qcom: smp2p: kick WCSS after restart when requested
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
2026-11-26 10:56 ` [PATCH 3/3] arm64: dts: qcom: ipq8074: add WCSS SMP2P node Robert Marko
1 sibling, 0 replies; 3+ messages in thread
From: Robert Marko @ 2026-11-26 10:56 UTC (permalink / raw)
To: andersson, konradybcio, abelvesa, robh, krzk+dt, conor+dt, agross,
linux-arm-msm, devicetree
Cc: Ziyang Huang, Robert Marko
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
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 3/3] arm64: dts: qcom: ipq8074: add WCSS SMP2P node
2026-11-26 10:56 [PATCH 1/3] dt-bindings: soc: qcom: smp2p: document WCSS restart kick Robert Marko
2026-11-26 10:56 ` [PATCH 2/3] soc: qcom: smp2p: kick WCSS after restart when requested Robert Marko
@ 2026-11-26 10:56 ` Robert Marko
1 sibling, 0 replies; 3+ messages in thread
From: Robert Marko @ 2026-11-26 10:56 UTC (permalink / raw)
To: andersson, konradybcio, abelvesa, robh, krzk+dt, conor+dt, agross,
linux-arm-msm, devicetree
Cc: Robert Marko
Describe the SMP2P link between the application processor and WCSS.
Provide the inbound interrupt channel and outbound state channel
needed by the secure WCSS remote processor.
WCSS also needs an outbound kick after its inbound entry returns to
zero during a restart. Enable the restart-kick property for this link.
Signed-off-by: Robert Marko <robimarko@gmail.com>
---
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
index 1d1c9aab5fdb..7842a2bc4175 100644
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
@@ -142,6 +142,27 @@ scm {
};
};
+ shared-memory {
+ compatible = "qcom,smp2p";
+ interrupts = <GIC_SPI 322 IRQ_TYPE_EDGE_RISING>;
+ mboxes = <&apcs_glb 9>;
+ qcom,local-pid = <0>;
+ qcom,remote-pid = <1>;
+ qcom,smem = <435>, <428>;
+ qcom,wcss-restart-kick;
+
+ wcss_smp2p_out: master-kernel {
+ qcom,entry-name = "master-kernel";
+ #qcom,smem-state-cells = <1>;
+ };
+
+ wcss_smp2p_in: slave-kernel {
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ qcom,entry-name = "slave-kernel";
+ };
+ };
+
soc: soc@0 {
#address-cells = <1>;
#size-cells = <1>;
--
2.56.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-26 10:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 10:56 [PATCH 1/3] dt-bindings: soc: qcom: smp2p: document WCSS restart kick Robert Marko
2026-11-26 10:56 ` [PATCH 2/3] soc: qcom: smp2p: kick WCSS after restart when requested Robert Marko
2026-11-26 10:56 ` [PATCH 3/3] arm64: dts: qcom: ipq8074: add WCSS SMP2P node Robert Marko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox