From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796198145; b=QERoSVPZzrUWRwdbvjzy+syZkoe3pxcQ76QLd9wKfXJSBJcPnipT2C7k4Rv4H1qhS+IO 9ZwGeMpzAQJBgfC5HxjXwglfP3W8fLbhZTG9Tl/VGpIXGKzJosymxcyw4UAvj6UsCDU/b BtUn75fVh8BoqysF1CX+qn2cNKd3V5qjWMxqe7+8/+3VJGG+ZGWiw/s99Y52YDFkmFisl fi3CNZhaiQfPF7iC3YCI/xaJu44GHLxvZ6JDDCDk/ab4zeJQ/sKTNy3dR3CvYnd0dxC9W lCjlGcfGcObtNdIk9fzfyF6fOAOMVNTGpD3uXUg+GpC3J9g6ChIa3zmTl3Q9UmBir/w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796198145; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:MIME-Version: Content-Transfer-Encoding:X-Proofpoint-Reinject:X-QCInternal: X-QCInternal:X-Authority-Analysis:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=g4CBZGFbWD9Vn7/+70YO2tTTlUUR/uYVZrzG0GMGX1M=; b=1Sa8KUftMcvVTIHYC6hS0NWiUx9RwJRpY//dsQ83Tc2Iad57WquiUmgO5XPBrqRBMMvf YZbz1CgTA79n7hLI9FoNydQlJe/qvrarA0qRE3Kf5Mod56s/Wz1MYO/XuK3LyQMoi1yNl yVlPgvur69u8OtxYS4mnodxqGd1SaJhwjuy/YbjxQoIysf/RebDm3sjZeUz7tUVsmvk2i lNUw+A+4QF32ZgHyOeeA0iBkA+QW/s1PpCHMAsqhg5EkVJVU9vpUnIh5+1osZmtfOec98 w4bLzzn7FeAK/fwwKaU1vvbwJQUurQFtE0ak6H52iigQiQ4c2fmGABXirFTdd9nxfNQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=KQ1nRDlJ; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6550A606A322; Wed, 2 Dec 2026 07:55:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6550A606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=KQ1nRDlJ Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26p81T3576326; Wed, 2 Dec 2026 07:55:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=g4CBZGFbWD9Vn7/+70YO2tTTlUUR/uYVZrz G0GMGX1M=; b=KQ1nRDlJYuevpSAS+knrUFK2eAYns8w20gev+PM0/3g7mCsFagW SwlJHWOkzQowE0rfU3kGhbZASdc4SBe6OgCeJYT3kPXprS7R3xzZTzMYe1QnAm6o aWTVNpll354Gi5eIk/lwbes2i9BSRmccUAuzmUTcKxMMTaFQosVteFMm5UAReQck 4RAsv+ygaDv04ZUakfR14KGpLwHodzHnTtMlmBugtN6t0c2KiSrpGa8d7TjNqp8J 1xuWaE/u7bYPOlJplxWUb/QHCP1nl1mmYAeC10G6/sqj6+i9pGSNVUVA3w2fj49z xPloaNJUE5O31DbL7LubYMxKlIT8cUEHhTA== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja3aj2sxd-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 02 Dec 2026 07:55:16 +0000 (GMT) Received: from pps.filterd (apblrppmta02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B27pFZY3246643; Wed, 2 Dec 2026 07:55:13 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-mohis-hyd.qualcomm.com [10.147.253.64]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 6B27tD3T3251437 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 02 Dec 2026 07:55:13 +0000 (GMT) Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 4840500) id 808F465D; Wed, 2 Dec 2026 13:25:12 +0530 (+0530) From: Mohit Sharma 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@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 Subject: [PATCH v2 0/4] Fix Shikra q6apm DAI under KVM/EL2 Date: Wed, 2 Dec 2026 13:25:08 +0530 Message-Id: <20261202075512.3112173-1-mohit.sharma@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Authority-Analysis: v=2.4 cv=Y7xtIReN c=1 sm=1 tr=0 ts=6b0fcee5 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=FdZBeAntQVJhsXRJsjQA:9 X-Proofpoint-GUID: yy6r1hri97fnMsc3AbHTOdMvoLfnIPwg X-Proofpoint-ORIG-GUID: yy6r1hri97fnMsc3AbHTOdMvoLfnIPwg X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDAzMSBTYWx0ZWRfX+/uX8wHWGeiY YPCeFlhgEisNRNamfbttxEVj/7ftJImzpXOvDdKWMhBoa6cNtYyYEScG3IIG/lc21D3wsAN5AyI rKjGHCpt8eI/1GMuAEZ+LWMMrx1hEuw= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDAzMSBTYWx0ZWRfXyrYD1HZ4AO7O RtVeNnJU1xVji5br5FGuYP0J39hhO88nLkr8K+39HfTBbXsK5usmJAQ2a7E7bk0tLKx4AIn8XYo 99NvkSC7aFrruMSSRfKdFEPQRtV6UdXTba0NUJwmJO8eUm5LapOvcVakF3v6MV/Dd93qKQsDRBz hUNIcy4qG3eJV4v4RkznOgldpceKEyVgequFy0QCbdHv63B8GnCX/s2XdClyKhOI4sis+3t0pzA mQIRbvBq7BzKSBV6Rj9N1TnKA0HU2x3Tm6NYnY2aDEcj+NoQHrHacF1wt0z3rzxwWwDwKYQBrCg WR6wXWs82/5BpbNcuge6yQQIpznwWUJuFNcS//Vd/MTu2s+59qz0rfq6MiKVLxCMpS3YqKnXCRw LFwnJZxSWHrKO6LnesyshOozbo7x6GQQOXuztrbR+S5ppiY+6cHpefBjP6peEaYjOHH+wS0xEDN 9R0s5QkXPs5jMZP3Z1g== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 clxscore=1015 spamscore=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020031 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