HPASS (High Performance Audio Subsystem) is a distinct audio
hardware block from the LPASS-class ADSP used on earlier targets,
with its own shared resources, audio interface block, and additional
integrated processing hardware such as HVX (Hexagon Vector
eXtensions). It is described in the devicetree with its own "hpass"
label, following the existing fastrpc convention of distinguishing
DSP domains by label (adsp/cdsp/sdsp/gdsp0/gdsp1/...).

Depending on the firmware image it loads, an HPASS domain can run
either an audio image or a compute image. An audio image only needs
the existing secure fastrpc node, while a compute image additionally
offloads user compute workloads and needs a non-secure node for
unsigned PD support.

Which image is loaded is only knowable by querying the DSP's
capability attributes. This series moves that query from userspace's
first FASTRPC_IOCTL_GET_DSP_INFO call to probe time, so the device
nodes registered at probe already reflect the DSP's actual
capabilities instead of being created from the domain id alone. The
query runs on a per-channel workqueue so a slow or silent DSP domain
does not block probe() or delay other channels probing concurrently.

Patch 1 adds the "hpass" devicetree label. Patch 2 adds the
corresponding HPASS_DOMAIN_ID to the driver. Patch 3 moves the
capability query to probe time. Patch 4 uses the queried capability to
register the unsigned PD node for a compute-capable HPASS domain.

Signed-off-by: Anandu Krishnan E <[email protected]>
---
Anandu Krishnan E (4):
      dt-bindings: misc: qcom,fastrpc: add hpass label
      misc: fastrpc: add HPASS domain
      misc: fastrpc: query the dsp capabilities during probe time
      misc: fastrpc: expose unsigned PD node for compute-capable HPASS

 .../devicetree/bindings/misc/qcom,fastrpc.yaml     |   1 +
 drivers/misc/fastrpc.c                             | 259 ++++++++++++++++-----
 2 files changed, 207 insertions(+), 53 deletions(-)
---
base-commit: 3191063649dbf7c0d0b768e1f3655e4c5fc6edb5
change-id: 20261125-fastrpc-hpass-support-bdb86e8b15d7

Best regards,
--  
Anandu Krishnan E <[email protected]>

Reply via email to