mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix Shikra q6apm DAI under KVM/EL2
@ 2026-11-19 16:47 Mohit Sharma
  2026-11-19 16:47 ` [PATCH 1/4] dt-bindings: sound: qcom,q6apm-dai: allow Shikra compatible Mohit Sharma
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mohit Sharma @ 2026-11-19 16:47 UTC (permalink / raw)
  To: Srinivas Kandagatla, Bjorn Andersson, Mark Brown
  Cc: Ajay Kumar Nandam, Liam Girdwood, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Rob Clark, Will Deacon,
	Robin Murphy, Joerg Roedel, Konrad Dybcio, Abel Vesa,
	Jaroslav Kysela, Takashi Iwai, linux-sound, linux-arm-msm,
	devicetree, iommu, linux-arm-kernel, linux-kernel, Mohit Sharma

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.

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 q6apm DAI compatible to the binding.
  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.

Mohit Sharma (4):
  dt-bindings: sound: qcom,q6apm-dai: allow Shikra compatible
  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        | 6 +++++-
 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, 10 insertions(+), 9 deletions(-)

-- 
2.34.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-19 16:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 16:47 [PATCH 0/4] Fix Shikra q6apm DAI under KVM/EL2 Mohit Sharma
2026-11-19 16:47 ` [PATCH 1/4] dt-bindings: sound: qcom,q6apm-dai: allow Shikra compatible Mohit Sharma
2026-11-19 16:47 ` [PATCH 2/4] iommu: arm-smmu-qcom: use identity domain for Shikra q6apm DAI Mohit Sharma
2026-11-19 16:47 ` [PATCH 3/4] arm64: dts: qcom: shikra: add q6apm DAI compatible Mohit Sharma
2026-11-19 16:47 ` [PATCH 4/4] ASoC: qcom: q6apm-dai: allow the mDSP IOMMU path Mohit Sharma

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®