[PATCH v2 0/4] Fix Shikra q6apm DAI under KVM/EL2

From: Mohit Sharma

Date: Fri Nov 27 2026 - 03:50:10 EST


Shikra's q6apm DAI is hosted on the modem DSP. In the hypervisor
configuration its shared memory is assigned directly, but when Linux runs
at EL2 it owns the apps SMMU and the audio stream must be described and
mapped there. Using the normal translating domain causes context faults
because the firmware consumes SID-tagged physical addresses.

Shikra also retains its reserved-memory carveout as the backing pool for
the audio DMA heap. The EL2 overlay adds an IOMMU description over the
base DTB, so the resulting DAI node contains both memory-region and
iommus. Allow both properties while continuing to require at least one.

Select an identity domain for the Shikra q6apm DAI. Also allow
modem-domain q6apm DAIs carrying an IOMMU specifier to use the DMA/IOMMU
path, while retaining SCM assignment for modem-domain DAIs without an
IOMMU.

The series is ordered as follows:

1. Add the Shikra-specific compatible and allow both memory properties.
2. Select an identity domain for that compatible.
3. Add the compatible to the Shikra q6apm DAI node.
4. Select SCM or IOMMU operation from the presence of an IOMMU stream.

The Shikra EL2 overlay is expected to provide the q6apm DAI SMMU stream
description. That overlay change is maintained separately from this
series.

Validated on a Shikra EVK booted under KVM/EL2. The q6apm DAI probes
through the IOMMU path without the previous SCM/IOMMU mutual-exclusion
failure, and playback and capture use the per-stream identity domain.

Changes in v2:
- Follow the established subject-line style for each subsystem.
- Permit memory-region and iommus together for the Shikra EL2 audio path.

Mohit Sharma (4):
ASoC: dt-bindings: qcom,q6apm-dai: Add Shikra support
iommu/arm-smmu-qcom: Use identity domain for Shikra q6apm DAI
arm64: dts: qcom: shikra: Add q6apm DAI compatible
ASoC: qcom: q6apm-dai: Allow the mDSP IOMMU path

.../devicetree/bindings/sound/qcom,q6apm-dai.yaml | 8 ++++++--
arch/arm64/boot/dts/qcom/shikra.dtsi | 3 ++-
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 +
sound/soc/qcom/qdsp6/q6apm-dai.c | 9 ++-------
4 files changed, 11 insertions(+), 10 deletions(-)

--
2.34.1