[PATCH v2 0/8] remoteproc: qcom: Support the Nord HPASS ADSP cluster
From: Shawn Guo
Date: Tue Dec 01 2026 - 02:02:08 EST
The HPASS audio subsystem on the Qualcomm Nord SoC has three QDSP6
instances, ADSP0/1/2. They are not independent: ADSP0 owns the resources
the other two need (PLLs, AG_NOC, RSCp, CESTA, THROTTLE, QTMR) and
initializes them as part of its own boot, so ADSP1/ADSP2 can only cold
boot once ADSP0 is up. Their firmware also cannot tolerate one instance
going down on its own -- stopping or restarting a single member leaves
sysmon/glink_ssr notify requests to the siblings timing out, and the
whole cluster unable to recover without manually stopping all three and
restarting them in dependency order.
None of those shared resources are visible to the OS. There is no clock,
reset or interconnect provider for HPASS_CRM_COMMON or the AG_NOC bridge,
and the AP has no register access to either; TZ programs them on the
owning DSP's behalf while authenticating and booting its PAS image. So
there is nothing for the three instances to reference in common, and
nothing for the clk/reset/ICC frameworks to refcount. What is left is a
firmware sequencing contract, and both cluster membership and which
instance owns the shared resources are inherent to each DSP instance
rather than to the board. They are therefore expressed by the compatible
alone: the qcom_pas_data of every member references a static per-cluster
descriptor, and ADSP0's marks it as the root. Instances whose descriptor
names no cluster -- which is every PAS instance on every other SoC --
keep qcom_pas.cluster NULL and are completely unaffected.
Two invariants fall out of the hardware, and are implemented
independently of each other:
- Root-first bring-up. A dependent member's start blocks until the root
has booted.
- Coupled, two-phase teardown. Stopping or crashing any member takes
the whole cluster down. Hardware testing showed that whichever
member's PAS/TZ power-off happens chronologically last always fails
its own graceful shutdown ack -- both the sysmon SSCTL QMI ack and
the SMEM-bit/IRQ ack -- regardless of whether that member is the
root. So phase 1 fans the stop out to every participant concurrently
and waits at a barrier for all of them to finish requesting and
awaiting their own ack while the cluster is still fully powered; only
past the barrier does phase 2 let each member actually power its
hardware off. That way no member is ever asking firmware to ack a
shutdown after a sibling's hardware is already gone. On a crash the
cluster is then auto-restarted root-first; an explicit stop leaves
the ordered restart to higher-level policy.
The remaining wrinkle is that a cluster member must not send SSR notify
to its siblings, whose firmware cannot handle it, while still notifying
non-cluster peers such as mpss and cdsp. Both notify paths therefore
suppress receiver-side on a cluster id: sysmon (in remoteproc) and
glink_ssr (in rpmsg). Since RPMSG_QCOM_GLINK does not and should not
depend on REMOTEPROC, the id is a plain opaque "void *" cookie on struct
rproc, plumbed down into the glink edge rather than looked up through
struct rproc from the rpmsg side. Note for rpmsg: this adds a cluster
argument to the exported qcom_glink_smem_register(), whose only caller
is qcom_common.c, updated in the same patch.
Changes in v2:
- Rebase onto next-20261127.
- Drop the qcom,cluster-root DT property (Krzysztof); cluster membership
and root now come from match data.
- Use guard()/scoped_guard() for locking (Konrad).
- Drop the of_device_is_available() check with the property; an unbound
root yields -ENODEV from qcom_pas_cluster_wait_for_root().
- sysmon: also skip siblings in the sysmon_start() catch-up loop.
- glink: return NULL from qcom_glink_ept_cluster() for non-GLINK
endpoints.
- pas: signal root_booted only from the root's own start/attach, fail on
a crashed root, and raise the root wait from 1 s to 10 s.
- pas: enroll a concurrently crashed sibling in the coordinated stop,
and leave its stop and restart to its own recovery.
- pas: pick cascade members under the cluster lock.
- pas: withdraw a participant that rproc_shutdown() doesn't stop, and
leave the cluster before cancelling stop work on remove.
- Link to v1: https://lore.kernel.org/r/20260815132541.1575121-1-shengchao.guo@xxxxxxxxxxxxxxxx
Shawn Guo (8):
dt-bindings: remoteproc: qcom,nord-pas: Add ADSP1/2 compatibles
remoteproc: Add cluster field to struct rproc
remoteproc: qcom: sysmon: Suppress notify between cluster siblings
rpmsg: qcom_glink_ssr: Suppress cleanup notify between cluster
siblings
remoteproc: qcom: pas: Track HPASS ADSP cluster membership
remoteproc: qcom: pas: Sequence HPASS ADSP cluster boot root-first
remoteproc: qcom: pas: Enforce coupled stop/crash for HPASS ADSP
clusters
remoteproc: qcom: pas: Add Nord ADSP1/2 support
.../bindings/remoteproc/qcom,nord-pas.yaml | 4 +
drivers/remoteproc/qcom_common.c | 7 +-
drivers/remoteproc/qcom_common.h | 2 +-
drivers/remoteproc/qcom_q6v5_pas.c | 648 ++++++++++++++++++
drivers/remoteproc/qcom_sysmon.c | 23 +-
drivers/rpmsg/qcom_glink_native.c | 26 +-
drivers/rpmsg/qcom_glink_native.h | 5 +-
drivers/rpmsg/qcom_glink_rpm.c | 2 +-
drivers/rpmsg/qcom_glink_smem.c | 5 +-
drivers/rpmsg/qcom_glink_ssr.c | 36 +-
include/linux/remoteproc.h | 3 +
include/linux/rpmsg/qcom_glink.h | 10 +-
12 files changed, 749 insertions(+), 22 deletions(-)
--
2.43.0