From: Mohit Sharma <mohit.sharma@oss.qualcomm.com>
To: Srinivas Kandagatla <srini@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Mark Brown <broonie@kernel.org>
Cc: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Rob Clark <robin.clark@oss.qualcomm.com>,
Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Joerg Roedel <joro@8bytes.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, iommu@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Mohit Sharma <mohit.sharma@oss.qualcomm.com>
Subject: [PATCH v2 0/4] Fix Shikra q6apm DAI under KVM/EL2
Date: Wed, 2 Dec 2026 13:25:08 +0530 [thread overview]
Message-ID: <20261202075512.3112173-1-mohit.sharma@oss.qualcomm.com> (raw)
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:
- Updated the patch subjects to follow the conventions used by the
respective subsystems.
- Replaced the q6apm-dai schema's oneOf requirement with anyOf. The
Shikra EL2/KVM overlay adds iommus to a base node that already contains
memory-region, so the final node legitimately contains both properties.
The schema continues to require at least one of the two memory
descriptions.
- Link to v1:
https://lore.kernel.org/all/20261119164705.1594066-1-mohit.sharma@oss.qualcomm.com/
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
next reply other threads:[~2026-12-02 7:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 7:55 Mohit Sharma [this message]
2026-12-02 7:55 ` [PATCH v2 1/4] ASoC: dt-bindings: qcom,q6apm-dai: Add Shikra support Mohit Sharma
2026-12-02 7:55 ` [PATCH v2 2/4] iommu/arm-smmu-qcom: Use identity domain for Shikra q6apm DAI Mohit Sharma
2026-12-02 7:55 ` [PATCH v2 3/4] arm64: dts: qcom: shikra: Add q6apm DAI compatible Mohit Sharma
2026-12-02 7:55 ` [PATCH v2 4/4] ASoC: qcom: q6apm-dai: Allow the mDSP IOMMU path Mohit Sharma
2026-12-02 10:34 ` [PATCH v2 0/4] Fix Shikra q6apm DAI under KVM/EL2 Mark Brown
2026-12-02 12:12 ` Robin Murphy
-- strict thread matches above, loose matches on Subject: below --
2026-11-19 16:47 [PATCH " Mohit Sharma
2026-11-27 8:48 ` [PATCH v2 " Mohit Sharma
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=20261202075512.3112173-1-mohit.sharma@oss.qualcomm.com \
--to=mohit.sharma@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=ajay.nandam@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=robin.clark@oss.qualcomm.com \
--cc=robin.murphy@arm.com \
--cc=srini@kernel.org \
--cc=tiwai@suse.com \
--cc=will@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
all inboxes | Powered by JetHome®